Is there a literal asterisk in your filename, or do you want to expand the asterisks in your example? If the latter, I echo Perlbotics' advice to use localtime() and sprintf() to get the date, and suggest you do something like:
Check out the glob() builtin and the <> operator in perlop for more information.foreach my $filename (<AAAA*$date*.log>) { ... }
alakaboo
In reply to Re: Help in using backtick operator
by mwp
in thread Help in using backtick operator
by manutd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |