Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: SImulation of an Inventory.

by cavac (Parson)
on Jun 24, 2012 at 20:16 UTC ( [id://978081]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    if($wood >= 10){
        print "BUILD a HUT with 10 wood\n";
    }
    
  2. or download this
    if ($diff eq "easy"){
        $wood = 120;
    ...
        $wood = 75;
        $food = 20;
    }
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    if($inventory{wood} >= 10){
        print "BUILD a HUT with 10 wood\n";
    }
    
  4. or download this
    #!/usr/bin/perl
    
    ...
    if($inventory{wood} >= 10){
        print "BUILD a HUT with 10 wood\n";
    }
    
  5. or download this
    package AlienInit;
    
    ...
    }
    
    1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-25 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found