in reply to Re: Matching dot using regexp
in thread Matching dot using regexp
<pedantic>
The regular expression that follows in the OP is /./ in the split expression. And FWIW, it could, indeed, be a string literal:
</pedantic>c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my $tim = '01:00:01.004'; ;; $tim =~ s/:/./g; print qq{new time is '$tim'}; my @outputlist = split '\.', $tim; dd \@outputlist; " new time is '01.00.01.004' ["01", "00", "01", "004"]
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Matching dot using regexp
by LanX (Saint) on Oct 10, 2017 at 09:30 UTC | |
by soonix (Chancellor) on Oct 10, 2017 at 10:19 UTC | |
by AnomalousMonk (Archbishop) on Oct 10, 2017 at 10:46 UTC | |
by AnomalousMonk (Archbishop) on Oct 10, 2017 at 10:15 UTC | |
|
Re^3: Matching dot using regexp
by Anonymous Monk on Oct 10, 2017 at 11:10 UTC |