in reply to Replacing $mon with Jan, Feb, Mar by regex or other means
Put the 3-char abbrevs into a string and use substr to pick out the right one.
perl -e"for my $mon (0..11) { print substr('JanFebMarAprMayJunJulAugSe +pOctNovDec', $mon*3, 3), $/; }" Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Switch the quotes under unix.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replacing $mon with Jan, Feb, Mar by regex or other means
by RMGir (Prior) on Apr 25, 2003 at 11:48 UTC | |
by Abigail-II (Bishop) on Apr 25, 2003 at 12:06 UTC | |
by RMGir (Prior) on Apr 25, 2003 at 12:14 UTC | |
by BrowserUk (Patriarch) on Apr 25, 2003 at 12:49 UTC |