salmonix has asked for the wisdom of the Perl Monks concerning the following question:
Pacem, Domini!
I receive this error from Encode::Detect::Detector :
Encode::Detect::Detector::handle() -- THIS is not a blessed SV reference at TestEncoding.plx line 19.
The code is simple, almost taken from the man page.
#!/bin/perl -w use feature ":5.10"; use strict; use Carp; use Encode::Detect::Detector; open my $FILE,'TALT432.txt'; my @file=<$FILE>; close $FILE; say get_encoding(@file); sub get_encoding { my @data=@_; my $res; my $enc = Encode::Detect::Detector->new(); my $l; foreach ( @data ) { $enc->handle( $data[$l] ); $l++; } $enc->eof; return $res if $res=$enc->getresult(); }
Versions of modules:
Modules are installed in the user's ~/.perl/ etc. path locally. I have checked the Perl installation with the appropriate Gentoo tools and perl-cleaner, reinstalled the modules in the local path, but nothing changed and my humble knowledge has reached it borders.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encode::Detec::Detector: This is not an SV reference error
by ww (Archbishop) on Sep 29, 2010 at 13:11 UTC | |
|
Re: Encode::Detec::Detector: This is not an SV reference error
by Khen1950fx (Canon) on Sep 29, 2010 at 10:59 UTC | |
by Anonymous Monk on Sep 29, 2010 at 13:54 UTC | |
|
Re: Encode::Detec::Detector: This is not an SV reference error
by suhailck (Friar) on Sep 29, 2010 at 08:54 UTC | |
by suhailck (Friar) on Sep 29, 2010 at 09:05 UTC |