in reply to Working with Variables
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.$var=<<BLAH; if($lbha = 'poo'){ print "oh"; } BLAH eval $var;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Working with Variables
by Anonymous Monk on Apr 24, 2001 at 00:16 UTC | |
by ChemBoy (Priest) on May 03, 2001 at 00:12 UTC | |
by damian1301 (Curate) on Apr 24, 2001 at 00:27 UTC |