Re: IO::Compress::Gzip creates empty file
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Thu, 31 Jan 2008 12:26:33 -0800
On Jan 31, 2008 12:08 PM, RICHARD FERNANDEZ <rfernandez@xxxxxxxxx> wrote:
I made the changes you suggested and re-ran it. The program just comes
back to a prompt. No warnings, no nothing, and still no data in the
gzip'd file!
No warnings? Hmmmm.... Are you sure your program actually ran the new
code? That should have generated at least one warning. Is there any
chance you've redirected or closed the STDERR filehandle? You can
always add a line like this during development, if you need to be sure
the new code is being reached and that warnings are showing up:
warn "Yes; execution does reach this point";
Your code, though, prompts a question on syntax. In 2 places you specify
an underscore without a '$' in front of it.
That's the special underscore filehandle that's used in stat() and
filetests. Briefly, it means "the same file as we just tested", but
without going back to the OS to ask again.
http://perldoc.perl.org/functions/-X.html
Cheers!
--Tom Phoenix
Stonehenge Perl Training
.
- References:
- Re: IO::Compress::Gzip creates empty file
- From: Tom Phoenix
- RE: IO::Compress::Gzip creates empty file
- From: Richard Fernandez
- Re: IO::Compress::Gzip creates empty file
- Prev by Date: RE: IO::Compress::Gzip creates empty file
- Next by Date: Re: IO::Compress::Gzip creates empty file
- Previous by thread: RE: IO::Compress::Gzip creates empty file
- Next by thread: Re: IO::Compress::Gzip creates empty file
- Index(es):
Relevant Pages
|
|