in reply to Help in using backtick operator

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:

foreach my $filename (<AAAA*$date*.log>) { ... }
Check out the glob() builtin and the <> operator in perlop for more information.

alakaboo