in reply to curly braces around a lexical file handle
This style is recommended in Perl Best Practices, Chapter 10 (I/O), p. 217, Printing to Filehandles: "Always put filehandles in braces within any print statement".
The idea is that putting braces around the filehandle helps it stand out clearly and clarifies your intentions in that you really did intend it to be treated as a filehandle and didn't just forget a comma.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: curly braces around a lexical file handle
by moritz (Cardinal) on May 31, 2010 at 07:44 UTC | |
by ikegami (Patriarch) on May 31, 2010 at 16:49 UTC | |
by moritz (Cardinal) on May 31, 2010 at 16:54 UTC | |
by ikegami (Patriarch) on May 31, 2010 at 17:31 UTC | |
by moritz (Cardinal) on May 31, 2010 at 17:51 UTC | |
| |
by JavaFan (Canon) on May 31, 2010 at 10:38 UTC | |
by moritz (Cardinal) on May 31, 2010 at 13:08 UTC | |
by ikegami (Patriarch) on May 31, 2010 at 17:00 UTC | |
|
Re^2: curly braces around a lexical file handle
by ikegami (Patriarch) on May 31, 2010 at 04:01 UTC |