Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: how to indent/pretty print perl code

by clemburg (Curate)
on Nov 02, 2000 at 20:18 UTC ( #39665=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    (indent-region 0 (buffer-size)  nil)
  2. or download this
    > emacs -batch -l .emacs -l perl-indent.el
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    for (1) { print "emacs rules"; }
    while (1) { print " ... at least in viper mode\n"; }
  4. or download this
    #!/usr/bin/perl -w
    use strict;
    while (1) {
        print " ... at least in viper mode\n";

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2016-10-26 13:42 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (341 votes). Check out past polls.