Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

WWED

by ellem (Hermit)
on Apr 14, 2002 at 22:27 UTC ( #159030=note: print w/replies, xml ) Need Help??


in reply to The One True Style of indentation:

When faced with this dilemma Brothers you need only ask:

What
Would
Emacs
Do?

--
ellem@optonline.net
There's more than one way to do it, but only some of them actually work.

Replies are listed 'Best First'.
Re: WWED
by premchai21 (Curate) on Apr 15, 2002 at 01:03 UTC

    Actually, that's ambiguous...

    M-x cperl-set-style Enter style: <TAB> BSD CPerl GNU PerlStyle C++ Current K&R Whitesmith

    So, Emacs Would Do one of the seven/eight styles above, depending on how it's customized. :-)

      Emacs does not default into cperl-mode though. It defaults into the less robust perl-mode.

      --
      perl -pe "s/\b;([mnst])/'\1/mg"

        Not my Emacs -- I use XEmacs 21, which defaults into cperl-mode. The version and type of Emacs wasn't specified in the original post.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159030]
help
Chatterbox?
[LanX]: damn my headphones were not plugged and the video blasted thru the office ...
[LanX]: xD
[LanX]: .. my boos woke up... ;-)
[Eily]: nice to see I'm not the only one looking like a fool at work
Eily answered a message but made the smiley on his face instead of in the message

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2017-09-20 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?