Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Pass by ref vs alias : why does scalar size matter?

by Jenda (Abbot)
on May 01, 2008 at 23:48 UTC ( [id://684057]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark qw(cmpthese);
    use strict;
    ...
    sub by_ref {
       ${ $_[0] } =~ s/\s+//;
    }
    
  2. or download this
    my %data = (min_alias => 999999999, min_ref => 999999999);
    while (<>) {
    ...
    }
    
    print "$_ => $data{$_}\n" for sort keys %data;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-28 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found