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

2010-04-06 Thread hippsta
On Apr 1, 2:59 am, alexey.sal...@gmail.com (Alexey Salmin) wrote: > 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 li

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: Perl appears to be introducing whitespace when reading .txt files

2010-03-31 Thread Doug Cacialli
Thanks for everyone's patience and continued help. The full script in its current form is below: #!/usr/bin/perl use strict; use warnings; use IO::File; #The program should prompt the user to specify the path where the #subject directories reside. print "\nPlease specify the path to where the c

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

2010-03-31 Thread Doug Cacialli
Thank you all for your outpouring of support!! I'll post the full code when I finish up with work late this afternoon, as well as implement the suggestions I received. We are a little closer to solving this, and my novice impression (disclaimer: I've been using perl less than a month) is that thi

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

2010-03-31 Thread Dr.Ruud
Doug Cacialli wrote: V e r y t r u l y y o u r s , Looks like UTF-16 to me. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

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

2010-03-31 Thread Shlomi Fish
On Wednesday 31 Mar 2010 10:35:55 Owen wrote: [SNIP] > Hi, > > I think you are making this all too complicated. All that is needed is > the script below. If you have a file > Well, his approach of using IO::File is not incorrect. He seems to encounter a strange bug and we should try to isolate

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

2010-03-31 Thread Owen
> I'm completely baffled by this and not entirely sure where to start. > > I have a plain text file, testfile.txt, which contains a single line: > > Very truly yours, > > It is written exactly how you see it above, with a newline at the end. > > I'm trying to write a script that will determine th

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

2010-03-31 Thread Shlomi Fish
Hi Doug, On Wednesday 31 Mar 2010 07:55:25 Doug Cacialli wrote: > I'm completely baffled by this and not entirely sure where to start. > > I have a plain text file, testfile.txt, which contains a single line: > > Very truly yours, > > It is written exactly how you see it above, with a newline