Hi I'm trying to use the code written in this answer https://stackoverflow.com/a/1712480/1740992 :
foreach (@ARGV){
print "file: $_\n";
# open your file here...
#..do something
# close your file
}
I don't know how to refer to the argument. When my scipt was just running on one file I open it by running:
$kml = "adair.kml";
open INPUT, "<$kml";
what do I replace my filename with?
I've tried $ARGV[n]
thanks