On Tue, 3 Jul 2001, Pozsar Balazs wrote:

> What's the difference between these two?:
>
>   %actions = (
>     login => \&welcome,
>     authent => \&checkpass,
>   );
> and
>   %actions = (
>     "login" => \&welcome,
>     "authent" => \&checkpass,
>   );

Nothing.  If you use the => operator, quotes around the keys are not
required.  Quotes are also not required when using single word keys hwne
retrieving a value:

$actions{login}->();

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
An investment in knowledge always pays the best interest.
                -- Benjamin Franklin

Reply via email to