in reply to Re: undef number?
in thread undef number?

the easy way is to just sort @x and take the last element with a slice...

There's no way I would call

(sort {$a <=> $b} @x)[-1,0]
easier than
max(@x)

They're both core, max being located in List::Util.

Replies are listed 'Best First'.
Re^3: undef number?
by Marshall (Canon) on Apr 19, 2010 at 17:56 UTC
    Didn't realize this was core, but indeed it is! And also List::Util::XS so one can see if List::Util was installed as C compiled version. Sometimes it is easy to forget that the Camel book only has a subset of Core modules listed as there are a lot of them now.

    thanks.