Skip to content

Commit 325d5ae

Browse files
committed
Editor
1 parent c0d552a commit 325d5ae

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

doc/Language/101-basics.rakudoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,25 +467,25 @@ To call a raku subroutine from another file, the convention is to have a minimal
467467
raku module or class file.
468468

469469
=begin code
470-
# MyClass.rakumod
470+
# MyClass.rakumod
471471
class C {
472472
has $.x;
473473
}
474474
=end code
475475

476-
Then your script can use this file.
476+
Then your script can C<use> this file.
477477

478-
=begin code
478+
=begin code :skip-test
479479
# myscript.raku
480480
use MyClass;
481481

482482
my $instance = C.new(x=>42);
483483
say $instance.x;
484484
=end code
485485

486-
The C<-I.> directive tells the raku interpreter to look in directory C<.>.
486+
The C<-I.> directive tells the raku interpreter to look for modules in directory C<.>.
487487

488-
=begin code
488+
=begin code :lang<shell>
489489
> raku -I. myscript.raku
490490
=end code
491491

@@ -542,3 +542,4 @@ for $file.lines -> $line {
542542
=end code
543543

544544
=end pod
545+

xt/pws/code.pws

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ mylib
342342
mynew
343343
mynumber
344344
myrange
345+
myscript
345346
mysqlclient
346347
mystring
347348
mystruct

0 commit comments

Comments
 (0)