package Module2; BEGIN { print 'beginning my module2: ' . join(', ',@ARGV)."\n" } # do lots of stuff BEGIN { print 'ending my module2: ' . join(', ',@ARGV)."\n" } 1;