perl - UNIVERSAL does not export anything -
hi getting following error when trying run perl script:
pc:~/phd/lenovo/programs/vep/scripts/variant_effect_predictor$ perl variant_effect_predictor.pl --help universal not export @ /home/arron/phd/lenovo/programs/vep/scripts/variant_effect_predictor/bio/tree/treefunctionsi.pm line 94.
where offending line is:
use universal qw(isa)
what issue?
from documentation of universal:
previous versions of documentation suggested using isa function determine type of reference:
use universal 'isa'; $yes = isa $h, "hash"; $yes = isa "foo", "bar";
the problem code never call overridden isa method in class. instead, use reftype scalar::util first case:
use scalar::util 'reftype'; $yes = reftype( $h ) eq "hash";
so method not exist anymore.
Comments
Post a Comment