I think that I've found a quick way to translate a string in Devanagari to Unicode. CPAN has Unicode::Indic
and Unicode::Indic::Devanagari. Unfortunately, there's a few problems with the code; however, I managed to get this far:
#!/usr/bin/perl
use strict;
no warnings;
use Unicode::Indic::Devanagari;
my $lang = Unicode::Indic::Devanagari->new();
print $lang->translate("namaskaaraM baagunnaaraa?");