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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -