Hi Ronald,

On Fri, Sep 07, 2001 at 02:58:30PM +0200, Roland Schoenbaechler 
([EMAIL PROTECTED]) spew-ed forth:
> analogy to the functions die or next). Does a variable exist indicating the
> line number of the currently executed step (or the last step)?
> 

Yes, you can use the __LINE__ token:

.... or die "Died at line " . __LINE__;

You can also look at the Carp module, specifically the croak() and confess()
methods.

Cheers,
Kevin

-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
"I'm hopeful. I know there is a lot of ambition in Washington, obviously. But I
hope the ambitious realize they are more likely to succeed with success as
opposed to failure."
        -- G.W. Bush, Interview with the AP 01/18/2001

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to