Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Cleaning Whitespace from Source Code

by davido (Cardinal)
on Dec 08, 2004 at 22:35 UTC ( [id://413358]=note: print w/replies, xml ) Need Help??


in reply to Cleaning Whitespace from Source Code

It's not specifically related to just whitespace, but have you looked at Perl::Tidy? It will beautify and format your code for you.

Cleaning up whitespace in Perl code just with regexps is problematic since Perl's code can include both nonessential whitespace, and essential whitespace. For example, unless you're using a real parser, it's difficult to tell the difference between a HERE doc (which presumably has significant whitespace) and code (which presumably has some insignificant whitespace).


Dave

  • Comment on Re: Cleaning Whitespace from Source Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://413358]
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: (4)
As of 2024-04-24 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found