in reply to Scalars within Subroutines (scope)
But I'd highly recommend against using $a and $b as variable names as they are special to sort().my($foo,$bar) = qw(one two); print "($foo, $bar)\n"; { # new scope, new variables my($foo,$bar) = qw(ichi ni); print "($foo, $bar)\n"; } print "($foo, $bar)\n"; __output__ (one, two) (ichi, ni) (one, two)
_________
broquaint
|
|---|