On Thu, Feb 27, 2003 at 01:43:13PM -0500, Carlton Lo wrote:
> Hi,
>       I'm new to perl, I'm trying to write a pl script that would open a gzipped txt 
> file. Is there any functions where I can call for this. I've tried the followings:
> 
> method #1     open(IN, "gunzip -c data.gz") || die "cannot open input data file";

        open(IN, "gunzip -c data.gz |")

Note the vertical bar.  Make sure 'gunzip' in in your path, make
sure you have read permission for 'data.gz', and so forth.

> they both failed! any ideas
> thanks
> Carlton Lo
> mailto:[EMAIL PROTECTED]

-- 
Brian 'you Bastard' Reichert            <[EMAIL PROTECTED]>
37 Crystal Ave. #303                    Daytime number: (603) 434-6842
Derry NH 03038-1713 USA                 BSD admin/developer at large    
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to