Hello Steve,
The glitches come from the end of line that still in the splitted string.
You should add this line:
while(FILE) {
$_ = s/[\s\r\n]//g; # It will get ride of extra spaces and end of
# line
push(@numbers, split(/\|/,$_));
}
Regards,
Cédric
steve
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
steve silvers
Sent: Tuesday, August 12, 2003 9:53 AM
To: [EMAIL PROTECTED]
Subject: What is wrong with this?
I don't understand why the output of the below snippet kind
of blows up..
--TEXT
On Tue, 12 Aug 2003, steve silvers wrote:
I don't understand why the output of the below snippet kind of blows up..
--TEXT FILE test.txt--
03|04|09|14|15|18|24|27
09|23|24|26|27|28|33|35
10|11|13|15|17|18|19|22
07|08|13|17|22|23|24|25
03|06|07|08|11|12|16|17
02|05|06|09|12|18|19|22
ok,ok,ok, I had a major brain fart this morning.. Thank you though for all
the responses on this..
Steve
From: Stewart, Tom [EMAIL PROTECTED]
To: 'steve silvers' [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: RE: What is wrong with this?
Date: Tue, 12 Aug 2003 09:28:15 -0600
I think you
These were the data elements on the end of the input lines. You might do
something a chomp before the push to strip off the EOL marker.
-Original Message-
From: steve silvers [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 8:53 AM
To: [EMAIL PROTECTED]
Subject: What is wrong
Carl Jolley wrote:
On Thu, 3 Apr 2003, Daniel Gross wrote:
Hello,
I am trying to find all files that have zero size, but it doesn't work
-- why?
my @tmpArray = glob($dirName/*.tif);
my @zeroFiles = getZeroSizeTiffs(@tmpArray);
sub getZeroSizeTiffs {
my (@tiffFiles)