in reply to Re^3: Split output by tabs
in thread Split output by tabs
I disagree as to the bogosity of this practice. There is nothing wrong with adding clarity to a statement that may otherwise be confusing or ambiguous. And there is nothing wrong with reducing the number of rules someone needs to know in order to correctly decipher a statement.
This is just such a case, because an argument given to print can start with either a filehandle or a variable. Depending on what follows, it can be very hard to tell which is intended without braces.
I do enjoy how Perl lets one push the boundaries of acceptable syntax, but that doesn't mean it's always a good idea to do so. That's just my opinion, of course.
When's the last time you used duct tape on a duct? --Larry Wall
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Split output by tabs
by Anonymous Monk on Nov 13, 2012 at 13:45 UTC | |
by choroba (Cardinal) on Nov 13, 2012 at 13:58 UTC | |
by shmem (Chancellor) on Nov 13, 2012 at 14:20 UTC | |
by Anonymous Monk on Nov 13, 2012 at 15:06 UTC | |
by ColonelPanic (Friar) on Nov 13, 2012 at 14:13 UTC | |
by shmem (Chancellor) on Nov 13, 2012 at 14:48 UTC | |
by ColonelPanic (Friar) on Nov 13, 2012 at 15:36 UTC | |
by shmem (Chancellor) on Nov 13, 2012 at 16:03 UTC | |
| |
by Anonymous Monk on Nov 13, 2012 at 15:01 UTC | |
by ColonelPanic (Friar) on Nov 13, 2012 at 15:19 UTC | |
by Anonymous Monk on Nov 13, 2012 at 15:33 UTC |
In Section
Seekers of Perl Wisdom