develooper Front page | perl.perl5.porters | Postings from December 2021

Re: Pre-RFC: ${^ENGLISH_NAME} aliases for punctuation variables

Thread Next
From:
Yuki Kimoto
Date:
December 12, 2021 23:37
Subject:
Re: Pre-RFC: ${^ENGLISH_NAME} aliases for punctuation variables
Message ID:
CAExogxNJAvwdZSDC0DcR9Zvygv+c=wFn32W2oSAfd+jMLdaREw@mail.gmail.com
Is there anyone who wants to move this proposal forward?

Personally I want to write the following for beginners who don't know the
details of Perl.

  # Current
  while (my $line = <>) {
    if ($. == 1) {
      next;
    }
  }

  # Future
  while (my $line = <>) {
    if (${^INPUT_LINE_NUMBER} == 1) {
      next;
    }
  }

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About