libxml-libxml-perl/scripts/prints-to-comments.pl

11 lines
111 B
Perl
Raw Normal View History

2022-09-27 15:00:17 +08:00
#!perl -ln -i.bak
use strict;
use warnings;
if (/\A( *)print "(#.*?)\\n";\z/)
{
$_ = "$1$2";
}
print $_;