Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Manually incrementing @ array during for

by kcott (Archbishop)
on Mar 17, 2020 at 20:54 UTC ( [id://11114399]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Manually incrementing @ array during for
in thread Manually incrementing @ array during for

Fair enough. I obviously missed the later post where the goal posts were moved. :-)

The second of my two solutions would work equally well for an array. The chomp may not be necessary: hard to tell as the example input data presented in the OP looks more file data than array data.

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found