in reply to Re: using split on every element in an array
in thread using split on every element in an array

You're calling split() in a void context, so whatever returned values it may be generating are just being discarded.

Actually, no: the values are saved in @_. However, this usage of split is deprecated and will generate a warning when you use warnings or -w.

— Arien

  • Comment on Re: Re: using split on every element in an array

Replies are listed 'Best First'.
Re: Re: Re: using split on every element in an array
by Fletch (Bishop) on Jan 20, 2003 at 17:21 UTC

    You are correct. I thought it was only scalar context in which that happened, but it also apparently does it in void context as well. Good catch.