CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
Pass parameter to a program



Oct 28, 2000, 7:36 AM

Post #1 of 2 (1390 views)
Pass parameter to a program Can't Post

Hello !
I have a perl program called myPerlProgram.
I want pass a parameter myParameter (scalar) to it as:

comandLine> myPerlProgram myParameter <Enter>

What code must I include in myPerlProgram to catch myParameter into the program?

How I do it??

Thanks !


Enthusiast / Moderator

Oct 28, 2000, 10:25 PM

Post #2 of 2 (1390 views)
Re: Pass parameter to a program [In reply to] Can't Post

Read the 'perlvar' documentation for the @ARGV array.

Jeff "japhy" Pinyan -- accomplished author, consultant, hacker, and teacher


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives