Re: Printing special characters

2008-07-16 Thread Venkat Saranathan
> 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

Re: Printing special characters

2008-07-16 Thread John W. Krahn
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

Re: Printing special characters

2008-07-16 Thread Rob Dixon
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

Re: Printing special characters

2008-07-16 Thread Rob Dixon
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