Debian Codegraph @

tests/inc_sub

raw
1 #!/bin/perl
2
3 # Copyright 2002-2026, Paul Johnson ([email protected])
4
5 # This software is free. It is licensed under the same terms as Perl itself.
6
7 # The latest version of this software should be available from my homepage:
8 # https://pjcj.net
9
10 # __COVER__ skip_test 1
11 # __COVER__ skip_reason depends too much on specific installed perl
12
13 use lib ();
14
15 BEGIN {
16 lib->import(
17 sub {
18 print map("[$_]", @_), "\n";
19 return unless $_[1] eq "IncSub.pm";
20 my $fh;
21 open $fh, "tests/IncSub.pm" or die $!;
22 $fh
23 }
24 )
25 }
26
27 use IncSub;
28
29 BEGIN { "x" =~ /((?<x>x))/; print "$+{x}\n" } # force Tie::Hash::NamedCapture
30
31 IncSub::check