in reply to min $#a, $#b > $#b
Whoops.. Eily caught me telling lies... ok, made a minimal working program:
use List::Util qw( min ); my @A; for $_ (1..5) { push @A, $_; $max = min($#A, 0); $t = ref $#A; print "$max = min($#A,0)\n"; }
0 = min(0,0) 1 = min(1,0) 0 = min(2,0) 0 = min(3,0) 0 = min(4,0)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: min $#a, $#b > $#b
by Crackers2 (Parson) on Jan 12, 2016 at 20:47 UTC | |
by Eily (Monsignor) on Jan 13, 2016 at 08:55 UTC | |
by FreeBeerReekingMonk (Deacon) on Jan 12, 2016 at 21:11 UTC | |
|
Re^2: min $#a, $#b > $#b
by Mr. Muskrat (Canon) on Jan 12, 2016 at 21:22 UTC | |
by FreeBeerReekingMonk (Deacon) on Jan 12, 2016 at 21:38 UTC | |
|
Re^2: min $#a, $#b > $#b
by Eily (Monsignor) on Jan 12, 2016 at 19:57 UTC |