learning-perl6/ch2/ex2-3.raku

7 lines
180 B
Raku
Raw Normal View History

2023-11-12 03:03:05 +00:00
#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";
}