Welcome to the Monastery | |
PerlMonks |
Re: Working with Variablesby damian1301 (Curate) |
on Apr 23, 2001 at 23:58 UTC ( [id://74844]=note: print w/replies, xml ) | Need Help?? |
Yes, it is. Do something like this:
You're probably wondering about that little eval $var part. Well, all eval does is evaluate the code and execute it as a separate script. Otherwise you would just literally print "if($lbha = 'poo'){ do stuff.... }" out of the screen, which isn't what you want. I hope I understood your question and answered it properly. Tiptoeing up to a Perl hacker. Dave AKA damian
In Section
Seekers of Perl Wisdom
|
|