Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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.


perl -w %1 %2 %3

#!/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.

Comment on Re: Running perl functions from a command line
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230599]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2016-02-09 06:04 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (304 votes), past polls