I have a script that change a gpx-file. Some of the commands has to be deleted.
This script deletes the "excentions " commands.
I want to make a form so I can load the filename to the script true this form.
After the file has been made I want to rename it to a xml-file.
Can somebody help me?
Code:
$filename = "tourfile.gpx";
local ($^I, @ARGV) = ('.bak', $filename);
while (<>) {
print unless m|<extensions>| .. m|</extensions>|;
}
I want to make a form so I can load the filename to the script true this form.
After the file has been made I want to rename it to a xml-file.
Can somebody help me?
Comment