in reply to Re: Pulling by regex II
in thread Pulling by regex II
I like doing stuff like this because it saves you the possible typo(s) if you userstand how map works. I'm always looking for more efficient ways to do it, however. Can anyone think of any?my %months = map { (qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec +/)[$_] => $_}(0..11);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Pulling by regex II
by BrowserUk (Patriarch) on Dec 14, 2002 at 08:12 UTC | |
by JayBonci (Curate) on Dec 14, 2002 at 08:25 UTC | |
by BrowserUk (Patriarch) on Dec 14, 2002 at 08:31 UTC | |
by tadman (Prior) on Dec 14, 2002 at 20:10 UTC | |
by BrowserUk (Patriarch) on Dec 14, 2002 at 20:19 UTC |