Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Re: Line Numbers

by liz (Monsignor)
on Oct 18, 2003 at 20:46 UTC ( [id://300327]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Line Numbers
in thread Line Numbers

I've fairly recently started coding my (rare) uses of eval like this.

Hmmm... that might be a nice pragmatic module: one that steals the standard eval() and prefixes any string eval with package and line number of caller:

use strict; use warnings; BEGIN { *CORE::GLOBAL::eval = sub {print "standard eval replaced!\n"}; } eval "print qq{Hello world!\n}"; __END__ Hello world

Alas, it seems that the standard eval() cannot be replaced. ;-(

Liz

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://300327]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found