In the discussion of ?PATTERN? , perlop states "This usage is vaguely deprecated". Does
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I would assume it means more or less what it says:
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:I would write the equivalent and more obvious:
It’s more verbose, but it’s a little more obvious and easier on the brain (and maintainer).