Bizarre problem: Known good script (in 2011) fails to work in 2012

2012-01-04 Thread Hamann, T.D. (Thomas)
Hi, I am having a rather unusual problem with a script that I wrote last year to clean unwanted contents out of UTF-8 encoded text files. It worked fine in the past, but when I try to run it now I get an error message and somehow all newlines are removed from the resulting file. Nothing was cha

RE: Bizarre problem: Known good script (in 2011) fails to work in 2012

2012-01-04 Thread Hamann, T.D. (Thomas)
Okay, some further testing using a family member's Windows XP PC and a fresh install of ActivePerl seems to have revealed the culprit: Changing s/\s+$//; to: s/(\s+$)(\n)/$2/; fixed the issue. Since the script worked fine until about 3 weeks ago and I copied the original code from http:/

Re: segmentation fault

2012-01-04 Thread Motaz SAAD
On Dec 24 2011, 9:07 pm, shlo...@shlomifish.org (Shlomi Fish) wrote: > Hi Motaz, > > On Thu, 22 Dec 2011 10:57:48 -0800 (PST) > > Motaz SAAD wrote: > > Hello, > > > Thanks very much, it is really helpful tool. > > You're welcome. > > > my script spend 10 min running until I get segmentation fault

Re: Bizarre problem: Known good script (in 2011) fails to work in 2012

2012-01-04 Thread Jim Gibson
At 11:27 AM + 1/4/12, Hamann, T.D. (Thomas) wrote: Hi, I am having a rather unusual problem with a script that I wrote last year to clean unwanted contents out of UTF-8 encoded text files. It worked fine in the past, but when I try to run it now I get an error message and somehow all newlin

Re: Bizarre problem: Known good script (in 2011) fails to work in 2012

2012-01-04 Thread Rob Dixon
On 04/01/2012 14:02, Hamann, T.D. (Thomas) wrote: Okay, some further testing using a family member's Windows XP PC and a fresh install of ActivePerl seems to have revealed the culprit: Changing s/\s+$//; to: s/(\s+$)(\n)/$2/; fixed the issue. Since the script worked fine until about 3 w

perl equivelent of which in bash

2012-01-04 Thread Jim Green
Greetings! basically I need a perl equivalent in bash that does which and gives me the binary path. I need this because I run my script in different systems I want the binary automatically adjusted. Thanks! Jim. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands

Re: perl equivelent of which in bash

2012-01-04 Thread John SJ Anderson
On Wednesday, January 4, 2012 at 16:37 , Jim Green wrote: > Greetings! > basically I need a perl equivalent in bash that does which and gives me the > binary path. I need this because I run my script in different systems I want > the binary automatically adjusted. > Does

Re: perl equivelent of which in bash

2012-01-04 Thread Robert Wohlfarth
On Wed, Jan 4, 2012 at 3:37 PM, Jim Green wrote: > basically I need a perl equivalent in bash that does which and gives me > the binary path. I need this because I run my script in different systems I > want the binary automatically adjusted. > A quick search of CPAN for the word "which" turned u

Re: perl equivelent of which in bash

2012-01-04 Thread Shawn H Corey
On 12-01-04 04:37 PM, Jim Green wrote: Greetings! basically I need a perl equivalent in bash that does which and gives me the binary path. I need this because I run my script in different systems I want the binary automatically adjusted. Thanks! Jim. Perhaps FindBin is the module you want.

files checksum perl program help

2012-01-04 Thread ram ram
Hi ,    Wish you a Very Happy and Wonderful New Year. I am a beginner in perl programming. I request your help to write a perl program that takes 2 different directories on 2 different servers and find all the files in these 2 directories have the same files with same checksums. can anybody hel

Re: files checksum perl program help

2012-01-04 Thread Jim Gibson
On 1/4/12 Wed Jan 4, 2012 3:38 PM, "ram ram" scribbled: > Hi , >    Wish you a Very Happy and Wonderful New Year. > I am a beginner in perl programming. > > I request your help to write a perl program that takes 2 different directories > on 2 different servers and find all the files in these 2

Re: perl equivelent of which in bash

2012-01-04 Thread Jim Green
Thank you! I should have searched cpan. Jim. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: perl equivelent of which in bash

2012-01-04 Thread John W. Krahn
Jim Green wrote: Greetings! Hello, basically I need a perl equivalent in bash that does which and gives me the binary path. I need this because I run my script in different systems I want the binary automatically adjusted. use Env q/@PATH/; my $file = shift or exit 1; my @which_files = g

Re: Bizarre problem: Known good script (in 2011) fails to work in 2012

2012-01-04 Thread John W. Krahn
Hamann, T.D. (Thomas) wrote: Hi, Hello, I see that you've found the prolem but I'd like to make some comments. I am having a rather unusual problem with a script that I wrote last year to clean unwanted contents out of UTF-8 encoded text files. It worked fine in the past, but when I try to