Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Testing if Perl Code is Valid - but don't execute!

by skazat (Chaplain)
on Aug 10, 2010 at 21:08 UTC ( [id://854137]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my $n      = 0;
    ...
    else {
        print "here's your answer: $result\n";
    }
    
  2. or download this
    
    open my $perl, '<', 'perlscript.pl'; 
    ...
    close ($perl); 
    
    eval {$perl}; # what am I eval'ing?
    
  3. or download this
    eval_but_dont_execute($some_shaky_perl_code);
    

Log In?
Username:
Password:

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

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

    No recent polls found