learning-perl6/ch2/ex2-3.raku

7 lines
180 B
Raku

#Write a program that asks for a name and greets that name. Only prompt for name if an argument isn't supplied
sub MAIN ($name=prompt "wats ur name?\n") {
say "ohi $name";
}