Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Cleaning Whitespace from Source Code

by jonadab (Parson)
on Dec 09, 2004 at 01:37 UTC ( [id://413398]=note: print w/replies, xml ) Need Help??


in reply to Cleaning Whitespace from Source Code

This isn't a Perl solution, but I'd just hook some custom elisp functions up to cperl-mode for this. The advantage of this approach is that the functions can look at the syntax information in the text properties, so that you can for example choose not to alter the whitespace inside strings or comments, without writing any code to parse where strings and comments begin or end -- one less wheel to reinvent. The disadvantage is that you have to know elisp, in addition to Perl.

"In adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."  — Pratico & Van Pelt, BBHG, p68
  • 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://413398]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found