If you just want to glob the entire directory's first level file contents, you could do this:perl -le '@ARGV = grep { -f $_ } <$ARGV[0]/*> ; @files = <>; use Data::Dumper; print Dumper \@files;' where your first command line argument is the directory whose contents you want to slurp.
If you just want to glob the entire directory's first level file contents, you could do this:
ReplyDeleteperl -le '@ARGV = grep { -f $_ } <$ARGV[0]/*> ; @files = <>; use Data::Dumper; print Dumper \@files;'
where your first command line argument is the directory whose contents you want to slurp.