in reply to Localizing Filehandles
Aparrently perl wasn't too happy with 4 seperate threads copying and writing to the same typeglob, and dumped core to show its' appreciation for the operation :-) I'm glad that my FH is legit in perl 5.6, although i haven't played with the new threading implementation yet...sub foo { my ($file, $info) = @_; local *FH; open (FH, ">" . $file) or die "$!\n"; print FH $info; close FH; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Localizing Filehandles
by Adam (Vicar) on Jul 15, 2000 at 01:19 UTC | |
by BlueLines (Hermit) on Jul 15, 2000 at 01:56 UTC | |
by Adam (Vicar) on Jul 15, 2000 at 02:09 UTC | |
by BlueLines (Hermit) on Jul 19, 2000 at 02:47 UTC |