When I run this code
require Readline;
my $rl = Readline.new;
my $string = $rl.readline( ':');
$string.say;
I get this error-message:
You cannot create an instance of this type (Readline)
When I use use
to load Readline
it works. Why does require Readline
not work?