?
Solved

Perl switches

Posted on 2014-12-14
3
Medium Priority
?
240 Views
Last Modified: 2014-12-14
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
Comment
Question by:tamirmilo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
FishMonger earned 1000 total points
ID: 40498966
That is accomplished with the use of the Getopt::Long module.
0
 
LVL 84

Assisted Solution

by:ozo
ozo earned 1000 total points
ID: 40498967
See the examples in
perldoc Getopt::Long
0
 

Author Closing Comment

by:tamirmilo
ID: 40499064
Thank you.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question