On 18 Oct 2007, at 12:55 PM, [EMAIL PROTECTED] wrote:
-snip-
Even the @weekdays doen't yield all the days instead it yields the
combination of three days...
my @weekdays = join '|', qw<Sunday Monday...Saturday>;
my @months = join '|', qw<January February ... December>;
print @weekdays;
-snip-
Er, because <Monday...Saturday> is not a valid range in Perl. Example
code given should be thoroughly read before use.
One suspects you were meant to use
my @weekdays = join '|', qw<Sunday Monday Tuesday Wednesday Thursday
Friday Saturday>;
in your code. Same goes for @months. HTH.
dwu
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/