Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Yet Another Tarball Script (gzip ta'boot)

by DrZaius (Monk)
on Jun 04, 2001 at 06:01 UTC ( #85391=note: print w/ replies, xml ) Need Help??


in reply to (code) Yet Another Gzip Tarball Script

Why no command line? Try changing your hash to this:

use Getopt::Long; my (%parm, %file); GetOptions( 'recurse' => \$parm{recurse}, 'cmprlevl' => \$parm{cmprlevl}, 'outfile' => \$file{out}, 'logfile' => \$file{log} ); $parm{recurse} ||= 1; $parm{cmprlevl} ||= 9; $parm{out} ||= 'tgzpl.tar.gz'; $parm{log} ||= 'tgzpl.log';
Now you can use 'gnu' long format args with your program. For example, tgz.pl --cmprlevl=3. Don't forget to untaint these values as well.


Comment on Re: Yet Another Tarball Script (gzip ta'boot)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://85391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2015-08-01 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls