Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 examining the Monastery: (7)
As of 2014-12-28 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls