CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Run prefix for script


New User

Jul 27, 2017, 12:50 AM

Post #1 of 2 (1406 views)
Run prefix for script Can't Post


I have a script what converts .netxml and .gpsxl into a kml file.
( )

But when i run the script: perl it says that i must prefix .netxml and .gpsxml. Can someone explaine to me what prefix is and what i must do in this situation?

Veteran / Moderator

Jul 27, 2017, 2:38 AM

Post #2 of 2 (1392 views)
Re: [Efficent] Run prefix for script [In reply to] Can't Post

I have no idea what this is all about, but looking at the code, I can see that you have this line:

my $prefix = $ARGV[0] or die "Please specify a prefix for gps and xml files";

This means that you need to supply a "prefix" as a command line argument when you launch the program. A "prefix" is presumably the name of the gps and xml files without the extension.

So you should probably run the program as follows:

perl file_name

when "file_name is the name of your files without the ".gps" or ".xml" extensions.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives