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'.#!/usr/bin/perl use strict; use warnings; for (@ARGV) { for (glob) { print $_,"\n"; } }
–hsm
"Never try to teach a pig to sing…it wastes your time and it annoys the pig."In reply to Re: simple command-line question
by hsmyers
in thread simple command-line question
by Jules_Verne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |