in reply to Re^2: why is it considered good syntax to put \* before STDIN or STDOUT
in thread why is it considered good syntax to put \* before STDIN or STDOUT
I'm testing with the Arch Linux system Perl and, unless I'm missing something, it seems that both of your examples that "don't work", work for me.
$ perl my $x = \*STDOUT; $x->print("STDOUT test"); STDOUT test $ perl open my $x, '>', "/tmp/tst"; $x->print("blah blah"); $ cat /tmp/tst blah blah $ perl -v This is perl 5, version 20, subversion 0 (v5.20.0) built for x86_64-li +nux-thread-multi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: why is it considered good syntax to put \* before STDIN or STDOUT (perldelta)
by LanX (Saint) on Jun 08, 2014 at 20:52 UTC | |
|
Re^4: why is it considered good syntax to put \* before STDIN or STDOUT
by Laurent_R (Canon) on Jun 09, 2014 at 06:37 UTC | |
by mr_mischief (Monsignor) on Jun 09, 2014 at 14:00 UTC |