User Profile

Collapse

Profile Sidebar

Collapse
brainbox
brainbox
Last Activity: Oct 2 '08, 06:05 AM
Joined: Oct 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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, ?
    See more | Go to post

    Leave a comment:


  • brainbox
    started a topic Convert 20080928014155 to date time in perl?
    in Perl

    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:
    Code:
    if ($line=~/4_begindt_(\S+)/) {
    print "$1\n"	}
    # $1=2.08E13; instead $1 should contain 20080928014155
    How to read and store a 15digit number in perl?

    2.Once I store the number how do I convert to date and time?
    like 09/28/2008 01:41:55

    Please let...
    See more | Go to post
    Last edited by numberwhun; Oct 1 '08, 01:25 AM. Reason: Please use code tags
No activity results to display
Show More
Working...