Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: SImulation of an Inventory.

by cavac (Chaplain)
on Jun 24, 2012 at 20:16 UTC ( #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
Node Status?
node history
Node Type: note [id://978081]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2015-07-05 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls