itsscott has asked for the wisdom of the Perl Monks concerning the following question:
# set xmllint to use a tab over 2 spaces $ENV{XMLLINT_INDENT} = "\t"; # create (gag) a system call to call # xmllint and then move the temp file # to the target file my $syscall = 'xmllint --format '.$outfile.' > '.$outfile.'-lint;mv '. +$outfile.'-lint '.$outfile; # ensure the temp file does not exist. unlink("$outfile-lint"); system($syscall);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Calling xmllint better than using a system()
by Tanktalus (Canon) on Jul 22, 2011 at 22:47 UTC | |
by itsscott (Sexton) on Jul 26, 2011 at 17:42 UTC | |
by Tanktalus (Canon) on Jul 26, 2011 at 17:56 UTC | |
by itsscott (Sexton) on Jul 26, 2011 at 20:33 UTC | |
Re: Calling xmllint better than using a system()
by CountZero (Bishop) on Jul 23, 2011 at 06:45 UTC |