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

Re: Eval and system()

by dragonchild (Archbishop)
on Sep 05, 2001 at 17:24 UTC ( [id://110284]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval { system "fake command" && print "Blah1\n" };
    eval { system "fake command" || print "Blah2\n" };
    eval { system "ls" && print "Blah3\n" };
    eval { system "ls" || print "Blah4\n" };
    
  2. or download this
    eval { die "Hello!\n" };
    print "Reason: $@\n";
    eval { die "Hello!" };
    print "Reason: $@\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found