On Jul 2, 2004, at 9:35 AM, Vic Norton wrote:
So this is my question. Why is the "die" line in the test2 "shot" invisible when test1 is in control?
From 'perldoc -f do':
do 'stat.pl';
is just like
eval `cat stat.pl`;
And from 'perldoc -f eval':
If there is a syntax error or runtime error, or a "die" state- ment is executed, an undefined value is returned by "eval", and $@ is set to the error message.
If you want test1.pl to fail if something in test2.pl die()s, you'd use something like this:
do "$Bin/test2.pl" or die $@;
sherm--