Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Accessing hash from within module

by BrowserUk (Patriarch)
on Feb 12, 2012 at 09:10 UTC ( [id://953294]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $o = OO::Module->new;
    
    for my $i ( 0 .. $o->yyy->highest_index ) {
        $o->yyy->set_element( $i, $o->yyy->get_element( $i ) + 1 );
    }
    
  2. or download this
    our @yyy;
    *yyy = \@{ $main::lglobal{ yyy } };
    
    ++$yyy[ $_ ] for 0 .. $#yyy
    

Log In?
Username:
Password:

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

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

    No recent polls found