Hi All,

 

I am using @ARGV variable to record the argument passed to my Perl
script. Now the requirement is that if I don't pass any argument to Perl
script then it should show me following such output.

 

Perl ack

Usage:  ack

               -name

                -pkg

                -relno

 

-name, -pkg, -relno are the user friendly option which should be mapped
to the arguments passed to the Perl script.

So -name should take first argument -pkg should take second argument and
so on.

 

Please help how should I do that.

 

Regards

Irfan.

 

Reply via email to