in reply to Using "die" with "do-file"
As you've posted it, you have a syntax error:
syntax error at calling.pl line 1, near "'called.pl':" Execution of calling.pl aborted due to compilation errors.
And perldoc -f do explains the rest. :)
do EXPR Uses the value of EXPR as a filename and executes the c +ontents of the file as a Perl script. do 'stat.pl'; is just like eval `cat stat.pl`;
More at perldoc -f eval.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using "die" with "do-file"
by stephanm (Sexton) on Jul 06, 2008 at 09:56 UTC |