in reply to Unable to load the parser

hello amitkumarj441 and welcome to the monastery and to the wonderful world of Perl!

The error you receive is that column_names_to_parser_str sub was not imported into main that is the current default namespace of the program.

Your syntax to import is very archaic do file.pl is an ancient thing no ones does nowadays.

To import beahaviours ie subs into main you'd better use modules; such modules normally use the core module Exporter to export subs into namenspace.

Maybe the parser.pl does not define import from nowhere any column_names_to_parser_str sub at all?

Your code it is alot for me to read now but Perl generates always good and useful errors. follow them. Perl also tell you something more if you use warnings; also use diagnostics; can be useful when debugging

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Unable to load the parser
by shmem (Chancellor) on Apr 26, 2017 at 22:16 UTC
    Your syntax to import is very archaic do file.pl is an ancient thing no ones does nowadays.

    I protest mildly since I do do. I do use, import, require, but sometimes - where appropriate - I just do.
    It's not archaic, but one of the shells of the onion - the innermost being string eval.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
      > I do do. I do

      I da da da.. ;=)

      You are perfectly right! (and figure I'm a defender of &sub syntax)

      L*

      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re^2: Unable to load the parser
by amitkumarj441 (Initiate) on Apr 26, 2017 at 20:52 UTC

    Thanks for your prompt response. I'll check what you have suggested me to look into my code and will see if I able to resolve it.