Friday, July 1, 2011

Returning a value from Perl Script

#!/usr/bin/perl -w
use strict;


print "This is going to exit\n";
exit 2;


$> perl aboveProgram.pl
This is going to exit
$> echo $?
2
$>

0 comments:

Post a Comment