From perlop:
The string specified with =~ must be scalar variable, an array element, a hash element, or an assignment to one of those, i.e., an lvalue.
Hmm...I swear sean's reply wasn't there a moment ago. Darn temporal displacement again. Anyway, he's right and so am I. Vote for his.my %japh = qw(J Just A Another P Perl H Hacker); ($_ = 'J A P H') =~ s/(\w)/$japh{$1}/g; print;
In reply to Re: Can perl do...?
by takshaka
in thread Can perl do...?
by nashdj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |