Hi.

My file has dates in it that either come out as "2Jul2001" or "21Jul2001".  So one or 
two digits for the day, three for the month, and four for the year.

So I would like to split out the day, month, year, and am interested in splitting 
techniques, where there are no delimeters.

Of course, I could just test the length and then use substr it all out, or even 
sprintf it into a new variable with a pad at the first character.

But this is perl, and I reckon there are much cooler ways to do it.

Any takers?

Paul.



------------------------------------------------
Global WebMail -
  Delivered by Global Internet www.global.net.uk
------------------------------------------------



Reply via email to