> However, I do think there's something to be said for a "quick-and-dirty"
   > script out of the box that can distinguish between sub{} vars and other
   > vars ala C:
   > 
   >    $user = 'nwiger';
   >    sub whois {
   >        ($user) = @_;    # different var
   >        # ...
   >    }
   >    print whois($user);

Are two extra chars really so much to ask?...

       $user = 'nwiger';
       sub whois {
           my($user) = @_;    # different var
           # ...
       }

Besides, named arguments will solve this (in fewer chars even :-)...

       $user = 'nwiger';
       sub whois ($user) {
           # ...
       }

Damian

Reply via email to