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

Re: Best method to capture return code from system calls?

by sunadmn (Curate)
on Aug 24, 2005 at 14:37 UTC ( #486206=note: print w/replies, xml ) Need Help??


in reply to Best method to capture return code from system calls?

In my experiance with running sytem calls on SUN I have always built my command like this:

my $cpcmd = '/bin/cp'; system($cpcmd $curfile $newfile);
But there is a better way of doing this and that would be using File::Copy take a look at that.
SUNADMN
USE PERL

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://486206]
help
Chatterbox?
Happy-the-monk hands LanX a treat of ambidextrosis.
[Discipulus]: my son was used to say being left-handed on both hands..
[erix]: ambysinistral ;)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2018-02-19 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (264 votes). Check out past polls.

    Notices?