GetOptions( ... ); my @files = @ARGV; ... rest of program ... #### > myprog.pl --filespec '*.mp3'