clscott has asked for the wisdom of the Perl Monks concerning the following question:
The diamond operator works fine if I move the file contents into __DATA__ and read from there.
I know that there has to be some strange action at a distance thing going on because I'm working on someone else's code, with tons of included files that declare all kinds of globals and this operation only fails some of the time.
Any hints about what I should be looking for?
Contents of $tempfile :open (RESULTS, "<$tempfile") or die "Can't open results: $!"; while(<RESULTS>){ chomp; push @results, $_; print "$. $_\n"; }
Absolutely perplexed, --55940 82665 24560 31102 31160 82725 26161 82685
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: open works fine but not working
by dragonchild (Archbishop) on Jul 26, 2001 at 23:30 UTC | |
by clscott (Friar) on Jul 27, 2001 at 00:16 UTC | |
by dragonchild (Archbishop) on Jul 27, 2001 at 00:20 UTC | |
by clscott (Friar) on Jul 27, 2001 at 00:31 UTC | |
|
Re: open works fine but not working
by petral (Curate) on Jul 27, 2001 at 04:36 UTC | |
|
Re: open works fine but not working
by converter (Priest) on Jul 27, 2001 at 01:19 UTC | |
|
Re: open works fine but not working
by converter (Priest) on Jul 27, 2001 at 05:27 UTC |