in reply to Re: How to get sort-like semantics?
in thread How to get sort-like semantics?

The use vars isn't necessary, since you're using a lexical $a and $b.

Replies are listed 'Best First'.
Re^3: How to get sort-like semantics?
by duelafn (Vicar) on Oct 26, 2007 at 19:55 UTC

    I was wondering about that when I copied the code over. My conjecture was that use vars was needed for an older version of perl, but I have no guess as to why an older perl might need it or what version of perl needs it.

    Good Day,
        Dean