Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

#!/usr/bin/ruby
var m = /(\w+)\s+(\w+)/.match("foo bar");
assert_eq(m[0], 'foo');
assert_eq(m[1], 'bar');
say "** Test passed!";