File: prints-to-comments.pl

package info (click to toggle)
libxml-libxml-perl 2.0001%2Bdfsg-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,452 kB
  • sloc: perl: 5,285; ansic: 3,747; xml: 178; sh: 61; makefile: 8
file content (10 lines) | stat: -rw-r--r-- 111 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
#!perl -ln -i.bak

use strict;
use warnings;

if (/\A( *)print "(#.*?)\\n";\z/)
{
    $_ = "$1$2";
}
print $_;