![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Passing input through a hash then displaying resultsby logie17 (Friar) |
on Jan 23, 2007 at 07:10 UTC ( #596039=note: print w/replies, xml ) | Need Help?? |
You probably would want to do something like the following:
There is really no need to loop to lookup key/value pairs. I hope this helps. If you're trying to execute statements you may want to look into the eval function.
s;;5776?12321=10609$d=9409:12100$xx;;s;(\d*);push @_,$1;eg;map{print chr(sqrt($_))."\n"} @_;
In Section
Seekers of Perl Wisdom
|
|