Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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]
[stevieb]: Thanks hippo, as do I, as if it's not, hardware peripherals or sensors could be destroyed (code has to be reliable when dealing with input/output voltages)
[hippo]: Aha - more Pi-based projects?
[stevieb]: yeah digital potentiometer
[hippo]: Sounds fun. Good luck with it all.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (22)
As of 2017-01-20 16:53 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (176 votes). Check out past polls.