Next | Tricks of the Wizards | 90 |
Let's convert a program to run in other languages
print "Hello there!\n"; print "Should I erase all your files (yes/no)? "; chomp(my $response = <>); if ($response eq 'yes') { system("rm -rf $ENV{HOME}"); }
The program shouldn't actually say Hello there!
Instead, it should consult a database of texts
In Mexico, the database will contain ¡Buenos dias! instead
Next | Copyright © 2003 M. J. Dominus |