> ls *.txt file1.txt file2.txt file3.txt > cat test.pl #!/usr/bin/env perl use strict; use warnings; use Data::Dumper; print Dumper(\@ARGV); > ./test.pl 's/foo/bar/' file*.txt $VAR1 = [ 's/foo/bar/', 'file1.txt', 'file2.txt', 'file3.txt' ]; >