Jim Helm wrote:
> Damian replied:
>
>
>>Investigations reveal that you can't use *any* kind of source filter
>
> inside an C. So there's definitely a problem, but not one I can
> fix.
>
> So it looks like I'll be using 'for ($x)' for the time being... He's
> adding a note regarding this to th
Damian replied:
>Investigations reveal that you can't use *any* kind of source filter
inside an C. So there's definitely a problem, but not one I can
fix.
So it looks like I'll be using 'for ($x)' for the time being... He's
adding a note regarding this to the Switch docs.
--Jim
> -Origin
Seems there's something about eval that breaks Switch. I've emailed
Damian to see if it's a known problem or if there's something else going
on. I'll follow up if I find out more...
--Jim
-
To unsubscribe, e-mail: [EMAIL PRO
> -Original Message-
> From: Joshua Chamas [mailto:[EMAIL PROTECTED]]
> I wonder if this is some kind of mod_perl thing.
> What might happen if you tried to run the script
> from the command line using asp-perl? I do not know
Interestingly enough, it seems to be asp and not mod_perl, w
> my $x = 'x';
>
> switch ($x) {
> case 'x' { print 'x' }
> else { print 'not x' }
> }
>
> # %>
I always implement case statements as such
my $x = 'x';
for ($x) {
/^x$/
and do {
print 'x';
last;
};
# Default
print 'not x';
}
--
Ian Cass
--