Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: $str to %hash to @ary

by fizbin (Chaplain)
on Jul 23, 2004 at 14:42 UTC ( [id://376892]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @a = split/:/,$str;
    @a % 2 && die;                # not an even number of items
    ...
       if ($r < $p) {last;}
       $r -= $p;
    }
    
  2. or download this
                Rate origCode     duff       QM      L~R      ccn   fizbin
    origCode  4029/s       --     -34%     -77%     -82%     -87%     -89%
    ...
    L~R      22908/s     469%     273%      32%       --     -29%     -38%
    ccn      32106/s     697%     423%      85%      40%       --     -12%
    fizbin   36690/s     811%     498%     111%      60%      14%       --
    
  3. or download this
    --
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found