Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: question regarding using Switch.pm in production use

by kvale (Monsignor)
on May 02, 2005 at 16:01 UTC ( [id://453303]=note: print w/replies, xml ) Need Help??


in reply to question regarding using Switch.pm in production use

The main problem with source filters is that they must parse Perl code in order to transform it, and Perl code is very hard to parse. Perl has a lot of context sensitivity and parsing it involves more that a straight lexing-parsing data flow; there is a subtle interaction between the lexing and the parsing that even has probabilistic aspects to it.

This is what folks mean when they say that only perl can parse Perl :) Thus source filters are playing with code they do not fully understand, and could be considered dangerous.

If you wnat to use Switch.pm in production code, I'd recommend coding stanards to keep the conditional for the cases reasonbly simple, and test always.

-Mark

  • Comment on Re: question regarding using Switch.pm in production use

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://453303]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found