Hi Marcus,
On 2/27/07, Marcus Obst marcus.obst@s2003.tu-chemnitz.de wrote:
Kann mir das jemand erklären, habe ich Perl verlernt, oder ist es etwa kaputt?
aus der Doku:
There are undoubtedly serious bugs lurking somewhere in code this funky :-) ... Due to the heuristic nature of Switch.pm's source parsing, the presence of regexes specified with raw "?...?" delimiters may cause mysterious errors. The workaround is to use "m?...?" instead.
Due to the way source filters work in Perl, you can't use Switch inside an string "eval".
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.) char- acter boundary you will get mysterious errors. The workaround is to use smaller source files.
Ich hatte auch schon manche Merkwürdigkeiten mit Switch.pm erlebt. Nimm einfach Ruby, dann geht's. ;-)
Viele Grüße, Torsten