in reply to Re: switch stattement
in thread switch stattement

You may also want to consider using a hash, if you don't have too many options:
I would argue that you may want to consider using a hash, especially if you have many options. The hash can be built up incrementally across many locations, allowing you to create a plugin-style structure, with the handling for each filetype placed in its own module, each of which adds itself to the hash. Even if the hash is defined entirely in one place, it's more compact than other representations.

Oh, and don't use Switch.