Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

How to debug .lib files?

by crusty_collins (Friar)
on Jul 09, 2014 at 15:25 UTC ( [id://1092930]=perlquestion: print w/replies, xml ) Need Help??

crusty_collins has asked for the wisdom of the Perl Monks concerning the following question:

Most venerable monks i have a question for you.

I am working on legacy code and they used lib files to house all of their functions. The coder uses require to load the function. What is the best way to debug these? Here is snippet of their code The run.pl sets up the environment and then the Currency.pl runs. -- /jet/prod/run.pl /jet/prod/Currency.pl

relavant piece of /jet/prod/Currency.pl
require "$mainProcDir/lib/getCurrencyOrderFiles.lib"; # MAIN PROCESSING SUBROUTINE %mainVars; $mainVars = \%mainVars; main($msgLVL);
the main function of lib/getCurrencyOrderFiles.lib
sub main { my ($msgLVL) = @_; my $sub = 'main'; print "-- Beginning [$sub]\n" if $msgLVL > 1; getInitParms($msgLVL); my @files = getFiles($msgLVL); # # my @files = ("chi_Currency_20130828*.txt"); for my $file (@files) { print "\t FILE -> $file\n" if $msgLVL > 1; moveFile($msgLVL,$file); stageExtTblFiles($msgLVL,$file); my $batch_id = loadOrders($msgLVL); archiveFiles($msgLVL, $batch_id); } print "-- Leaving [$sub]\n" if $msgLVL > 1; }

Replies are listed 'Best First'.
Re: How to debug .lib files?
by jfroebe (Parson) on Jul 09, 2014 at 16:45 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1092930]
Approved by boftx
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found