I don't get any errors when I run this:
{
$date =~ s;\d\d(\d\d)$;$1;
}
print $datewhich is what I meant by:
--Philip
Links 2.0 moderator
Code:
$date = '11/01/2001'; {
$date =~ s;\d\d(\d\d)$;$1;
}
print $date
Quote:
it's perfectly acceptable (even suggested in perldoc) to omit the ';' from the last line of code in a block--Philip
Links 2.0 moderator