Perl 6 Perl 6 today #39

Evaluating strings in other languages

> eval('2×3.14', :lang<APL>);
6.28

>eval('2.1÷64', :lang<APL>);
0.0328125

>eval('puts "hello world"', :lang<cardinal>);
hello world

> eval('VISIBLE SUM OF 5 AN 3', :lang<lolcode>);
8
Copyright © 2009
http://www.pmichaud.com/2009/pres/