Hi ,
I have a perl script which accepts few  predefined parameters  and
values for them.
It is like this :
     myscript.pl -param1 <value1> -param2 <value2>

Now  my requirement is ,  if value is also has and hyphen "-" then
script  should accept it and what ever i give after the -param option
should be taken as a single string .

Now the script is raising exception as unknown parameters . My code is
like below

======
       "param=s"   => [EMAIL PROTECTED]);
      print "Parameters passed are @PARAM\n";
      print "paramerts in default ARGV are @ARGV\n";
========

and calling the script as

====================
myscript.pl -noexecute -context MALLIK -param -pkg webring web/hosts
--env
===============

The output is

==============
Unknown option: env
Parameters passed are -pkg
paramerts in default ARGV are webring web/hosts
==========================

Any help plz  ... Thanks in advance

Arjun

Deserve before you desire










Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to