in reply to Re: Creating a .zip file using perl
in thread Creating a .zip file using perl
Running the below code is giving me an exception,can anyone pls advise what am I doing wrong?
use strict; use warnings; use File::Find; use Archive::Zip qw( :ERROR_CODES ); my @array; my ($zipfile,$filesStr,$output); my %seen; find(sub { push @array, "$File::Find::name" if -f && /\.lib(?:\.\d+)?$/ && + !$seen{$File::Find::name}++; }, "."); $filesStr = join(" ",@core_libs); $zipfile = "files.zip"; $output = `zip $zipfile $filesStr`; print "Progress:\n$output\n\nYour files are in [$zipfile].";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Creating a .zip file using perl
by Corion (Patriarch) on May 05, 2011 at 06:46 UTC | |
|
Re^3: Creating a .zip file using perl
by wind (Priest) on May 05, 2011 at 06:53 UTC | |
by Anonymous Monk on May 05, 2011 at 07:12 UTC | |
by wind (Priest) on May 05, 2011 at 07:20 UTC | |
by Utilitarian (Vicar) on May 05, 2011 at 08:18 UTC | |
by Anonymous Monk on May 05, 2011 at 08:47 UTC | |
| |
by Anonymous Monk on May 05, 2011 at 07:29 UTC | |
by Anonymous Monk on May 05, 2011 at 07:33 UTC | |
|
Re^3: Creating a .zip file using perl
by pmqs (Friar) on May 05, 2011 at 08:46 UTC |