Skip to content
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

Doesn't support giving filehandle to readline #112

Closed
anonyno opened this issue Oct 27, 2020 · 1 comment
Closed

Doesn't support giving filehandle to readline #112

anonyno opened this issue Oct 27, 2020 · 1 comment
Labels

Comments

@anonyno
Copy link

anonyno commented Oct 27, 2020

This works:

use strict;
use warnings;
use utf8;
use open qw(:std :utf8);

while (my $line = <STDIN>) {
    print $line;
}

But this doesn’t:

use strict;
use warnings;
use utf8;
use open qw(:std :utf8);

while (my $line = readline STDIN) {
    print $line;
}
@xsawyerx xsawyerx added the bug label Jan 30, 2021
xsawyerx added a commit that referenced this issue May 31, 2022
This includes "readline(STDIN)".
@xsawyerx
Copy link
Owner

Fixed in d9ab139.

xsawyerx added a commit that referenced this issue Jun 20, 2022
    * GH #23: (VERY) Preliminary support for extending the grammar.
    * GH #111: Support "die".
    * GH #112: Support "readline STDIN" or "readline(STDIN)".
    * GH #113: Support "$#_" (but not "$# _").
    * GH #114: Support all forms of binmode() (Val @valcomm).
    * GH #115: Support all forms of for() loop (Val @valcomm).
    * RT #132920: Fix confusion of quote-like operators by comments.
    * Support "_" in file operations ("-x _", etc.).
    * Support "$foo->$bar" and "$foo->$_".
    * Support 'eval "..."' or 'eval $foo'.
    * Improve wording on top-level anonymous hashes.
    * When failing without an exception, we throw an exception with
      more information (e.g., "print _").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants