Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 380607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:00:20+00:00 2026-05-12T15:00:20+00:00

In the discussion of ?PATTERN? , perlop states "This usage is vaguely deprecated". Does

  • 0

In the discussion of ?PATTERN?, perlop states "This usage is vaguely deprecated". Does this mean that the ?? matching operator itself will be removed from perl, or does it mean that its semantics will change? Is using ?? a bad idea, or can that warning in perlop be ignored?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:00:20+00:00Added an answer on May 12, 2026 at 3:00 pm

    I would assume it means more or less what it says:

    This usage is vaguely deprecated, which means it just might possibly be removed in some distant future version of Perl, perhaps somewhere around the year 2168.

    So that means they’ll remove it when they release Perl 6.

    I kid, I kid. I would assume “vaguely deprecated” would mean that it’s not a terrible construct, but you might want to rethink your design. I personally didn’t even know what it was (or that the reset() function even existed) until I looked it up just now, and having seen it, I don’t know if I would ever use it for anything. The example they give in perlop is a bit cryptic:

    while (<>) {
      if (?^$?) {
        ...
      }
    } continue {
      reset if eof;
    }
    

    I would write the equivalent and more obvious:

    my $reset = 1;
    while (<>) {
      if ($reset and /^$/) {
        ...
        $reset = 0;
      }
    } continue {
      $reset = 1 if eof;
    }
    

    It’s more verbose, but it’s a little more obvious and easier on the brain (and maintainer).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We were having this discussion wiht my colleagues about Inner assignments such as: return
I have a Discussion (polymorphic resource) that can belong to Project, Task and Subtask.
Following this discussion , I've encountered a bad access issue; A loop has several
Me and my colleagues got into this discussion early this morning, and our opinions
Can we increase the re-usability for this key-oriented access-protection pattern : class SomeKey {
I was having a discussion about this with a co-worker and we couldn't come
I'm interested in learning more about pattern recognition. I know that's somewhat of a
Quick Q for you pattern experts out there. I want a Repository pattern that
The discussion to this answer just got me thinking about equality and equivalence of
This article describes a great pattern called 'Domain Events': http://www.udidahan.com/2009/06/14/domain-events-salvation/ One major flaw with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.