Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. uida1154

    how much info can a variable store?

    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?
  2. uida1154

    error "Can't locate XML/Parser.pm in @INC" at new perl version

    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.
  3. uida1154

    error "Can't locate XML/Parser.pm in @INC" at new perl version

    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...
  4. uida1154

    Perl and Cron job problem

    Can you die on failing opening the file? Maybe the file can not be opened from the crontab environment.
  5. uida1154

    Perl and Cron job problem

    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?
  6. uida1154

    regex: replace all special characters

    It's got to do with the greediness of RE. Try using .*? The ? means "use the shortest match".
  7. uida1154

    perl metrics

    Thanks for the start. I will look at the stuff in detail.
  8. uida1154

    perl metrics

    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...
  9. uida1154

    Calling another PERL script with DO & Args and Scalers

    If it appears to be that you will be using this second script often it might be wise to think of rebuilding it into a perl module.
  10. uida1154

    simple perl question

    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...
  11. uida1154

    perl metrics

    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...
  12. uida1154

    Need Help to Get disk info in Perl

    For unix look at du
  13. uida1154

    perl and sql

    I would start with the appropiate CPAN perl modules like: http://search.cpan.org/~rdietrich/sql-simple-0.06/
  14. uida1154

    perl reverse

    #!/usr/bin/perl -w use strict; my @array = qw(1 2 3 4 5); my @array2; foreach my $value (@array) { unshift @array2, $value; } print @array2;
  15. uida1154

    Executing a command for a specified time

    Or http://search.cpan.org/~stbey/Date-Pcalc-1.2/Pcalc.pm and use "Delta_DHMS"?
  16. uida1154

    Executing a command for a specified time

    Maybe the following module works out? http://search.cpan.org/~iltzu/Time-Stopwatch-1.00/Stopwatch.pm
  17. uida1154

    How to beep in perl in Linux konsole

    Tried it under Windows, the \g does not work but the \007 does. James is clearly the winner ;)
  18. uida1154

    Perl Beginner Question...

    Concerning editors, I like (and use) MED: http://www.med-editor.com/indexus.html
  19. uida1154

    I am getting this error, any help would be appreciated!

    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...
  20. uida1154

    Parse line to determine if variable is set

    If you want to step through the code, use the -d option: perl -d <file.pl>

Part and Inventory Search

Back
Top