GetOptions( ... ); my @files = @ARGV; ... rest of program ...