hello,
> > my %user = qw(
> > login mc
> > shell /bin/zsh
> > );
> > print $user{login};
> my %user = ( login => 'mc', shell => 'bin/zsh');
> is way more readable in that case, I think,
> and it does showcase what a *smart* quoting system can do.
well ... i prefer the way i wrote because i love to:
* remove useless symbols
* read columns
but yes: the drawback of perl is: there are so many ways to do
it so every project needs a clear coding style.
regards
marc
No comments:
Post a Comment