Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^5: On Commenting Out 'use strict;' (source filters)

by tye (Sage)
on Aug 12, 2005 at 20:38 UTC ( #483400=note: print w/replies, xml ) Need Help??

in reply to Re^4: On Commenting Out 'use strict;' (errors)
in thread On Commenting Out 'use strict;'

Thanks for the clarifications. I apologize for my mischaracterization.

I don't consider the LIMITATIONS section of Switch to be even close to adequate. It mentions rather specific limitations in parsing which is likely to give the opposite impression from the Perl6::Rules disclaimer that I quoted. That is, they imply that other than these few exceptions, the parsing of complex code is unlikely to be a problem.

But I've seen reports of problems that are not covered by any of the specific cases listed (such as the contents of comment lines causing very random-looking problems). Does the module always correctly distinguish a '/' character for division from a '/' character that starts a regex (which requires tracking prototypes), just to pick one example?

I once started writing code that would use Inline::Files but quickly switched to a different method when I realized that the module used a source filter. I felt that the problems I'd seen reported for Switch justified a disclaimer like the Perl6::Rules one I quoted and, since neither Switch nor Inline::Files contained anything close to that, I did not feel I could trust Inline::Files at all.

So, personally, I suggest modifying the documentation of these modules to make the (rather wide, no?) distinction clearer.

I apologize again for the unfair thrashing. I hope the above helps to explain the misunderstanding that lead to my confusion.

- tye        

  • Comment on Re^5: On Commenting Out 'use strict;' (source filters)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483400]
[stevieb]: I'm working on it to fatten it up and make it more reliant so I can finalize my Raspberry Pi automated build system for that software :) It's all well and fun, until I try to make it work with Windows lol
[shmem]: "debugging a program is more difficult than to write it in the first place. If you code your program as smart as you are, you are, by definition, too dumb to debug it."
[stevieb]: I literally laughed. That's good :) Perhaps I just need to go climb another mountain and forget about it
shmem seeks a tate and smikes a pope

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-03-28 22:16 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (342 votes). Check out past polls.