in reply to Say String

Maybe you are thinking of the charnames pragma?

#!/usr/bin/perl use warnings; use strict; use charnames(); my $string = 'Lo1'; print string_to_text($string); sub string_to_text{ my @chars; push @chars, charnames::viacode(ord($_)) for split //, $_[0]; return join ', ', @chars; }

Yields...

LATIN CAPITAL LETTER L, LATIN SMALL LETTER O, DIGIT ONE

Replies are listed 'Best First'.
Re^2: Say String
by Odud (Pilgrim) on Apr 09, 2008 at 19:33 UTC
    Also looks good - I'll try both and see which will be easier for a non-specialist user to understand.