I'm not sure what those first three substitutions are. You appear to be replacing characters with themselves, specifying the match as a meta-character and the replacement as a hex value.
The s command you want to get rid of the trailing piece in the date is:
my $date = '02/17/2003 14:09:34.087'; $date =~ s#^(\d\d/\d\d/\d\d\d\d \d\d:\d\d:\d\d)\.\d\d\d$#$1#;
In reply to Re: Pattern Match/Trim Variables.
by steves
in thread Pattern Match/Trim Variables.
by LostS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |