providig a filename as an argument fom the command line

J

Jockser

I'm trying to find a way to run a perl.pl script using a file name as an
argument.
Such as:

myperlprogram.pl somefile.xml

The somefile.xml would need to be assigned to a variable in the perl
program.
This is on a Win32 system that I will later be converting the
myperprogram.pl to an .exe program using the pp function in PAR.

Thanks.
 
J

Jürgen Exner

Jockser said:
I'm trying to find a way to run a perl.pl script using a file name as
an argument.
myperlprogram.pl somefile.xml

The somefile.xml would need to be assigned to a variable in the perl
program.

perldoc perlvar ===> @ARGV

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top