Solved

Perl switches

Posted on 2014-12-14
3
207 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
3 Comments
 
LVL 28

Accepted Solution

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

Assisted Solution

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

Author Closing Comment

by:tamirmilo
ID: 40499064
Thank you.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now