Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Running perl functions from a command line

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


in reply to Running perl functions from a command line

If you want to run each function separately, put them each into their own script, and run the script from a batch file.

foo.bat:

perl -w foo.pl %1 %2 %3

foo.pl:

#!/usr/bin/perl -w # sub foo { my ( $var1, $var2, $var3 ) = @_; # More code follows, using the passed parameters. }

That should work.

--t. alex
Life is short: get busy!

Update:: Added parameter list on Perl script.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230599]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-10-19 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (255 votes). Check out past polls.

    Notices?