in reply to Can I use a regex here?
rename $_, $OUT_DIR . "/allfiles/$_" for (glob 'pair*' . $RUN_NAME . '.log');
Alternately you could use opendir and readdir with a regex to check the filename instead using of shell-like globbing.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Can I use a regex here?
by mndoci (Scribe) on Apr 18, 2001 at 01:24 UTC |