New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
print FILEHANDLE DWIMery doesn't always work #8195
Comments
From @smpetersWhile testing some Perl code, I discovered that the undocumented behavior of perl -wle'$_="Does this work\n"; print STDERR' prints $_ to STDERR. However, bracketing the filehandle returns a syntax perl -wle'$_="does this work"; print {STDERR}' Since this is undocumented, I'm guessing its not used much. Ideally, though, |
From @smpeters
It appears that B::Deparse is also unprepared for this syntax.
|
@smpeters - Status changed from 'new' to 'open' |
From @rgarciaOn 11/7/05, via RT Steve Peters <perlbug-followup@perl.org> wrote:
Glancing at perly.y, I don't think this is easily fixable without |
From @doyAlthough the issue itself still exists, as of dee33c9 this behavior is If you're storing handles in an array or hash, or in general whenever Is the actual behavior planned to be fixed, or can this issue be closed? |
From @nwc10On Sun, Jun 24, 2012 at 03:28:46PM -0700, Jesse Luehrs via RT wrote:
I don't think that you hit the right documentation. I think that the bug $ perl -le '$_ = "Pie"; print STDERR' Why is the second a syntax error when the other three work? Nicholas Clark |
From @doyOn Tue, Jul 03, 2012 at 10:15:59AM +0100, Nicholas Clark wrote:
That documentation says that the LIST may not be omitted if you use a -doy |
From @cpansproutOn Tue Jul 03 02:16:31 2012, nicholas wrote:
Work, or ‘work’? print STDERR is a hack. print STDERR $foo is So these all print $_ to STDERR: print + STDERR; -- Father Chrysostomos |
From [Unknown Contact. See original ticket]On Tue Jul 03 02:16:31 2012, nicholas wrote:
Work, or ‘work’? print STDERR is a hack. print STDERR $foo is So these all print $_ to STDERR: print + STDERR; -- Father Chrysostomos |
From @jkeenanOn Tue Jul 03 13:00:19 2012, sprout wrote:
doy, nicholas, Father C: Can we come to some kind of resolution on this issue so that we can Thank you very much. |
From @cpansproutOn Fri Sep 21 19:50:46 2012, jkeenan wrote:
We need to decide whether it is worth extending the implicit $_ to I think the examples I gave should definitely be fixed. That trips me However, this is not very close to the top of my to-do list. -- Father Chrysostomos |
Migrated from rt.perl.org#37624 (status was 'open')
Searchable as RT37624$
The text was updated successfully, but these errors were encountered: