* 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
- Re: Apoc2 - <STDIN> concerns David L. Nicol
- Re: Apoc2 - <STDIN> concerns Uri Guttman
- Re: Apoc2 - <STDIN> concerns John Porter
- Re: Apoc2 - <STDIN> concerns Bryan C . Warnock
- Re: Apoc2 - <STDIN> concerns Simon Cozens
- Re: Apoc2 - <STDIN> concerns Peter Scott
- Re: Apoc2 - <STDIN> concerns Bart Lateur
- Re: Apoc2 - <STDIN> concerns Jarkko Hietaniemi
- RE: Apoc2 - <STDIN> concerns Lipscomb, Al
- Re: Apoc2 - <STDIN> concerns Larry Wall
- Re: Apoc2 - <STDIN> concerns Nathan Wiger
- Re: Apoc2 - <STDIN> concerns David L. Nicol
- Re: Apoc2 - <STDIN> concerns Simon Cozens
- Re: Apoc2 - <STDIN> concerns Mark Koopman
- Re: Apoc2 - <STDIN> concerns Nathan Wiger
- Re: Apoc2 - <STDIN> concerns Simon Cozens
- Re: Apoc2 - <STDIN> concerns John Porter
- Perl6 MOP (was RE: Apoc2 - <STDIN> concerns) David Whipp
- Re: Apoc2 - <STDIN> concerns Nathan Wiger
- Re: Apoc2 - <STDIN> concerns Simon Cozens
- Re: Apoc2 - <STDIN> concerns Nathan Wiger
