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:  <%-{-{-{-<