in reply to Extracting coordinates
while (<LIST>) { $filename1 = <LIST>;
This discards every other line line in the file; is that really what you want? if not, you have an easier time writing
while $filename1 (<LIST>) { # removing trailing newline on $filename1: chomp $filename1; ... }
Also I don't understand why you need such a complicated regex - using split on whitespace seems much easier to me.
All in all I have a hard time following your code - if you gave a verbal description of what it should actually do, it would be easier to help you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting coordinates
by Ignas (Novice) on Mar 20, 2010 at 23:51 UTC | |
by moritz (Cardinal) on Mar 21, 2010 at 07:59 UTC |