The parens inwhat are captures?
if ('foo 123 bar' =~ /(\d+)/) { print("$1\n"); }
123
What do you mean that m//g is a bug?
for (1..2) { if ('ab' =~ /a/g) { print("match\n"); } else { print("no match\n"); } }
match no match
for (1..2) { if ('ab' =~ /a/) { print("match\n"); } else { print("no match\n"); } }
match match
In reply to Re^3: Simple (probably)
by ikegami
in thread Simple (probably)
by MaroonBalloon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |