Question 1.
In this script I would like for convenience' sake to use variables in
the second line, but I don't seem to be able to do so. Am I missing
something or is is simply not possible?
$source = 'MacRoman'; # I want to use this in the next line
use encoding qw( MacRoman ), STDOUT =
On Sun, 2 Nov 2003 23:24:41 +, John Delacour [EMAIL PROTECTED] wrote:
Question 1.
In this script I would like for convenience' sake to use variables in
the second line, but I don't seem to be able to do so. Am I missing
something or is is simply not possible?
$source = 'MacRoman'; # I
At 3:36 pm -0800 2/11/03, Jan Dubois wrote:
Should work if you initialize the variable in a BEGIN block:
BEGIN { $source = 'MacRoman'; }
use encoding $source, STDOUT = 'utf-8';
Ah!
Yes, put single quotes around your EOT marker:
$text = 'EOT';
$ome$tuff
$ome$tuff
$ome$tuff
I just happened to notice that the perlre man page describes the
POSIX [:punct:] character class as being equivalent to the unicode
\p{IsPunct} character class.
I haven't tried to track down the respective standards documents for
POSIX and Unicode to see whether these classes are _supposed_ to
I just happened to notice that the perlre man page describes the
POSIX [:punct:] character class as being equivalent to the unicode
\p{IsPunct} character class.
I haven't tried to track down the respective standards documents for
POSIX and Unicode to see whether these classes are