Help language development. Donate to The Perl Foundation

Ask zef:tbrowder last updated on 2022-08-24

74209330f8d519015153f7e9088c9d592e82ba24/

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.