• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Perl switches

Hello,
I would like to call a perl program and pass to it arguments in the form of:
program_name.pl --domain adcd_domain --port 7765 -- etc.
I am not sure how it is called and what should I look for.
I would like to see a simple example how it is being done,

Thanks,
Tamir
0
tamirmilo
Asked:
tamirmilo
2 Solutions
 
FishMongerCommented:
That is accomplished with the use of the Getopt::Long module.
0
 
ozoCommented:
See the examples in
perldoc Getopt::Long
0
 
tamirmiloAuthor Commented:
Thank you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now