in reply to
Vexing views of variables
Perhaps irrelevant, but
$a
and
$b
are special for
sort
, and should never be used elsewhere, unless you are expecting
sort
to call the
sub
.
-QM
--
Quantum Mechanics: The dreams stuff is made of
Comment on
Re: Vexing views of variables
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: Vexing views of variables
by
JadeNB
(Chaplain)
on Aug 07, 2009 at 18:51 UTC
I think that lexical
$a
and
$b
are still OK (and have no significance to
sort
), but you're right that they're sub-optimal choices of names. I've changed it—thanks!
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom