Skip to content

Commit 24cb91d

Browse files
committed
Document EVALFILE.
1 parent 8ab319f commit 24cb91d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/Type/Cool.pod

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,20 @@ C<EVAL> is also a gateway for executing code in other languages:
13021302
13031303
EVAL "use v5.20; say 'Hello from perl5!'", :lang<Perl5>;
13041304
1305+
=head2 routine EVALFILE
1306+
1307+
Defined as:
1308+
1309+
sub EVALFILE(Cool $filename, :$lang = { ... })
1310+
1311+
Usage:
1312+
1313+
EVALFILE "foo.p6";
1314+
1315+
Slurps the specified file and evaluates it. Behaves the same way as C<EVAL>
1316+
with regard to both scoping and the C<$lang> parameter. Evaluates to the value
1317+
produced by the final statement in the file.
1318+
13051319
=begin comment
13061320
13071321
TODO: sech, asech, cosech, acosech, cotanh, acotanh, cis,

0 commit comments

Comments
 (0)