sub GetOpts() { GetOpts(@ARGV); } sub GetOpts(@array) { #the real work is done here }