
MealMaster::Recipe - Represent a MealMaster Recipe

foreach my $r (@recipes) {
print "Title: " . $r->title . "\n";
print "Categories: " . join(", ", sort @{$r->categories}) . "\n";
print "Yield: " . $r->yield . "\n";
print "Directions: " . $r->directions . "\n";
print "Ingredients:\n";
foreach my $i (@{$r->ingredients}) {
print " " . $i->quantity .
" " . $i->measure .
" " . $i->product .
"\n";
}

MealMaster::Recipe represents a MealMaster recipe.

Returns an array reference of the categories that the recipe is filed under:
print "Categories: " . join(", ", sort @{$r->categories}) . "\n";
Returns the directions for making the recipe:
print "Directions: " . $r->directions . "\n";
Returns a list of ingredients for making the recipe:
print "Ingredients:\n";
foreach my $i (@{$r->ingredients}) {
print " " . $i->quantity .
" " . $i->measure .
" " . $i->product .
"\n";
}
Returns the title of the recipe:
print "Title: " . $r->title . "\n";
Returns the yield of the recipe:
print "Yield: " . $r->yield . "\n";

MealMaster, MealMaster::Ingredient

Leon Brocard, <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.