This is just a slight optimization - read up on qr// in perlop to get the full scoop.
$match = qr/^nc$digyear$digmon.*\.log$/; @files = grep m/$match/, @files;
Fun Fun Fun in the Fluffy Chair
In reply to Re^3: Grep Pattern Match
by diotalevi
in thread Grep Pattern Match
by LostS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |