in reply to Re^2: curly braces around a lexical file handle
in thread curly braces around a lexical file handle
That's not a realistic example. If you were printing two variables, it would look like
orprint $name, ", ", age;
print "$name, age";
And neither looks similar to the following to me:
print $fh $age;
As for your Perl6 eaxmple, you can do the same in Perl5.
$fh->print($s); # Perl5 $fh.print: $s; # Perl6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: curly braces around a lexical file handle
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 ikegami (Patriarch) on May 31, 2010 at 18:07 UTC | |
by moritz (Cardinal) on May 31, 2010 at 18:14 UTC | |
|