Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: How to get the number of fields found by split without a warning?

by Rudif (Hermit)
on Dec 10, 2003 at 00:35 UTC ( #313616=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub split_simple_quiet
    {
    ...
        my $n = scalar split ',', $str;
        #print "$n\n";
    }
    
  2. or download this
    Use of implicit split to @_ is deprecated at H:\dev\perl\perlmonks\ben
    +ch.pl line 23.
    Benchmark: timing 10000 iterations of split_anonymous, split_simple, s
    +plit_simple_quiet...
    ...
    split_anonymous    643/s                --               -21%         
    +      -22%
    split_simple       818/s               27%                 --         
    +       -1%
    split_simple_quiet 823/s               28%                 1%         
    +        --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2023-11-28 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?