Passing command line parameters
Passing command line parameters
(OP)
I am very new to programming, so please forgive this rudimentary question...I am writing a utility that I would like to be able to pass a command line parameter at startup. I am using the ActivePERL port for WIN32. I am envisioning something such as the following for the CLI:
>perl ./myutil.pl parameter
and in my app I want to be able to assign a variable to the parameter. Such as:
$cliparm = parameter
I have tried using <STDIN>, but it is waits for user input & thus doesn't accomplish what I want to. I want this to be seamless to the user.
Any suggestions will be most appreciated!
Thanks,
Stuart
>perl ./myutil.pl parameter
and in my app I want to be able to assign a variable to the parameter. Such as:
$cliparm = parameter
I have tried using <STDIN>, but it is waits for user input & thus doesn't accomplish what I want to. I want this to be seamless to the user.
Any suggestions will be most appreciated!
Thanks,
Stuart
RE: Passing command line parameters
$parameter = shift;
adam@aauser.com
RE: Passing command line parameters
-Stuart