Re: eval and __LINE__

2003-09-07 Thread Randal L. Schwartz
> "Hacksaw" == Hacksaw <[EMAIL PROTECTED]> writes: Hacksaw> Okay, I'll bite. Why? Obviously it'd look bad, but your reaction seems Hacksaw> stronger than that. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777

Re: eval and __LINE__

2003-09-07 Thread Hacksaw
> Rob> use CGI::Carp 'fatalsToBrowser' > > Just remember NEVER to leave that on in production code. EVER. Okay, I'll bite. Why? Obviously it'd look bad, but your reaction seems stronger than that. -- The creative impulse animates whatever instrument is placed at its disposal. http://www.hack

Re: eval and __LINE__

2003-09-07 Thread Randal L. Schwartz
> "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes: Rob> use CGI::Carp 'fatalsToBrowser' Just remember NEVER to leave that on in production code. EVER. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/

Re: eval and __LINE__

2003-09-07 Thread Hacksaw
> use CGI::Carp 'fatalsToBrowser' Ooo, cool. Thanks. Wow, two useful answers. I like this list. -- Commitments are to be honoured. http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: eval and __LINE__

2003-09-07 Thread Rob Dixon
Hacksaw wrote: > > I want to have something like die, but for the web, so I want it > to print out the error with a at the end, etc. > > How the F### do I get __LINE__ to be evaluated, not where it is in > the program file, but where the function is called? > > Another way of asking this is, how

Re: eval and __LINE__

2003-09-07 Thread Hacksaw
>1) use Carp; - it shows errors from the caller's >perspective. Look at the docs, but you car use >'carp' (warinig) or 'croak' (die). >2) the perl built-in function 'caller' gives line and >script name information for the caller, the caller's >caller, etc. Check the docs to roll you

Re: eval and __LINE__

2003-09-07 Thread Beau E. Cox
- Original Message - From: "Hacksaw" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 06, 2003 8:38 PM Subject: eval and __LINE__ > Caveat: It's late and I'm tired and frustrated, i.e. I'm pissy. > > I want to have something like die, but for the web, so I want it to