Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Mistakenly Believing split is using @_

by japhy (Canon)
on Sep 19, 2001 at 22:15 UTC ( [id://113429]=note: print w/replies, xml ) Need Help??


in reply to Mistakenly Believing split is using @_

split() in scalar context (update: void context is a special type of scalar context) assigns to @_. That's documented. Chances are you can use something other than split() if you just want a field-count.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

  • Comment on Re: Mistakenly Believing split is using @_

Log In?
Username:
Password:

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

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

    No recent polls found