Re: Switch.pm not working under Apache::ASP

2002-06-23 Thread Joshua Chamas
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

RE: Switch.pm not working under Apache::ASP

2002-06-23 Thread Jim Helm
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

RE: Switch.pm not working under Apache::ASP

2002-06-22 Thread Jim Helm
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

RE: Switch.pm not working under Apache::ASP

2002-06-18 Thread Jim Helm
> -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

Re: Switch.pm not working under Apache::ASP

2002-06-18 Thread Ian Cass
> 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 --