Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Running perl functions from a command line

by hardburn (Abbot)
on Jan 28, 2003 at 14:55 UTC ( #230600=note: print w/replies, xml ) Need Help??

in reply to Running perl functions from a command line

You need to parse the command line options (see Getopt::Long) and then run the functions based on that. For instance:

use strict; use Getopt::Long; my $a_opt; my $options = GetOptions('a' => $a_opt); if($a_opt) { Foo1(); Foo2(); Foo3(); } # Rest of program here

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230600]
[marto]: choroba, have you moved to Vietnam or just there for a while?
[Discipulus]: marto i think him pointed me is not morning in vietnam now.. but the quote is invariable

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-06-27 08:20 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (600 votes). Check out past polls.