Hi monks
I'm confused. This snippet behaves:
and prints 'that text'.my $text = "this text"; $text =~ /this/that; print $text;
But not this:
It prints '1', clearly the truth of the statement, but why?my $text = "this text"; print $text =~ /this/that/;
In reply to Inline substitution regex by bradcan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |