in reply to Check if "System" was succesful
my $result = system("copy bleh blah");
#system returns opposite ... IIRC
print "oh no!\n";
The usual (and slightly more compact) way to check a system call is:
system( $cmd ) == 0 or die "System call failed: $!";
The " == 0" deals with the fact that system returns 0/false on success, not true like most perl functions.
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
An Englishman in New York
An American Werewolf in London
An American in Paris
The Innocents Abroad
An Idiot Abroad
Robinson Crusoe on Mars
A Connecticut_Yankee in King Arthur's Court
There and Back Again
Travels into Several Remote Nations of the World
Results (96 votes). Check out past polls.