Re: pound sign trouble

2003-07-08 Thread $Bill Luebkert
Michael Higgins wrote: Allegakoen, Justin Devanandan wrote: Peter, I was playing around with this earlier. Heres what I get:- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Perl\Programsperl -e print ord(''); 163 C:\Perl\Programsperl -e print chr(163);

Re: pound sign trouble

2003-07-08 Thread Sisyphus
- Original Message - From: Peter Guzis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:30 AM Subject: RE: pound sign trouble My Windows 2000 box exhibits the same behavior. I believe you are running into an ancient limitation of the DOS shell. DOS and its

Re: pound sign trouble

2003-07-08 Thread csaba . raduly
On 08/07/2003 02:20:33 perl-win32-users-admin wrote: Allegakoen, Justin Devanandan wrote: Peter, I was playing around with this earlier. Heres what I get:- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Perl\Programsperl -e print ord('£'); 163

Re: pound sign trouble

2003-07-08 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: If you redirect that output to a file and then look at the file with an editor (Vim in my case), This depends on the editor, DOS-based editors may interpret 156 as the pound sign whereas Windows-based ones (e.g. Notepad) will display 163 as the pound sign.

Re: pound sign trouble

2003-07-08 Thread Michael Higgins
$Bill Luebkert wrote: [snip ugly code and verbiage] Or just put it all in a RE and substitute: foreach ... $line =~ s/([\d,]+)/{ my $tmp = $1; $tmp =~ s#,##g; $_ = sprintf '$%.02f', $tmp * $rate }/e; print ... } or maybe more readable: $line =~ s#

Re: pound sign trouble

2003-07-08 Thread Dirk Bremer \(NISC\)
- Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 05:05 Subject: Re: pound sign trouble [EMAIL PROTECTED] wrote: If you redirect that output to a file and then look at the file with an editor (Vim in my case

RE: pound sign trouble

2003-07-08 Thread Frazier, Joe Jr
Message: 19 From: Sisyphus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: pound sign trouble Date: Tue, 8 Jul 2003 16:55:46 +1000 - Original Message - From: Peter Guzis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:30 AM Subject: RE: pound

Re: pound sign trouble

2003-07-07 Thread Michael Higgins
Allegakoen, Justin Devanandan wrote: Peter, I was playing around with this earlier. Heres what I get:- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Perl\Programsperl -e print ord(''); 163 C:\Perl\Programsperl -e print chr(163); C:\Perl\Programsperl