I am using Windows.
Thats true I am capturing the whole number into $1 using regex.
Should code tags be used for capturing large numbers using regex, ?
User Profile
Collapse
-
Convert 20080928014155 to date time in perl?
I have 2 questions:
1.When I read the number using (\S+) its getting stored as 2.08E13.
Code I used:
How to read and store a 15digit number in perl?Code:if ($line=~/4_begindt_(\S+)/) { print "$1\n" } # $1=2.08E13; instead $1 should contain 20080928014155
2.Once I store the number how do I convert to date and time?
like 09/28/2008 01:41:55
Please let...
No activity results to display
Show More
Leave a comment: