which then goes to show you don't need the capturing parentheses in the match and .... I'll shut up.$howmanytimes = @ary = $str =~ m/(stuff)/g; # or perhaps better as $howmanytimes = () = $str =~ m/stuff/g;
In reply to Re: Perl Idioms Explained - @ary = $str =~ m/(stuff)/g
by shenme
in thread Perl Idioms Explained - @ary = $str =~ m/(stuff)/g
by tachyon
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |