Skip to content

Instantly share code, notes, and snippets.

@Mortimal
Created October 5, 2020 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mortimal/f6d72d0fa5f10cd6d90ddd50f5fed749 to your computer and use it in GitHub Desktop.
Save Mortimal/f6d72d0fa5f10cd6d90ddd50f5fed749 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use encoding 'utf8';
use Encode;
open (my $tmp, "<", $ARGV[0]) or die "Error open file - $!";
while (<$tmp>)
{
Encode::from_to($_,'cp866','utf8');
if ($str=~/3/i)
{
print "OK\n";
}
}
close ($tmp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment