Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: eval, but syntax-check only -- like perl -c

by vladb (Vicar)
on Apr 24, 2003 at 18:16 UTC ( [id://252967]=note: print w/replies, xml ) Need Help??


in reply to eval, but syntax-check only -- like perl -c

What if you try embedding your code snippets inside a subroutine and doing eval on that? This would not cause the code to execute and would give you various warning messages (by inspecting the $@ variable) that you may be looking for?

Update: Missed bbfu's reply, but essentially that's what I was trying to say here ;-)

_____________________
# Under Construction

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-03-29 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found