On 10/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > Comment me if there is any mistake of mine please? > Even the @weekdays doen't yield all the days instead it > yields the combination of three days... snip > my @weekdays = join '|', qw<Sunday Monday...Saturday>; > my @months = join '|', qw<January February ... December>; snip
That is because the ... is an ellipsis you are supposed to fill in, not a Perl range operator (Perl isn't that magical yet). Also, as Jenda pointed out, those should be scalars not arrays. I was out of it yesterday and wasn't paying close attention. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/