in reply to FileHandle->close() is not closing everything
The problem is that the file handle you are creating is just to a system process consisting of ogg123 piped to lame. I suspect that something like this may work:
my $ogg_fh = new FileHandle "ogg123...."; my $lame_fh= new FileHandle "lame....."; my $pipe = new FileHandle "$ogg_fh | $lame_fh &"; .... # now close your pipe and then lame and ogg123 # you should be able to just undef the handles # as this should call close automatically $pipe->close(); $lame_fh->close(); $ogg_fh->close();
Completetely untested but it makes vague sense to me.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: FileHandle->close() is not closing everything
by runrig (Abbot) on Mar 28, 2003 at 05:16 UTC |