in reply to Re^2: blocks and using braces around filehandles with print
in thread blocks and using braces around filehandles with print
A block contains 0 or more Perl statements. A block evaluates the the last value evaluated within the block.
Examples:
{ STDOUT } -> STDOUT { $hash{$k}[$i] } -> $hash{$k}[$i] { my $x = func(); uc($x) } -> uc($x) { if ($cond) { 'FOO' } } -> If $cond is false, $cond. -> If $cond is true, 'FOO'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: blocks and using braces around filehandles with print
by bramble (Beadle) on Mar 17, 2008 at 01:09 UTC | |
by ikegami (Patriarch) on Mar 17, 2008 at 01:29 UTC | |
by bramble (Beadle) on Mar 17, 2008 at 03:30 UTC |