perl - Getting Undefined subroutine utf8::SWASHGET called at ./MIME/Parser/Filer.pm line 365 -


i'm trying extract attachments incoming emails , i'm using following code related mime::tools:

$parser = mime::parser->new(); $parser->output_dir("./tmp"); $message  = $parser->parse_data($msg); # $msg contains email contents 

when calling $parser->parse_data($msg), script fails following:

undefined subroutine utf8::swashget called @ ./mime/parser/filer.pm line 364

this happens first instance of regex matching in filer.pm file, i'm assuming it's way regex matching performed. put regex match earlier see if indeed related , failed on exact spot same error.

any regards this? have no problem retrieving emails , contents, attachments have been pain.

my perl version 5.8.9, mime::tools - 5.502, i'm not root user , sadly have no access root privileges (i'm getting around using

begin { unshift @inc, "~email/mime"; } 

at top /mime contains lib folders relevant cpan modules, in case mime)

thanks in advance!

after helpful perl monks chimed in, problem shebang using pointed older version of perl (apparently there 2 perl versions on our work environment, located in different locations had not been aware of).

it's still mysterious why older version behave in such way guess solution seem to upgrade newer version (as pointed out in other post).

anyway i'm not quite sure how okay cross-posting is, apologies if topic felt redundant due being posted in 2 places, initial motivation i'd sufficiently different responses.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -