> This one works. You need quotes around 0xa9.
>
> my $text;
> $text = chr(hex('0xa9'));
> print "CR $text\n";
> Hth,
>
> with warm regards,
> Venkat Saranathan
> Gulf Breeze Software.
>
> On Tue, Jul 15, 2008 at 1:13 PM, ChrisC <[EMAIL PROTECTED]> wrote:
>
>> I need to print the COPYRIGHT symbo
Rob Dixon wrote:
ChrisC wrote:
I need to print the COPYRIGHT symbol. How to go about it? Tried
playing with the following:
my $text;
$text = chr(hex(0xa9));
print "CR *$text*\n";
But the script just dies.
The hex() function expects a string, but you are giving it 0xa9, which is 129,
and ch
Rob Dixon wrote:
> ChrisC wrote:
>> I need to print the COPYRIGHT symbol. How to go about it? Tried
>> playing with the following:
>>
>> my $text;
>> $text = chr(hex(0xa9));
>> print "CR *$text*\n";
>>
>> But the script just dies.
>
> The hex() function expects a string, but you are giving it 0
ChrisC wrote:
> I need to print the COPYRIGHT symbol. How to go about it? Tried
> playing with the following:
>
> my $text;
> $text = chr(hex(0xa9));
> print "CR *$text*\n";
>
> But the script just dies.
The hex() function expects a string, but you are giving it 0xa9, which is 129,
and chr(he