good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Dynamic operatorsby Chmrr (Vicar) |
on Sep 11, 2002 at 08:33 UTC ( [id://196893]=note: print w/replies, xml ) | Need Help?? |
Eval is probably the way to go with this, as others have shown. For extra style points, make it into an anonymous sub so as to ensure that the overhead of eval only happens once:
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|