my $letters = "abcwxy"; my $re = qr/[$letters]/; my $cnt; while (<INPUT>) $cnt++ while /$re/g; } print "$cnt\n";
In reply to Re: A another tr/// statement question..
by runrig
in thread tr/// statement
by supernewbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |