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

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

by Arien (Pilgrim)
on Jan 18, 2003 at 05:46 UTC ( [id://227931]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2025-01-14 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (38 votes). Check out past polls.