Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Counting the number of items returned by split without using a named array

by Anonymous Monk
on May 04, 2006 at 12:35 UTC ( #547402=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse -e '$a = () = split(" ",$_,0)'
    $a = () = split(" ", $_, 1);
    
  2. or download this
    $ perl -MO=Deparse -e '$a = () = split(" ",$_,100000)'
    $a = () = split(" ", $_, 100000);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2021-01-19 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?