Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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
    (cperl-mode)
    (indent-region 0 (buffer-size)  nil)
    (save-buffer)
    
  2. or download this
    > emacs -batch try.pl -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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-10-26 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls