AW: Perl appears to be introducing whitespace when reading .txt files

2010-04-01 Thread Thomas Bätzler
Doug Cacialli wrote: > The unicode / UTF16 issues presented by Thomas and Dr. Rudd are a > little beyond me. I'm reading up now, but can someone shed some > light? Let's see if I can quickly summarize: - text is made up from letters (characters). - a computer doesn't "know" letters, it only know

Re: AW: Perl appears to be introducing whitespace when reading .txt files

2010-04-01 Thread Shlomi Fish
On Thursday 01 Apr 2010 12:25:51 Thomas Bätzler wrote: > Doug Cacialli wrote: > > The unicode / UTF16 issues presented by Thomas and Dr. Rudd are a > > little beyond me. I'm reading up now, but can someone shed some > > light? > > Let's see if I can quickly summarize: > - text is made up from le

Re: Perl appears to be introducing whitespace when reading .txt files

2010-04-01 Thread Alexey Salmin
On Thu, Apr 1, 2010 at 6:41 AM, Doug Cacialli wrote: > This reflects some of the changes suggested by Owen and as can be > seen, I am using strict and warnings, as suggested by others.  Again, > this works just as I would like in Ubuntu 9.10 (x64) with the latest > version of perl on the repositor

Re: What is the error in this code

2010-04-01 Thread Shawn H Corey
Jim Gibson wrote: At 10:59 PM -0400 3/31/10, Vincent Cannavale wrote: You should have the following at the beginning of your program so Perl will help you find the errors: use strict; use warnings; #open a text file for reading, since opening for writing wipes the file open(INFILE, " You s

Re: hv_store hoh

2010-04-01 Thread Patrick Dupre
thank, But perl-xs-subscr...@perl.org never responded to me No way to subscribe. On Wednesday 31 Mar 2010 18:36:43 Patrick Dupre wrote: Hello, How can I store in a hash (HV) another hash bu using XS ? Please ask it on the XS mailing list: perl...@perl.org (and perl-xs-subscr...@per

perl -TW -Mstrict -Mwarnings

2010-04-01 Thread Brandon McCaig
I like to enable all strictness, warning verboseness, etc., from tools to catch mistakes that will otherwise slip by. I was just wondering if these mechanisms could be enabled from the command line instead of the source code (i.e., or from a Makefile, etc.). In simple one-liner tests directly on th

free memory

2010-04-01 Thread Patrick Dupre
Hello, I cannot subscribe to perl-xs so, I am still posting here. I fill a hash of hash with xs. I wanted to free this hoh in perl, but it does not seem to be working. hoh = () or undef hoh does not free the memory. If I do the same call again, more memory is requested. Should I deallocated the m

Re: free memory

2010-04-01 Thread Philip Potter
On 1 April 2010 16:13, Patrick Dupre wrote: > Hello, > > I cannot subscribe to perl-xs so, I am still posting here. I don't understand the problem. Firstly, I just emailed perl-xs-subscr...@perl.org and got a response from the mailing list software. Secondly, how come you were posting on perl-x

Re: perl -TW -Mstrict -Mwarnings

2010-04-01 Thread Jim Gibson
At 10:46 AM -0400 4/1/10, Brandon McCaig wrote: I like to enable all strictness, warning verboseness, etc., from tools to catch mistakes that will otherwise slip by. I was just wondering if these mechanisms could be enabled from the command line instead of the source code (i.e., or from a Makefil

Re: free memory

2010-04-01 Thread Patrick Dupre
On Thu, 1 Apr 2010, Philip Potter wrote: On 1 April 2010 16:13, Patrick Dupre wrote: Hello, I cannot subscribe to perl-xs so, I am still posting here. I don't understand the problem. I do not understand either, I did 3 times and I never get any feedback from the server !!! Firstly, I ju

Re: $_ substitution Question

2010-04-01 Thread jet speed
Hi Chaps, I need bit more help with this, i slightly modified the code based on the inputs, still having the same issue of $_ substitution. Appreciate your help with this. ## #!/usr/bin/perl use strict; use warnings; my $base = "/usr/openv/netba

Re: free memory

2010-04-01 Thread Shawn H Corey
Patrick Dupre wrote: I do not understand either, I did 3 times and I never get any feedback from the server !!! It would be something simple like a spam/junk filter intercepting it before you see it? -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organiza

Re: $_ substitution Question

2010-04-01 Thread jet speed
Hi All, Further to my previous email, if i add the fulll path of each directory the, $_ Sustitution works with below code #!/usr/bin/perl use strict; use warnings; my @list = ( '/usr/openv/netbackup/logs/bpcd' , '/usr/openv/netbackup/logs/bprd' , '/usr/openv/netbackup/logs/admin' , '/usr/openv

Re: $_ substitution Question

2010-04-01 Thread Shawn H Corey
jet speed wrote: Hi Chaps, I need bit more help with this, i slightly modified the code based on the inputs, still having the same issue of $_ substitution. Appreciate your help with this. ## #!/usr/bin/perl use strict; use warnings; my $base

Re: hv_store hoh

2010-04-01 Thread Shlomi Fish
Hi Patrick, On Thursday 01 Apr 2010 17:32:20 Patrick Dupre wrote: > thank, > > But perl-xs-subscr...@perl.org > never responded to me > No way to subscribe. > 1. I was able to subscribe to perl-xs using that address just fine back when I did it. 2. You may have lost the E-mail or it was

Re: hv_store hoh

2010-04-01 Thread Patrick Dupre
Hello, I do not know what to tell you. I tried another webmail, but I cannot sent an empty email with an empty subjet !!! 1. I was able to subscribe to perl-xs using that address just fine back when I did it. 2. You may have lost the E-mail or it was dropped by a relay. You should check your

RE: hv_store hoh

2010-04-01 Thread Bob McConnell
From: Patrick Dupre > I do not know what to tell you. > > I tried another webmail, but I cannot sent an empty email with an empty > subjet !!! Just put the word "Subscribe" in each field. The server will ignore them. Bob McConnell -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For a

str2time returns bad result for timezone MST7MDT during daylight time

2010-04-01 Thread Kelly Jones
This code: perl -le 'use Date::Parse; for $tz ("MST", "MDT", "MST7MDT") {print str2time("04 Jul 2009 14:42:00 $tz");}' returns: 1246743720 1246740120 1246743720 In other words, str2time returns the same Unix time for MST and MST7MDT on July 4th. That's incorrect: on July 4th, MST7MDT should eq