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



Efficent
New User

Jul 27, 2017, 12:50 AM


Views: 1932
Run prefix for script

Hello,

I have a script what converts .netxml and .gpsxl into a kml file.
( https://github.com/exp/Kismet-to-KML/blob/master/README )

But when i run the script: perl kismet2kml.pl 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?


Laurent_R
Veteran / Moderator

Jul 27, 2017, 2:38 AM


Views: 1918
Re: [Efficent] Run prefix for script

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

Code
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:

Code
perl kismet2kml.pl file_name

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