in reply to simple command-line question

You might also look at 'perldoc -f glob' as well. For example:
#!/usr/bin/perl use strict; use warnings; for (@ARGV) { for (glob) { print $_,"\n"; } }
This is a quick and dirty basis for any filter...it could probably be 'mapped' into a one-line approach with the name of the 'filter' sub replacing 'print'.

–hsm

"Never try to teach a pig to sing…it wastes your time and it annoys the pig."