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

Re^3: extract only smallest numbers

by grep (Monsignor)
on Jul 21, 2007 at 21:38 UTC ( #628034=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      my ($name, $code) = split(/\t/);
     
    }
    
  2. or download this
      # Still untested
      if ( !defined( $hash{$name} ) ) {
        $hash{$name} = $code;
      } 
    
  3. or download this
      # Still untested
      if ( !defined( $hash{$name} ) or $code < $hash{$name} ) {
        $hash{$name} = $code;
      } 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-10-23 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (126 votes), past polls