Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Thoughts on some new operators for perl (6 or 7)

by BigLug (Chaplain)
on Mar 10, 2004 at 05:34 UTC ( [id://335364]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $highest = 0;
    my $lowest = 1_000_000_000;
    ...
       $highest = $_ if $_ > $highest;
       $lowest = $_ if $_ < $lowest; # was $highest - see update
    }
    
  2. or download this
    my $highest = 0;
    my $lowest; # undef
    ...
       $highest =>> $_;
       $lowest =<< $_;
    }
    
  3. or download this
    my $highest = '';
    my $lowest; # undef
    ...
       $highest eg $_;
       $lowest el $_;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found