in reply to trouble printing spanish characters

Most likely, you'll need to change the text encoding before you print it. The Linux codepage is configurable, though iso-8859-1 is probably most common in English speaking countries.

Going to a Samba share, you'll likely need to re-encode the string into codepage 437; the standard DOS code page.

use Encode; my $string = 'αινσϊ ρρρρ'; my $enc_string = encode('cp437', $string); print PRN $enc_string;

Replies are listed 'Best First'.
Re^2: trouble printing spanish characters
by graff (Chancellor) on Oct 21, 2005 at 23:50 UTC
    That might not work, depending on the particular editor (locale, whatever) that is being used to write the perl script. If it doesn't save those accented characters as utf8, the assignment to $string -- or rather, the encoding of $string into cp437 -- will fail.