Godsrock37 has asked for the wisdom of the Perl Monks concerning the following question:
Hello fellow perlmonks... I've got a simple one (i hope) today that i could use some help with if ur willing
I'm reading the contents of a file... which I've been doing the same way for months now...
say("Dequeuing ... "); my @lines = <MYQUEUE>; if (@lines){ foreach my $line (@lines){ #$line =~ s/"(.+)"/$1/gix; #say("$line \n"); schedule($line); } $is_queued = 1; close (MYQUEUE); }
I changed the contents from url's on a single line to a part number on a single line... I read the file with excel 2007 and save it as a .txt and it looks fine to me in vi... but when i read it in it adds a space between EVERY two characters so "1071901" becomes "1 0 7 1 9 0 1"
Any thoughts?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spaces Between Chars While Reading File
by massa (Hermit) on Aug 01, 2008 at 14:31 UTC | |
by Godsrock37 (Sexton) on Aug 04, 2008 at 15:47 UTC | |
|
Re: Spaces Between Chars While Reading File
by igelkott (Priest) on Aug 01, 2008 at 13:33 UTC | |
by almut (Canon) on Aug 01, 2008 at 13:47 UTC | |
by massa (Hermit) on Aug 01, 2008 at 14:35 UTC |