Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Eval and system()

by camelman (Sexton)
on Sep 05, 2001 at 19:36 UTC ( #110329=note: print w/replies, xml ) Need Help??


in reply to Re: Eval and system()
in thread Eval and system()

Thanks, monks. As always I learned quite a bit by asking a question here. I think I'll be going with:
eval { system "fake command" && print "Blah1\n" };
Initially I thought
eval {system ("fake command")} or print "Blah1\n";
was correct, but the first example works the way I want it to. Thanks . . . Kevin

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-08-17 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?