Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: regexp wizardry needed

by johngg (Abbot)
on Jan 25, 2013 at 23:24 UTC ( #1015426=note: print w/replies, xml ) Need Help??


in reply to Re: regexp wizardry needed
in thread regexp wizardry needed

my @date = map ucfirst, map lc, split ' ', $lines2;

I'm not sure why you are going with two maps, one would be sufficient.

$ perl -E ' > $line = q{PERIOD 13 OCT 06 OCT}; > say for map ucfirst lc, split q{ }, $line;' Period 13 Oct 06 Oct $

I hope this is of interest.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^3: regexp wizardry needed
by Kenosis (Priest) on Jan 26, 2013 at 00:44 UTC

    I'm not sure why you are going with two maps...

    I didn't think of it, so this is certainly of interest. Greatly appreciate you sharing this, JohnGG!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015426]
help
Chatterbox?
[Eily]: it doesn't work in French AFAIK
[Eily]: I like the first one though :)
[erix]: balloonist, surely :P (or maybe baloneyist)
[marto]: afternoon all
[Corion]: Hi marto ;)
[Corion]: Eily: Yeah - my French isn't even good to understand jokes, much less to make them :-D
[Corion]: marto: That post is a repost/duplicate of Excel sheet data write issue :-D
[Corion]: Whoops - Merging worksheets in .xls in one Excel sheet
[marto]: Corion, whoops, can the moderation me amended?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-09-21 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (248 votes). Check out past polls.

    Notices?