Re: Switch (module) and mod_perl problem.

2003-10-30 Thread Perrin Harkins
On Thu, 2003-10-30 at 11:41, Mark Hawkes wrote: > At 11:23 2003-10-30 -0500, you wrote: > >In my never ending search for more elegant looking and self-documenting > >code I decided to try out the Switch module. > > I've sometimes faked a switch statement like this... That's a good approach, and

Re: Switch (module) and mod_perl problem.

2003-10-30 Thread Mark Hawkes
At 11:23 2003-10-30 -0500, you wrote: In my never ending search for more elegant looking and self-documenting code I decided to try out the Switch module. I've sometimes faked a switch statement like this... SWITCH: { $foo eq 'r' && do { # read stuff last SWITCH; }; $foo eq 'w' && d

Re: Switch (module) and mod_perl problem.

2003-10-30 Thread Steve Hay
Geoffrey Young wrote: John Day wrote: In my never ending search for more elegant looking and self-documenting code I decided to try out the Switch module. In the following fragment of code: #!/usr/local/bin/perl # AppSys: Manage Profile use strict; use CGI qw/:standard/; use CGI::Carp qw(fa

Re: Switch (module) and mod_perl problem.

2003-10-30 Thread Geoffrey Young
John Day wrote: In my never ending search for more elegant looking and self-documenting code I decided to try out the Switch module. In the following fragment of code: #!/usr/local/bin/perl # AppSys: Manage Profile use strict; use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use Swit

Switch (module) and mod_perl problem.

2003-10-30 Thread John Day
In my never ending search for more elegant looking and self-documenting code I decided to try out the Switch module. In the following fragment of code: #!/usr/local/bin/perl # AppSys: Manage Profile use strict; use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use Switch; my $cgi = CGI->