File: use2.t

package info (click to toggle)
libgetopt-argvfile-perl 1.11-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 260 kB
  • sloc: perl: 347; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

# set pragmas
use strict;
our @org;

# load test module
use Test::More qw(no_plan);

# prepare @ARGV
BEGIN {@org=@ARGV=('~t/.prefix.t')}

# load the module, but suppress option hint processing
use Getopt::ArgvFile prefix=>'~', justload=>1;

# perform checks
is(@ARGV, 1);
is_deeply(\@ARGV, \@org);