$water_level->current_water_level( $current_reading ); # input by user print "Current Water Level: ", $current_reading, " m (low: < ", $water_level_threshold, " m)\n"; if ( $water_level->is_low_water_level ) { print " !! Water level is low!\n"; $water_level->pump_water_in; print " Pumping in ", $height_increase, " m of water...\n"; print "Current Water Level: ", $water_level->current_water_level, "\n"; } else { print " Water level is still normal.\n"; } 1; }
To install Acme::FishFarm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::FishFarm
CPAN shell
perl -MCPAN -e shell install Acme::FishFarm
For more information on module installation, please visit the detailed CPAN module installation guide.