Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Rather than "or" you should be using a defined-or, or a length test on the array of the given file.

    Otherwise, strings like "0" and "0.0" will not be printed.
    • by vsergu (505) on 2005.08.10 13:28 (#42542) Journal
      He's not chomping, so the newline on the end will make the string true. (Also, "0.0" as a string would be true.)
      • Corrected on both counts. < goes to hide in basement in shame >
      • Correct. The bug I'm trying to fix is that nth 100 /dev/null doesn't print anything. If you're trying to correlate the results from a list of files, and some files don't produce n lines of data, then you should at least print something, or else there will be a non-deterministic mapping of values. (Specifically, the results from $ join filenames results will be way off...)