Next | Trivial Utilities | 106 |
# Options # -t TYPE assume file type is TYPE instead of heristic # -s do not spool or start printer daemon # -v verbose mode # -n number number of copies to print (default 1) # -b run in background, returning immediately getopts('n:vt:sb') or usage(); $opt_v ||= $opt_s; my $NCOPIES = $opt_n || 1; # my %CONF = load_conf("/etc/printd.conf"); my %CONF = load_conf($CONFIG); my $tempdir = mktempdir();
I see I used getopts here
What a pleasant surprise
Next | Menu | Copyright © 2012 M. J. Dominus |