in reply to Re: Bad name after noimport error
in thread Bad name after noimport error

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.

Replies are listed 'Best First'.
Re^3: Bad name after noimport error
by AnomalousMonk (Archbishop) on Apr 22, 2011 at 21:52 UTC
    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.