concerning the first question: as far as I know perl doesn't care about the amount of data, so it will load until the memory is full.
concerning the second question: does the program outputs the data or is it directed to a file?
Thank you all for your help. The problem has been found and is solved.
It appears that the new perl version expects the XML::Parser module within a sub-path like XML/Parser.pm instead of the old way Parser.pm where within Parser.pm is stated XML::Parser.
Hello all,
I had a perl script running on an old perl version, but last weekend the server migrated to solaris 2.8 with perl version v5.8.0 built for sun4-solaris.
The script begins as following:
#!/usr/bin/perl -w
use strict;
use FindBin;
use lib $FindBin::Bin;
use XML::Parser;
The error...
I think it's line which fills data.
When a script is running from crontab the server is running the script without having specific environment settings.
So, can you indicate how @data is being filled?
Thank you for your comments Paul.
Metrics should always serve as an indication to help you analyse the situation, often metrics are used as shotguns: wrong number and you're dead. I am happy that you too warn on this.
Concerning complexity: one can think of the "natural complexity" (how...
It also depends on how neat the perl script is written. If for example (I know it's a weak one) the script uses a defect in the perl language which is solved the script will crash.
Another example (better) is that an ugly perl script might be dependend of when certain processes are finished...
I am looking for some time now for some method to measure perl scripts (and modules) for their quality.
Since quality is not simply expressed in a single number you will need a set of metrics like:
- cyclomatic complexity
- fan in/fan out (number of functions referenced and number of functions...
Like I said, I don't know much about this net stuff but I simply read the error and conclude that somehow the ping function is missing something which might be solved by a bind.
Summary: Someone else should pick up the help from here...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.