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

Re: regex pattern match

by McA (Priest)
on Mar 29, 2013 at 09:35 UTC ( #1026114=note: print w/ replies, xml ) Need Help??


in reply to regex pattern match

Hi,

take Text::CSV and parse line by line, so you should have all elements A and B and C and D,E,F in one array. Then you access the last element and split it with:

my @lastletters = split /,/, $elements[-1]; if(@lastletters > 1) { # more than one letter print "first row\n"; print "additional rows\n"; }

McA


Comment on Re: regex pattern match
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-07-05 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls