Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Disable perltidy in a region?

by RMGir (Prior)
on Jan 10, 2006 at 21:28 UTC ( [id://522327]=note: print w/replies, xml ) Need Help??


in reply to Re: Disable perltidy in a region?
in thread Disable perltidy in a region?

That would work. It has a runtime penalty associated with it, though, if the eval happens more than once.

I think.


Mike

Replies are listed 'Best First'.
Re^3: Disable perltidy in a region?
by blazar (Canon) on Jan 11, 2006 at 08:35 UTC

    I don't think he's suggesting to definitively turn (possibly) large chunks of code into string evals and otoh diotalevi is not likely to do anything like that - unless it's for an astonishing trick of his, that is!

    I think he's suggesting to trick perltidy temporarily. I don't use perltidy myself, but my editor generally does a good job automatically indenting the code for me. However for Perl that's hard and occasionally fails. In those cases I insert comments and trick it into thinking the code is somewhat more "regular" than it actually is, so that it can indent it nicely. Then I undo the local modifications.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2024-03-28 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found