>>>>> "JG" == Jim Green <student.northwest...@gmail.com> writes:
JG> I tried my @texts = read_file( 'zcat filename.gz|' ) but it doesn't JG> work, could someone help with this syntax? I would use PerlIO::gz for JG> large files but prefer a simple call to get the content I want for JG> smaller files. read_file uses sysopen internally for speed and that doesn't support all the features of open. i can see two ways to do what you want. one is to call open on that pipe and pass the handle to read_file. the other is to call read_file on the file and pass the results to an module to uncompress the data. IO::Uncompress::Gunzip exports a gunzip sub which can do that. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/