RE: [PBML] Strange behavior with switch statement
- Charles, that is excellent code, and much easier than IF statements. Thanks!
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Charles K. Clarkson
Sent: Saturday, March 19, 2011 11:04 AM
Subject: Re: [PBML] Strange behavior with switch statement
On 3/16/2011 8:59 AM, Tim Lewis wrote:
> I have come across a strange happening in some code. The code below is
> a stripped out version of my entire program, but it still does the
> same weird thing. If the code below is run, it gives me the error
> String found where operator expected at testme.pl line 16, near "case "1""
Why use switch() at all?
my @month_names = qw/ JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC /;
my $archiveMonthName = $month_names[$numberOfMonth - 1];
Mobile Home Investor
Free Market Advocate
I'm not really a smart person. I just play one on the Internet.
+1 (254) 968-8328
[Non-text portions of this message have been removed]