in reply to Optional quotes: to use or not to
are you using quotes in such situations?
Always for strings, never for numerical values.my $abc = { 'word' => 'abc', 'number' => 123}; $abc->{'otherword'} = 345;
why? / pros of your way
Visually distinct from other stuff, syntax highlight treats quoted values differently -> easier to recognize if something looks strange.cons of your way
It's not necessary to quote everything.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optional quotes: to use or not to
by hurricup (Pilgrim) on Jul 10, 2015 at 11:33 UTC | |
by Monk::Thomas (Friar) on Jul 10, 2015 at 11:41 UTC | |
by hurricup (Pilgrim) on Jul 10, 2015 at 11:43 UTC | |
by Monk::Thomas (Friar) on Jul 10, 2015 at 12:25 UTC | |
by hurricup (Pilgrim) on Jul 10, 2015 at 13:10 UTC | |
by Monk::Thomas (Friar) on Jul 10, 2015 at 14:47 UTC |