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

Re: Re: Re: Re: Re: Slurp a file

by davorg (Chancellor)
on Jan 08, 2001 at 22:07 UTC ( #50537=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    
    timethese(100_000, {join => \&joinit,
                        slash => \&dollarslash} );
    
  2. or download this
    Benchmark: timing 100000 iterations of join, slash...
          join:  2 wallclock secs ( 1.52 usr +  0.29 sys =  1.81 CPU)
         slash:  4 wallclock secs ( 2.99 usr +  0.35 sys =  3.34 CPU)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-05-07 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (93 votes). Check out past polls.

    Notices?