in reply to Need help with a variable
$var = "VARIABLE"; END {print "this is at the end:$var\n";} BEGIN {print "this is in the beginning:$var\n";} ##OUTPUT: $ perl script.pl this is the beginning: this is at the end:VARIABLE
Try running your script without the BEGIN.
--
hiseldl
What time is it? It's Camel Time!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need help with a variable
by Jenda (Abbot) on Oct 30, 2002 at 23:54 UTC |