Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Problem undefining a variable in a loop using a module causing a list to not empty after use of a subroutine

by Lady_Aleena (Priest)
on Apr 07, 2010 at 02:27 UTC ( [id://833168]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package RolePlaying::Classes;
    
    ...
    }
    
    1;
    
  2. or download this
    for my $name (keys %characters) {
      my $id = $name;
    ...
      print qq{\t<p>}.print_classes($experience,@classes).qq{</p>\n};
      print qq{\t<p>Experience: $experience</p>\n};
    }
    
  3. or download this
    tie my %characters, qw(Tie::IxHash);
    %characters = (
    ...
        classes => ["fighter/warrior","thief/rogue","mage/wizard"],
      },
    );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-03-29 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found