#!/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 $>