Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Syntactic Confectionery Delight
 
PerlMonks  

Re: perltidy safety

by Joost (Canon)
on Aug 09, 2005 at 12:10 UTC ( [id://482283]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to perltidy safety

"yes" and "not without a backup and some tests" respectively.

In the few cases I've seen perltidy break code, it broke in such a way that the resulting syntax was invalid (this was a couple of years ago, I can't remember the specifics), so running "perl -c" against the resulting code should give you some indication - if it fails, your code was mangled.

update: just to clear this up: I don't use perltidy all that regulary, but I've used it a couple of times in the last year, and I haven't seen any breaks then (on about 50 files or so). All breaking I've experienced was years ago - this probably depends on your coding style - YMMV.

update 2: also "if it fails, your code was mangled" does not imply that your code isn't mangled if "perl -c code.pl" succeeds.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://482283]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.