Hi & a question
From: John McKown (joarmc_at_swbell.net)
Date: 12/26/03
- Next message: Pandey Rajeev-A19514: "RE: Hi & a question"
- Previous message: R. Joseph Newton: "Re: Problems with LWP::UserAgent"
- Next in thread: Pandey Rajeev-A19514: "RE: Hi & a question"
- Maybe reply: Pandey Rajeev-A19514: "RE: Hi & a question"
- Maybe reply: Steven Kreuzer: "RE: Hi & a question"
- Maybe reply: Bruce T. Harvey: "RE: Hi & a question"
- Reply: R. Joseph Newton: "Re: Hi & a question"
- Reply: Drieux: "Re: Hi & a question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Dec 2003 11:37:51 -0600 (CST) To: Perl Beginners Mailing List <beginners@perl.org>
I'm new here and a very novice Perl coder. And I have a question, of
course <grin>.
Is it more "Perl-like" to get information from the shell via UNIX
Environment Variables or via the command line? For an example, I have
writing a Perl program which reacts to messages sent to it. It has four
input parameters. The current program gets this information, which is two
distinct subdirectories, a port number, and an IP address, via four
different environment variables. My question is should I do it that way or
should I pass this information in via the command line.
E.g.
export DIR1=...
export DIR2=...
export IPADDR=...
export IPPORT=...
perl-script.perl
or
perl-script.perl DIR1 DIR2 IPADDR IPPORT
Although my current code uses the first way, I'm beginning to think that
the second is preferrable because it would be more portable to non-UNIX
environments.
I hope everybody is having a good holiday.
-- Maranatha! John McKown
- Next message: Pandey Rajeev-A19514: "RE: Hi & a question"
- Previous message: R. Joseph Newton: "Re: Problems with LWP::UserAgent"
- Next in thread: Pandey Rajeev-A19514: "RE: Hi & a question"
- Maybe reply: Pandey Rajeev-A19514: "RE: Hi & a question"
- Maybe reply: Steven Kreuzer: "RE: Hi & a question"
- Maybe reply: Bruce T. Harvey: "RE: Hi & a question"
- Reply: R. Joseph Newton: "Re: Hi & a question"
- Reply: Drieux: "Re: Hi & a question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]