From: Stuart G. <st...@sm...> - 2003-12-10 20:07:51
|
On Wednesday 10 December 2003 19:53, Jaco Botha wrote: > > use Switch; > > switch (state $light) { > case 'on' { print_log "It is on" } > } Without wanting to start any mass argument, I was wondering what the advantage the Switch module has over if...then...elseif...else ? I remember reading somewhere that Perl didn't have it because Larry couldn't think of a valid reasonto include it. (Or was it that he couldn't think of a good way to do it .. ?) |