* Simon Cozens <[EMAIL PROTECTED]> [05/05/2001 17:51]:

> > %foo = ( foo => 1, bar => 1, '=>' => 'baz' )
> 
> Of course, that could be spelt
>
>   %foo = <+foo +bar =>("baz")>;

Actually, it couldn't be because the > in => would end the parsing.
Same problem that the POD <> chars have.

I think Uri's qh() suggestion is the cleanest:

   use CGI qh(:standard !h2 !h3 version => 1.4);

And it would make hash declarations cleaner:

   %hash = qh(
        foo
        bar
        jim => 'bob'
        var
   );

Plus maybe even a pragma to set the default value:

   {
        use default hashval => 'closed';
        %dotcoms = qh(
             pets
             amazon => 'open'
             onlinechoice
             etour
             nettaxi => 'life support'
        );
   }
        

In fact "use default" could set stuff like what should mean truth too:

   use default false => qw(0 ""),
                true => qw(!undef);

Or something like that. That last one might help take care of the |||
flamewars.

-Nate

Reply via email to