Bladernr has asked for the wisdom of the Perl Monks concerning the following question:
OK... so here I am teaching my self Perl. I am learning in the proper way (taking others scripts and learning from them, and converting my bash scripts to perl as a way to learn while doing.)
So here is my current snag... can i use command line options when running a perl program??
but I havent gotten this to work in perl yet. I can do it using stdin variable declarations ($variable=<stdin>) but that makes the scripts a little more intensive than I want.
any wisdom?
So here is my current snag... can i use command line options when running a perl program??
For example, in bash, I can set it up so that: command opt1 opt1 translates opt1 into $1 and opt2 into $2.
but I havent gotten this to work in perl yet. I can do it using stdin variable declarations ($variable=<stdin>) but that makes the scripts a little more intensive than I want.
I simply want to run a script like this: sync fromhost and not like this: sync ENTER DIRECTION: fromhost
any wisdom?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: command line options
by boo_radley (Parson) on Aug 10, 2001 at 22:19 UTC | |
Re: command line options
by suaveant (Parson) on Aug 10, 2001 at 22:09 UTC | |
Re: (elbie) command line options
by elbie (Curate) on Aug 12, 2001 at 07:43 UTC |
Back to
Seekers of Perl Wisdom