At 6:04 PM +0530 4/26/11, Agnello George wrote:
I got a  to go to check whether  the files in  @somefiles  exist  in $filltar

$filltar or $fultar?

my $fultar = 'something.tgz"

@somefiles  = qw(xsl/photos_videos.xsl
xsl/research.xsl
xsl/reviews.xsl
xsl/sendemail.xsl
xsl/slideshow.xsl
xsl/slideshow_details.xsl );


$tar->add_files(@allfiles_excluded);
  $tar->write( $fultar,  9 );


Have you read the Archive::Tar documentation? Either 'perldoc Archive::Tar' on a command-line or here:

<http://search.cpan.org/~bingos/Archive-Tar-1.76/lib/Archive/Tar.pm>

Have you tried the contains_file($filename) method listed there? Be sure to include the full path if you do.


i also need to test  the tar file in  , i cant find a option in
Archive::Tar , some thing similar to tar -tvf sometar.tgz

Have you tried the list_files method of Archive::Tar?


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to