Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Bad file descriptor after vmran command using system()

by MidLifeXis (Monsignor)
on Apr 08, 2013 at 12:54 UTC ( #1027496=note: print w/replies, xml ) Need Help??


in reply to Bad file descriptor after vmran command using system()

Your expectations for the return value of system are not correct. It returns 0 in the case of success, and therefore your test should look like:

system( ... ) == 0 or die "System failed: $?, $!"

--MidLifeXis

Replies are listed 'Best First'.
Re^2: Bad file descriptor after vmran command using system()
by Ingvar (Novice) on Apr 08, 2013 at 13:10 UTC

    It works now! Thank you all!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027496]
help
Chatterbox?
[hippo]: It's always good to start the day with a laugh and Re^2: Subroutine processes only one file in the directory has genuinely made me do so. Well done, sridhar56!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-05-26 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?