Help language development. Donate to The Perl Foundation

Ask zef:tbrowder last updated on 2023-03-10

5c092da83ec00e2b85674b0f5cdfb88e4b0591e2/

Actions Status

NAME

Ask - Provides ask as an alias for Raku core routine prompt

SYNOPSIS

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.";
}

DESCRIPTION

This module exports, by DEFAULT, ask as an alias for the built-in routine prompt.

AUTHOR

Tom Browder [email protected]

COPYRIGHT AND LICENSE

Copyright © 2022 Tom Browder

This library is free software; you can redistribute it or modify it under the Artistic License 2.0.