encoding...

2003-11-02 Thread John Delacour
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 =

Re: encoding...

2003-11-02 Thread Jan Dubois
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

Re: encoding...

2003-11-02 Thread John Delacour
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

5.8.1 perlre man page: [:punct:] vs. \p{IsPunct}

2003-11-02 Thread David Graff
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

Re: 5.8.1 perlre man page: [:punct:] vs. \p{IsPunct}

2003-11-02 Thread Jarkko Hietaniemi
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