Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Daft text adventure project

by swiftone (Curate)
on May 31, 2001 at 00:10 UTC ( #84362=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $characters{'Bob the Fighter'}->{'Feats'}= [ 'Strong Spit', 'Perl Guru
    +'];
    # or
    @feats = ('Strong Spit', 'Perl Guru');
    $characters{'Bob the Fighter'}->{'Feats'} = \@feats;
    
  2. or download this
    $characters{'Bob the Fighter'}->{'Feats'}->[1];
    #is equal to 'Perl Guru'
    
  3. or download this
    $characters[3]->{'Attributes'}->{'Str'};
    
  4. or download this
    $characters->{'Bob the Fighter'}->{'Attributes'}->{'Str'};
    
  5. or download this
    if($char{Bob}->{Feats}->{'Good With Pointy Objects'}){
        Kill_Bad_Guy();
    } else {
        Die_Hideous_Death();
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2020-11-27 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?