Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: arrays

by arturo (Vicar)
on Apr 04, 2003 at 19:09 UTC ( [id://248166]=note: print w/replies, xml ) Need Help??


in reply to Re: arrays
in thread Count how many of each type in an array

Let me add the caveat that since the

foreach (@foo ) { }
construction makes $_ an alias for the current element being processed, that your number stripping substitution modifies the original array, which may or may not be appropriate. To non-destructively process the array, you might capture before the first digit to get your hash key.

If not P, what? Q maybe?
"Sidney Morgenbesser"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-20 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found