adamsj has asked for the wisdom of the Perl Monks concerning the following question:
After trying lots of stuff, I pared it down to a minimum:
Over 3000 lines in that file, but only the first 57 copy. When I yank the offending line, another few copy, then it stops again. I could iterate out the offending lines, but hey! That's harder than doing the whole thing by hand!use strict; my $i; open(DC08, '<c:\temp\dc08dl03a.txt'); open(DCOU, '>c:\temp\dc08dl03.txt'); DC: while (<DC08>) { print DCOU "$_\n"; } close(DC08); close(DCOU);
So--I ftp'd the data and the script over to a UNIX node, and there, everything is copacetic.
Clearly, there's something in the input breaking Perl. Is it a bug in Build 628? Or is it a bug in 5.6.1? The UNIX server is running the venerable 5.003 (and will for some time, I'm sure.)
These are my principles. If you don't like them, I have others. --Groucho Marx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A bug in ActiveState Build 628? Or is it just Perl 5.6.1?
by Zaxo (Archbishop) on Jul 11, 2001 at 00:24 UTC | |
by adamsj (Hermit) on Jul 11, 2001 at 00:26 UTC |