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

Re^2: foreach skipping elements

by kcott (Archbishop)
on Jul 20, 2013 at 04:53 UTC ( [id://1045420]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -E '
        my $x = q{1|2|3|||6|7||||};
    ...
    '
    1|2|3| | |6|7| | | |
    1|2|3| | |6|7| | | |
    
  2. or download this
    $ perl -Mstrict -Mwarnings -E '
        use Benchmark qw{cmpthese};
    ...
                        Rate while_no_repeat     just_repeat
    while_no_repeat 158479/s              --            -21%
    just_repeat     201613/s             27%              --
    

Log In?
Username:
Password:

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

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

    No recent polls found