in reply to Testing Return Values

use warnings; use strict; use File::Copy qw(copy); if (copy('applicants.txt', $targetfile)) { print "success\n"; } else { print "failure\n"; }

Replies are listed 'Best First'.
Re: Testing Return Values
by Anonymous Monk on Jun 05, 2013 at 17:17 UTC

    Got it! Thanks.