Skip to content

Commit acf18c7

Browse files
committed
add links to synopsis
1 parent c464098 commit acf18c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

S11-modules/require.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ use v6;
22
use Test;
33

44
plan 8;
5+
6+
# L<S11/"Runtime Importation"/"Alternately, a filename may be mentioned directly">
7+
58
lives_ok { require "t/spec/S11-modules/InnerModule.pm"; },
69
'can load InnerModule.pm from a path at run time';
710
is GLOBAL::InnerModule::EXPORT::DEFAULT::<&bar>(), 'Inner::bar', 'can call our-sub from required module';
@@ -27,6 +30,8 @@ lives_ok { my $name = 'A'; require $name }, 'can require with variable name';
2730
'can call subroutines in a module by name';
2831
}
2932

33+
# L<S11/"Runtime Importation"/"Importing via require also installs names into the current lexical scope">
34+
3035
#?pugs skip 'NYI'
3136
{
3237
require Fancy::Utilities <&allgreet>;

0 commit comments

Comments
 (0)