Keep It Simple, Stupid | |
PerlMonks |
Re^3: blocks and using braces around filehandles with printby dcd (Scribe) |
on Mar 16, 2008 at 22:49 UTC ( [id://674492]=note: print w/replies, xml ) | Need Help?? |
A block is 'code' in this case code that returns a file handle - see how perl deparse's the above code and puts a semicolon before the right curly brace in the code below: $ perl -MO=Deparse fh.pl fh.pl syntax OK (there are probably other methods that you can use to have perl show you what it is "thinking") perldoc -f print does mention the blocks
In Section
Seekers of Perl Wisdom
|
|