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

Re^8: iterating through array and saving matches to new array

by Marshall (Canon)
on Apr 23, 2018 at 20:40 UTC ( [id://1213455]=note: print w/replies, xml ) Need Help??


in reply to Re^7: iterating through array and saving matches to new array
in thread iterating through array and saving matches to new array

Same idea. The () is not "undef", it is no return value. In a foreach loop, a next statement might be used to skip processing of an input value.
  • Comment on Re^8: iterating through array and saving matches to new array

Replies are listed 'Best First'.
Re^9: iterating through array and saving matches to new array
by AnomalousMonk (Archbishop) on Apr 23, 2018 at 22:56 UTC

    Exactly the same idea. I just meant to supply a worked example of something you had discussed in pseudo-ish code :)


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

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

    No recent polls found