The output I get is:use IO::Compress::Gzip; #... my $localFilePath = 'C:/adi_vsfz/CTIP/transferFiles/20091015_Timetab +le.txt'; my $content; #Open a file handle to the file. if(open(FILE_TO_TRANSFER, $localFilePath)) { my @transferFileContents = <FILE_TO_TRANSFER>; foreach(@transferFileContents) { $content .= $_; } close(FILE_TO_TRANSFER); my $newContent; IO::Compress::Gzip::gzip($content, $newContent); print("<BR><BR>\n".$content."<BR><BR>\n"); print($newContent."<BR><BR>".length($newContent)."\n"); if($newContent == undef) { print('$newContent is undef'."<BR>\n"); } }
Timetable Info 0 $newContent is undef
In reply to IO::Compress::Gzip blank output by shug94
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |