/usr/share/doc/libgetopt-argvfile-perl/examples/delayedProcessing.pl is in libgetopt-argvfile-perl 1.11-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # This demo is part of the Getopt::ArgvFile distribution.
# It demonstrates how delay options processing until a
# separate function call.
# Jochen Stenzel, 2007.
# pragmata
use strict;
# ===> load Getopt::Argvm but do *not* process option files.
use Getopt::ArgvFile justload=>1;
# load an options processing module of your choice
use Getopt::Long;
# ===> *now* process option files
Getopt::ArgvFile::argvFile();
# process options
my %options;
GetOptions(
\%options,
'example',
'demo',
);
|