Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Any way to access the contents of a block eval?

by cdarke (Prior)
on Oct 10, 2007 at 15:39 UTC ( #643993=note: print w/replies, xml ) Need Help??

in reply to Any way to access the contents of a block eval?

Not directly so far as I know, but you can just about do this with a simple command, like this:
my $cmd = '1/0'; eval $cmd; if ($@) { print "$cmd gives: $@\n" } 1/0 gives: Illegal division by zero at (eval 1) line 2.
and that is not the block eval command that you asked for.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://643993]
[ambrus]: erix: further, SQLite may be the second most installed piece of software on earth after zlib.
[erix]: heh, really? yeah, I suppose it may be so
[ambrus]: We're not really sure. There are some other contenders like libjpeg, and it's not easy to tell how you even measure this.
[ambrus]: But we figured it's close.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-09-25 14:18 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (280 votes). Check out past polls.