Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Lexical pad / attribute confusion

by adrianh (Chancellor)
on Dec 22, 2002 at 01:58 UTC ( [id://221705]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
          my ($x,@y,%z) : Bent = 1;
    
  2. or download this
            use attributes ();
            my ($x,@y,%z);
    ...
            attributes::->import(__PACKAGE__, \@y, 'Bent');
            attributes::->import(__PACKAGE__, \%z, 'Bent');
            ($x,@y,%z) = 1;
    
  3. or download this
          my ($x,@y,%z) : Bent = (@y);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found