Bridging the gap between Perl 5 and 6
perl6advent.wordpress.com
perl6advent.wordpress.com
# Calling the CSV Ruby module from Perl 6
use Inline::Ruby::Sweet;
use csv:from<Ruby>;
my $data = CSV.read('examples/hiya.csv')
#=> «[["id", "name"], ["1", "andy"], ["2", "bella"], ["3", "chad"], ["4", "dua"]]»:rb
Eventually I'll get Inline::* to all auto-load, so you'll just do "use blah:from<YourFavoriteLang>" and presto magic! ... in theory :) my $mech = WWW::Mechanize.new;
try {
$mech.get("xmas://perl6.org");
CATCH {
default {
say $_.perl;
}
}
}