Try using a substitution (s///) instead so that you directly modify what grep returns.
my @auditofiles = grep { s/\A([^.]+)\.ram\z/$1/i } readdir DH;
--k.
In reply to Re: Grabbing file prefixes with Reg Exp
by Kanji
in thread Grabbing file prefixes with Reg Exp
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |