Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Renaming a Zip file with a user input variable

by mayank646 (Initiate)
on Aug 07, 2012 at 12:17 UTC ( #985957=note: print w/replies, xml ) Need Help??

in reply to Re: Renaming a Zip file with a user input variable
in thread Renaming a Zip file with a user input variable

Hi I am using the following code
#! usr/bin/perl use Archive::Zip; # Getting Details print "Enter the Folder Name \n"; $rn = <>; print "The details are as follows: \n"; print "Release Name is *** $rn *** \n"; print "Business Unit is *** ABC *** \n"; print "Environment is *** ABC *** \n"; # Taking Backup my $zip_file = ''; my $zip = Archive::Zip-> new (); $zip ->addTree( 'c:/zip'); $zip ->writeToFileNamed($zip_file); if (-e $zip_file) { print "Archive created successfully!"; } else{ print "Error in archive creation!"; }
here i am taking the input from the user and storing it in a variable $rn now i want to make the zip file with the name stored in the variable $rn.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985957]
[shmem]: Eily: also -+-$F[1]
[shmem]: hmm... there should be a glyph for "bembel" in unicode "miscellaneous symbols"
[karlgoethebier]: shmem: ++1000. Also for Schöppsche
[Eily]: shmem Indeed :)
[choroba]: How is Bembel different from Krug?
[hippo]: karlgoethebier, Ich habe kein Deutsch.
[Corion]: choroba: A Bembel is a traditional pottery ware, which is only(!) used for serving Cider (well, Apfelwein)
[shmem]: choroba: it's hessisch
[Corion]: Not every Krug is a Bembel!
[karlgoethebier]: there is just the mug: 🍺

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (17)
As of 2017-05-24 08:46 GMT
Find Nodes?
    Voting Booth?