my $str = "here are some words"; my $count = $str =~ tr/e/e/; print "We sure do have a lot of e characters: $count\n";
In reply to Re: Perl Idioms Explained - my $count = () = /.../g
by zshzn
in thread Perl Idioms Explained - my $count = () = /.../g
by japhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |