pumpsoft has asked for the wisdom of the Perl Monks concerning the following question:
On my system, and apparently some others, this line hangs the sub, which in turn hangs everything up the calling tree and results in the slashd daemon being unable to continue processing tasks due to freshenup.pl not completing. (This is on a Athlon RedHat 7.3 box, I've tried a vanilla setup of mysql/perl/apache, and I've also tried a similar box with these things compiled from scratch with slashcode in mind.)print $out unless $opt->{Return};
The output gets written to the file just fine. It only seems to hang if it's going to the default STDOUT. I've tried turning buffering off and other things that had no effect, and stupid stuff like using different variable names, copying into a new scalar, etc. I don't think it's a slash problem per se, it seems like more of a perl problem or my environment. I'm using perl 5.6.1 and modules were installed via CPAN. I can't use slash until I get this fixed, and I'm lost.open TMPOUT, ">/tmp/tmpout"; print TMPOUT $out; close TMPOUT
Fixed code tags - dvergin 2002-06-10
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print $out doesn't always?
by Abigail-II (Bishop) on Jun 11, 2002 at 12:36 UTC | |
by pumpsoft (Initiate) on Jun 11, 2002 at 18:54 UTC |