* William Setzer ([EMAIL PROTECTED]) [09 Aug 2000 00:27]:
> iain truskett <[EMAIL PROTECTED]> writes:
[...]
> > If so, why? (Possibly cite the code.)
> Because it's more aesthetic (and useful) for me to see:
> open '/afs/bp.ncsu.edu/path/to/no_such_file': No such file or directory
> NCSU/SomeModule.pm did not return a true value at ./make_lockers line 25.
> BEGIN failed--compilation aborted at ./make_lockers line 25.
> rather than:
> open '/afs/bp.ncsu.edu/path/to/no_such_file': No such file or directory
> BEGIN failed--compilation aborted at ./make_lockers line 25.
> especially if this is showing up in a cron message somewhere. (I know
> I could add the module name to the error, but I like letting perl do
> it for me. Less work for me.)
You could 'use Carp' and 'croak' for that sort of backtrace though,
couldn't you?
cheers!
--
iain truskett, aka Koschei. <http://eh.org/~koschei/>
"I'd just like to take this opportunity to say: Iain Truskett, you
are a crafty git!" -- Erik Pollitt, The Jade Pagoda, 20000208.