On Jul 3, Pozsar Balazs said:

>  %actions = (
>    login => \&welcome,
>    authent => \&checkpass,
>  );
>
>and
>
>  %actions = (
>    "login" => \&welcome,
>    "authent" => \&checkpass,
>  );

None, unless 'login' or 'authent' were one of:

  q qq qr qw qx s m y tr

Those can't be auto-quoted with => (unless 5.6.1 has changed that).

The => (fat arrow) auto-quotes the left-hand operand as long as it's a
bareword.

  foo => 'bar'

is the same as

  'foo' => 'bar'

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**      Manning Publications, Co, is publishing my Perl Regex book      **

Reply via email to