$zipfile="$Inbox"."\\"."$x"; $zip=Archive::Zip->new($zipfile) or die "Unable to Open the File : $zipfile\n"; for $x ( $zip->members() ) { $zip->extractMemberWithoutPaths($x); }