I am trying to match the dot using the following regular expression
#!/volume/perl/bin/perl use warnings; use strict; use DateTime::Duration; my $tim = "01:00:01.004"; $tim =~ s/:/./g; print "new time is $tim"; my @outputlist = split /./, $tim; print "$outputlist[0]\n";
It shows the following error . let me know how to split using dot
Use of uninitialized value in concatenation (.) or string at ./temp-ip2.pl line 11. new time is 01.00.01.004
In reply to Matching dot using regexp by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |