Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Running perl functions from a command line

by MZSanford (Curate)
on Jan 28, 2003 at 14:52 UTC ( #230598=note: print w/replies, xml ) Need Help??


in reply to Running perl functions from a command line

If you are looking for something to run specific function based on program arguments, like myprog.pl -foo1, you may want to look at the Getopt:: namespace (I like Getopt::Long, but Getopt::Std works for single switches) for argument processing.

Once you have one of the Getopt:: modules working, whichever one, you may want to look at pl2bat (some info here) for making a bat file out of your perl code.


from the frivolous to the serious

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230598]
help
Chatterbox?
[Discipulus]: i dream to restart kung-fu someday: i studied only 2-3 years of win-chun, tang-lang and a bit of shaolin.. the better preparation ever!
[Discipulus]: ah and hung-har too

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-11-22 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?