Perl and operator SWITCH

Tuesday, August 8th, 2006

As you may know Perl doesn’t contain a SWITCH control operator. Instead, there are many ways to create SWITCH. This is a good and bad. Yesterday I fixed a bug in our Billing System related with custom implementation of SWITCH operator. Image we have a code like that:
my $var1 = ”;
my $var2 = ”;
SWITCH: {
[...]