On Thu, Jan 02, 2020 at 04:22:08PM +0100, Marc Chantreux wrote:
> 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
Well, => and , allow to figure out errors in odd/even hashes easily.
I will always lean towards idiot-proofing the code.
No comments:
Post a Comment