view conv.pl @ 197:6b1dda998839

Added IMPL::declare, IMPL::require, to simplify module definitions IMPL::Transform now admires object inheritance while searching for the transformation Added HTTP some exceptions IMPL::Web::Application::RestResource almost implemented
author sergey
date Thu, 19 Apr 2012 02:10:02 +0400
parents 47dac58691ee
children
line wrap: on
line source

#!/usr/bin/perl
use strict;
use File::Find;

find(sub {
    open my $hfile, "<:encoding(cp1251)", $_  or warn "failed: $!" and return;
    
    my @data = <$hfile>;
    
    close $hfile;
    undef($hfile);
    
    chomp foreach @data;
    
    open $hfile, ">:encoding(utf8)", $_ or warn "failed: $!" and return;
    
    print $hfile "$_\n" foreach @data;
    
}, qw(Lib _test _doc));