But, as others have pointed out, the case (pun intended:-) for a hash in these circumstances is overwhelming.SWITCH: { $operatingsystem eq "170" && do { $Folder = "winvista"; $Readme = "readme_winvista.txt"; last SWITCH; }; $operatingsystem eq "173" && do { $Folder = "winvista64"; $Readme = "readme_winvista64.txt"; last SWITCH; }; $operatingsystem eq "119" && do { $Folder = "winvxp"; $Readme = "readme_winxp.txt"; last SWITCH; }; $operatingsystem eq "210" && do { $Folder = "winxp64"; $Readme = "readme_winxp64.txt"; last SWITCH; }; . . . };
In reply to Re: switch stattement
by Bloodnok
in thread switch stattement
by mtrasp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |