Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re3: (Azatoth): Seeking Feed back

by pmas (Hermit)
on Jul 05, 2001 at 18:03 UTC ( #94103=note: print w/replies, xml ) Need Help??


in reply to Re: Re (tilly) 3: Seeking Feed back
in thread Seeking Feedback on Chat Program (was Seeking Feed back)

Nice. I think this could be done even simpler and more readable using unless instead of if !=:
system("/usr/bin/scp $file $username\@$host:$remoteFile"); die "System call to scp command failed! : $!\n" unless ($?);

pmas

To make errors is human. But to make million errors per second, you need a computer.

Replies are listed 'Best First'.
Re: Re3: (Azatoth): Seeking Feed back
by azatoth (Curate) on Jul 05, 2001 at 18:06 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2019-06-18 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (81 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!