luxgladius has asked for the wisdom of the Perl Monks concerning the following question:
So the second-to-last line tells me the solution, but I have no clue what the actual problem is. For what it's worth, I'm using 64-bit Activestate Perl 5.20.DB<10> p $#l 27 DB<11> p $#F 23 DB<12> p max($#l, $#F) 23 DB<13> p max(27,23) 27 DB<14> p 0+$#l 27 DB<15> p max(0+$#l, $#F) 27 DB<16> p max($#l, 0+$#F) 23
Edit: The max is from List::Util.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Max of 23 and 27 is 23?
by ikegami (Patriarch) on Jul 02, 2015 at 19:57 UTC | |
by tye (Sage) on Jul 02, 2015 at 21:18 UTC | |
by Anonymous Monk on Jul 09, 2015 at 21:28 UTC | |
|
Re: Max of 23 and 27 is 23?
by roboticus (Chancellor) on Jul 02, 2015 at 17:39 UTC | |
by luxgladius (Initiate) on Jul 02, 2015 at 18:00 UTC | |
|
Re: Max of 23 and 27 is 23?
by toolic (Bishop) on Jul 02, 2015 at 17:55 UTC | |
by luxgladius (Initiate) on Jul 02, 2015 at 18:02 UTC | |
by Anonymous Monk on Jul 02, 2015 at 18:10 UTC | |
|
Re: Max of 23 and 27 is 23?
by BrowserUk (Patriarch) on Jul 02, 2015 at 17:38 UTC | |
|
Re: Max of 23 and 27 is 23?
by Anonymous Monk on Jul 02, 2015 at 18:07 UTC | |
|
Re: Max of 23 and 27 is 23?
by Laurent_R (Canon) on Jul 02, 2015 at 19:56 UTC |