MealMaster::Ingredient - Represent a MealMaster ingredient
print "Ingredients:\n"; foreach my $i (@{$r->ingredients}) { print " " . $i->quantity . " " . $i->measure . " " . $i->product . "\n"; }
MealMaster::Ingredient represents an ingredient in a MealMaster recipe.
Returns the measurement unit of the ingredient:
print $i->measure . "\n";
Returns the ingredient name:
print $i->product . "\n";
Returns the quantity of measures needed:
print $i->quantity . "\n";
MealMaster, MealMaster::Recipe
Leon Brocard, <acme@astray.com>
<acme@astray.com>
Copyright (C) 2005, Leon Brocard
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install MealMaster, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MealMaster
CPAN shell
perl -MCPAN -e shell install MealMaster
For more information on module installation, please visit the detailed CPAN module installation guide.