On Mon, Mar 22, 2004 at 11:15:36AM +0100, [EMAIL PROTECTED] wrote:
> I'm working in a project that shall have +- the time of the Internet has we
> now it today. 
Umm...what does that mean?

> Sometimes my script throw a die and I just know the line where was throw.
> What I want is to have the all stack, something like java. 
> Since changing the code would be a very expancive work, I would prefer to
> add some information to the die string and let the die do is job.
Like this (from the command line, but same thing in principle)?
$ perl -e '
use diagnostics;

foo("a","b");

sub foo {
  die "Fnord!";
}
'
Uncaught exception from user code:
        Fnord! at -e line 7.
        main::foo('a','b') called at -e line 4

The 'use diagnostics' tells you the important stuff (it makes errors 
very verbose), the 'main::foo(...' is the stack trace.

-- 
Robin <[EMAIL PROTECTED]>                 JabberID: <[EMAIL PROTECTED]>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0x776DB663 Fingerprint=DD10 5C62 1E29 A385 9866 0853 CD38 E07A 776D B663

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to