perl switch statement limitation

By Adrian Smith2 May 2007100 words1 mins to read

Look at the documentation for the Perl switch statement. Look down the bottom at the "limitations" section. Look at the last limitation.

If your source file is longer then 1 million characters and you have a switch statement that crosses the 1 million (or 2 million, etc.) character boundary you will get mysterious errors. The workaround is to use smaller source files.

This article was written by Adrian Smith on 2 May 2007

Follow me: Facebook | Twitter | LinkedIn | Email

More on: FAIL | Perl