Wouldn't this be better?
my $year = ""; my $month = ""; my $day = "";
if($file =~ /^(\d{4})(\d{2})(\d{2})-www.tar.gz$/) { $year = $1; $month = $2; $day = $3;
No, because strings in numerical context which start with 0 (zero) in the format:
03 or 09 are returned as 3 or 9
part of the problem, hmmmm? -Bill- __Sx__________________________________________ http://youve-reached-the.endoftheinternet.org/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>