Syntactic Confectionery Delight | |
PerlMonks |
Re: check if an element exists in arrayby jethro (Monsignor) |
on Apr 19, 2008 at 11:06 UTC ( [id://681642]=note: print w/replies, xml ) | Need Help?? |
If the Hash of Arrays is too high tech for you, you could also simply concatenate the numbers in a comma seperated string, so that Jims entry would be "12,57". The if statement in mscharrers code would then look like:
You can just print the string stored in the hash or get at the numbers with my @numbers= split /,/,$value
In Section
Seekers of Perl Wisdom
|
|