Help language development. Donate to The Perl Foundation
Ask - Provides ask
as an alias for Raku core routine prompt
use Ask; my $answer = ask "Are you well I hope (Y/n)? "; if $answer ~~ /:i y/ { say "Good, glad to hear it!"; } else { say "Oh, I'm so sorry."; }
This module exports, by DEFAULT
, ask
as an alias for the built-in routine prompt
.
Tom Browder [email protected]
Copyright © 2022 Tom Browder
This library is free software; you can redistribute it or modify it under the Artistic License 2.0.