From: WC -Sx- Jones <[EMAIL PROTECTED]> > Jas wrote: > > 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
I guess I missed something but ... where's the numerical context? I don't see any. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>