current version
[opsoft_test.git] / silentbob / scripts / fixdoxy.pl
blob235684e6c67bcbe52fe98f4b66d51d19e00460a0
1 #!/usr/bin/perl
3 my $fileName;
4 foreach $fileName (@ARGV) {
5 fixFile ($fileName);
8 sub fixFile ($) {
9 my $m_fileName = shift;
10 open (FILE, "< $m_fileName") or die "Не могу открыть файл $m_fileName";
11 @allData = <FILE>;
12 close FILE;
13 $data = join ("", @allData);
14 $data =~ s/charset=iso-8859-1/charset=utf8/g;
15 open (FILE, "> $m_fileName");
16 print FILE $data;
17 close FILE;