package Module; BEGIN { print 'beginning my module1: ' . join(', ',@ARGV)."\n" } # do lots of stuff sub import { shift @ARGV ; } BEGIN { print 'ending my module1: ' . join(', ',@ARGV)."\n" } 1;