Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: how to indent/pretty print perl code

by clemburg (Curate)
on Nov 02, 2000 at 20:18 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://39665]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found