Skip to content

Commit 0ecbd02

Browse files
authored
add a simple example of sub “prompt”
1 parent 2a03fe2 commit 0ecbd02

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/Language/system.pod6

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ C<.lines> will read in turn one line from every one of them, changing the value
4242
of C<$*ARGFILES.path> every time a new handle is being processed. In general, it
4343
provides a very convenient API for scripts that deal with sets of files.
4444
45+
=head1 Getting arguments interactively
46+
47+
Use C<prompt> to have a running program query the user for data:
48+
49+
=begin code
50+
my Uint $num-iters = prompt "How many iterations to run: ";
51+
=end code
52+
4553
=head1 Running programs synchronously and asynchronously
4654
4755
There are two routines to run external programs: L<C<run>|/routine/run> and

0 commit comments

Comments
 (0)