Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Pattern Match/Trim Variables.by LostS (Friar) |
on Feb 17, 2003 at 19:01 UTC ( [id://236073]=perlquestion: print w/replies, xml ) | Need Help?? |
LostS has asked for the wisdom of the Perl Monks concerning the following question:
OK Here is what I am doing. I am doing a SELECT into a Database. It gets a few fields which are all in the same format (12/03/2001 12:00:01.000). What I need to do is to look at each field. If they fall in that format (MM/DD/YYYY HH:MM:SS.XXX) trim that .XXX off. How would you all suggest I do this? I know I need to do some sort of pattern match but due to I suck at regex (It is extremely hard for me to learn I am finding out) I am not sure how to go about this.... Here is my foreach statement:
Thank you all loads for any help... ----------------------- Billy S. Slinar Hardtail - Hand of Dane Datal Ephialtes - Guildless RallosZek.Net Admin/WebMaster
Back to
Seekers of Perl Wisdom
|
|