Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by kvale (Monsignor)
on Mar 10, 2004 at 06:11 UTC ( #335370=note: print w/replies, xml ) Need Help??


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

I think that in principle there is nothing wrong with these operators. But getting them included would be a hard sell, because a module solution is already available and easy to use:
use List::Util qw(max maxstr min minstr); my $highest = max @numlist; my $highstr = maxstr @strlist; my $lowest = min @numlist; my $lowstr = minstr @strlist;

-Mark

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://335370]
help
Chatterbox?
[Discipulus]: Eily i'm testing a failure: i ok if i get bad results.. perhaps there is another way to do it...
[Discipulus]: in other words: i have a contructor that carps on missing arguments and I want to test that it fails correctly, without carping out in the test output

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2018-01-22 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (233 votes). Check out past polls.

    Notices?