Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: date replace

by bichonfrise74 (Vicar)
on Dec 11, 2009 at 06:08 UTC ( #812330=note: print w/ replies, xml ) Need Help??


in reply to date replace

Is this what you want?
#!/usr/bin/perl use strict; while (<DATA>) { s/\d\d(.*)/$1/ if /\d{8}/; print; } __DATA__ 20070820 070223 20080929

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://812330]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-07-25 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (222 votes). Check out past polls.