in reply to Bad name after noimport error

You are using the Switch module which is not recommended for production code and can cause mysterious errors.

Replies are listed 'Best First'.
Re^2: Bad name after noimport error
by burningredmoon (Novice) on Apr 22, 2011 at 13:29 UTC
    The switch worked before I added the whole If Equal part. What else could I use? And sorry for not marking what line the error was at. Thank you for replying.
      The switch worked before I added <some code which could not possibly affect the switch statement>.

      This wonderful and mysterious feature of the Switch module is the reason it is so warmly deprecated. It arises from the fact that the module is a source filter.

      What else could I use?

      For an equivalent in 5.10+ versions, see the  given and  when keywords discussed in the section Switch statements of perlsyn.
      Prior to 5.10, see the section entitled something like "Basic BLOCKs and Switch Statements" in perlsyn for alternatives.

        Thank you for the reply. I got help from my class mates and I'll post the new code.