in reply to Re: Mistaken notions of $a/$b strict
in thread use strict won't require explicit name for all variables?

While I don't have time to fully explain it, you can actually use prototypes(bleck) to avoid the weirdness in $a and $b (ughhh) for 5.6 and above....
sub boo ($$) { my ($a,$b) = @_; $a <=> $b }

-Blake

Replies are listed 'Best First'.
Re: Re2: Mistaken notions of $a/$b strict
by dragonchild (Archbishop) on Mar 01, 2002 at 14:28 UTC
    Actually, just scoping $a and $b to boo() is enough. I didn't realize they were passed in through @_. :-)

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.