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
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
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
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
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->