> On Wed, 28 Jan 2004 15:37:12 -0500
> "RL" <[EMAIL PROTECTED]> wrote:
> 
> > I would like to "zip" a file using perl script. I used following 
> > command:-
> > 
> > system ("zip <zip name> <file name>");
> > 
> > However this command fails when the filename is more than 8 
> > characters.

Why not try Archive::Zip instead of shelling out.
It works well for me and no worrying about paths and command 
format, etc etc via the shell.

My main use is for unzipping a file and parsing it and creating 
sql inserts from it and then doing the sql.

If I remember right the error code thign took me  abit of getting 
used to but it's pretty straight forward once you look into it. 
There's lots of example also which is really nice.

HTH

Dmuey

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to