|Just another Perl shrine|
from array to hash with grepby jeanluca (Deacon)
|on Jun 15, 2006 at 07:44 UTC||Need Help??|
jeanluca has asked for the
wisdom of the Perl Monks concerning the following question:
once in a while I try map and grep, but normally I avoid them becaus they are so complex.
Anyway, this time I tried todo the following with grep:
So, I would like to create a hash with the keys A, B and C. Running this gives an error near grep.
Can someone tell me what I do wrong here with grep?