> -----Original Message----- > From: Perrin Harkins [mailto:[EMAIL PROTECTED]] > > > My problem is that die works fine as such but it conks out if done > > inside a eval. > > Okay, I missed the part about eval() before. Take a look at this code > from Parse::ePerl::Evaluate() : > local $SIG{'__DIE__'} = sub { $error .= $_[0]; };
Yuck. People really need to stay away from $SIG{__DIE__} unless they *really* know what they're doing. Matt. ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________