|P is for Practical|
Continuing from "Turning foreach into map?" - perlreftut and Referencesby ghenry (Vicar)
|on Apr 06, 2005 at 10:53 UTC||Need Help??|
ghenry has asked for the
wisdom of the Perl Monks concerning the following question:
As pointed out to me in Re^3: Turning foreach into map?, I should really be trying to learn refs instead of map just now.
I have been reading perlreftut, and started to get an idea for the first program I want to write to learn refs.
The program will simply ask for some food types and tell you if you can eat them together, according to a combination chart (This is taken from the, "You Are What You Eat Cookbook").
Following the example, I have a data format as follows (HoAs?) and I just want to check this is correct before moving on to the code:
The rules, once someone enters something via <STDIN>, are:
If so, I'll start writing.
Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a firstname.lastname@example.org? Just ask!!!