Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: List manipulation headache

by elef (Friar)
on Feb 14, 2011 at 14:34 UTC ( #888002=note: print w/ replies, xml ) Need Help??

in reply to Re^2: List manipulation headache
in thread List manipulation headache

There are a couple of ways in which that could break.
It will break on lines where the first "wap" is not wap1 (we don't know if that can occur in the file) and it will break on wap11 through wap19, which seem to be valid data (OP: the rest can be abbreviated to 2,3,4,5,12,34).
I seem to remember some regex element that tells perl to do a replacement on the nth occurrence(s) only, which could be used here, but I can't think of it now. Maybe I just made it up.

Comment on Re^3: List manipulation headache

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-04 05:03 GMT
Find Nodes?
    Voting Booth?

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

    Results (57 votes), past polls