Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

What is the :unique attribute for package variables?

by princepawn (Parson)
on Jun 04, 2007 at 15:55 UTC ( [id://619157]=perlquestion: print w/replies, xml ) Need Help??

princepawn has asked for the wisdom of the Perl Monks concerning the following question:

Yes, today is my day for going through all the perldelta docs and learning all sorts of new things. Well anyway I was reading perl591delta and I read this:
The :unique attribute is only meaningful for globals

Now applying :unique to lexical variables and to subroutines will result in a compilation error.

But a search for unique attribute yields no information.

What exactly is this attribute and how does it work? And where could I have found docs on it?


Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
  • Comment on What is the :unique attribute for package variables?

Replies are listed 'Best First'.
Re: What is the :unique attribute for package variables?
by princepawn (Parson) on Jun 04, 2007 at 16:11 UTC
    Yes, and continuing on my delta safari, I see
    :unique The :unique attribute has been made a no-op, since its current implementation was fundamentally flawed and not threadsafe.


    Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
Re: What is the :unique attribute for package variables?
by ForgotPasswordAgain (Vicar) on Jun 04, 2007 at 16:04 UTC

    perldoc -f our

    (found by googling: perl unique attribute globals)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://619157]
Approved by naikonta
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2026-01-14 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.