in reply to Encode::Detec::Detector: This is not an SV reference error

Try changing
foreach (@data) {
to
foreach $l (@data) {

Replies are listed 'Best First'.
Re^2: Encode::Detec::Detector: This is not an SV reference error
by suhailck (Friar) on Sep 29, 2010 at 09:05 UTC
    May be changing the line
    my $l; to my $l=0;
    will help here coz the undefined value of $l is passed at first to the handler method.