in reply to Pattern Match/Trim Variables.
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#;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pattern Match/Trim Variables.
by LostS (Friar) on Feb 17, 2003 at 19:21 UTC | |
by Coruscate (Sexton) on Feb 17, 2003 at 20:44 UTC | |
by steves (Curate) on Feb 17, 2003 at 22:18 UTC |