vit has asked for the wisdom of the Perl Monks concerning the following question:
but I need something like thatmy %hash = map { lc($_), 1 } <IF>;
which does not work.%hash = map { lc($_), 1; s/<tag>//; s/<\/tag>// } <IF>;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: map <IF> to hash with replacement
by almut (Canon) on Feb 04, 2010 at 23:52 UTC | |
by vit (Friar) on Feb 05, 2010 at 00:38 UTC | |
by GrandFather (Saint) on Feb 05, 2010 at 01:06 UTC | |
by almut (Canon) on Feb 05, 2010 at 00:45 UTC | |
by ikegami (Patriarch) on Feb 05, 2010 at 07:19 UTC | |
by jwkrahn (Abbot) on Feb 05, 2010 at 00:46 UTC | |
by vit (Friar) on Feb 05, 2010 at 01:06 UTC | |
Re: map <IF> to hash with replacement
by crashtest (Curate) on Feb 05, 2010 at 01:49 UTC | |
by Your Mother (Archbishop) on Feb 05, 2010 at 02:22 UTC | |
by mrdvt92 (Acolyte) on Feb 05, 2010 at 04:34 UTC | |
by Your Mother (Archbishop) on Feb 05, 2010 at 05:28 UTC |