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.
In reply to Re: Extracting coordinates
by moritz
in thread Extracting coordinates
by Ignas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |