File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,11 @@ note 1..*; # STDERR OUTPUT: «1..Inf»
251
251
multi prompt($msg)
252
252
253
253
L < Prints|/routine/print > C < $msg > to C < $*OUT > handle, if C < $msg > was provided,
254
- then L < gets|/routine/get > a line of input from C < $*IN > handle and pass it through L < val|/routine/val > .
255
- By default, this is equivalent to printing C < $msg > to
254
+ then L < gets|/routine/get > a line of input from C < $*IN > handle. By default,
255
+ this is equivalent to printing C < $msg > to
256
256
L < STDOUT|https://en.wikipedia.org/wiki/Standard_streams#Standard_output_.28stdout.29 > , reading a line from
257
257
L < STDIN|https://en.wikipedia.org/wiki/Standard_streams#Standard_input_.28stdin.29 > ,
258
- removing the trailing new line, calling L < val|/routine/val > on it and returning
259
- the resultant string or the appropriate L < allomorph|/language/glossary#Allomorph > .
260
- Returns L < Nil|/type/Nil > on EOF.
258
+ removing the trailing new line, and returning the resultant string.
261
259
262
260
= for code
263
261
my $name = prompt "What's your name? ";
You can’t perform that action at this time.
0 commit comments