To summarize the problem (which I gather you haven't figured out yet)... Here's your code that causes the error:
$zip->extractMemberWithoutPaths($y,"Y:\\autoupload\\Site_Dict\\Inbox\\ +"."$y");
And here's the error report that you say it generates:
mkdir AFCUArchive::Zip::.: Invalid argument [somewhere in Archive::Zip +]
(which frankly doesn't look like what I would expect, but I suppose it's plausible enough). And here's the relevant part of the Archive::Zip man page (you did read this part, didn't you?):
extractMemberWithoutPaths( $memberOrName [, $extractedName ] ) Extract the given member, or match its name and extract it. Does not use path information (extracts into the current directory). Returns undef if member doesn't exist in this Zip. If optional second arg is given, use it as the name of the extracted member (its paths will be deleted too)...
From reading the man page, I would conclude that you are not supposed to try to specify a path for output as (part of) an arg being passed to this method. Instead, you would want to do something like this:
# read the zip file into $zip, then chdir $path_where_data_should_go or die "Can't get to $path_where_data_should_go: $!"; for my $mbr ( $zip->members ) { $zip->extractMemberWithoutPaths( $mbr ); }

In reply to Re: Re: Path Of an extracted Files by graff
in thread Path Of an extracted Files by Zitoune

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.