On Wed, 12 Jan 2005 08:55:14 +0200, Groleo Marius <[EMAIL PROTECTED]> wrote: > Hi list! ( as usual ) > i have a simple question : how can i execute an array, knowing that it > contains perl code?
eval for @array;
Example:
tor% perl -e '@array = ("print \"hi!\n\"", "print \"hello\n\""); eval
for @array'
hi!
hello
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
