7
如何動態加載OO風格的模塊?Perl6:如何動態加載類模塊?
#!/usr/bin/env perl6
use v6;
my $r = prompt ':';
if $r {
require Text::CSV; # Error:
my $csv = Text::CSV.new; # Could not find symbol '&CSV'
} else {
require File::Temp <&tempfile>;
my ($filename , $filehandle) = tempfile; # this works
}