Re: Hi & a question

2003-12-31 Thread drieux
On Dec 31, 2003, at 8:28 AM, John McKown wrote: For only 4 variables, I thought it was overkill to have an "ini" file. However as I continue to mess around with my code, I'm adding more and more externalized variables. Use of an "ini" is becoming more appealing. john, for what it is worth - cf:

Re: Hi & a question

2003-12-31 Thread John McKown
Daniel, For only 4 variables, I thought it was overkill to have an "ini" file. However as I continue to mess around with my code, I'm adding more and more externalized variables. Use of an "ini" is becoming more appealing. Thanks for your thoughts! On Sun, 28 Dec 2003, Daniel Staal wrote: >

Re: Hi & a question

2003-12-29 Thread drieux
On Dec 26, 2003, at 9:37 AM, John McKown wrote: [..] E.g. export DIR1=... export DIR2=... export IPADDR=... export IPPORT=... perl-script.perl or perl-script.perl DIR1 DIR2 IPADDR IPPORT [..] Thanks for the seasonal ranting option:

Re: Hi & a question

2003-12-28 Thread Daniel Staal
--As off Friday, December 26, 2003 3:16 PM -0600, John McKown is alleged to have said: Actually, I considered an "ini" or "cfg" file, but rejected it. I was wanting something more "standalone" in this case. First, it seemed a bit much for only 4 parms. Second, I didn't want to maintain a separa

Re: Hi & a question

2003-12-26 Thread John McKown
On Fri, 26 Dec 2003, R. Joseph Newton wrote: > > Hi John, > > I'd suggest that both approaches can be somewhat lacking in portability. The > command line is something of a kludge, IMHO, as it still depends largely on > users typing in the correct parameters. I think ini files would be portable

Re: Hi & a question

2003-12-26 Thread R. Joseph Newton
John McKown wrote: > I'm new here and a very novice Perl coder. And I have a question, of > course . > > 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

Re: Hi & a question

2003-12-26 Thread R. Joseph Newton
Pandey Rajeev-A19514 wrote: > hey !!! > > do you celebrate only perl even in the christmas vacation !!! > Take a break !! Have a kit kat christmas cake. > Merry Christmas to this perl group > > Rajeev I might remind you--not everyone even celbrates that particular holiday. I join my family

RE: Hi & a question

2003-12-26 Thread Harvey, Bruce T.
I'm not a 'perl' pro, but I am a pro at using different shells, programs and so on in different environments. It depends on the environment in which you're running. For example, running on some type of *NIX at a command line, you might very well want command line options so that people and scri

RE: Hi & a question

2003-12-26 Thread Steven Kreuzer
Why not just make DIR1, DIR2, IPADDR AND IPPORT global variables within the script, rather then requiring user to set env variables, which can become a pain in the ass. Your best bet would be to set them to some default variable, and then if the user needs to, she can override the default values b

RE: Hi & a question

2003-12-26 Thread Pandey Rajeev-A19514
hey !!! do you celebrate only perl even in the christmas vacation !!! Take a break !! Have a kit kat christmas cake. Merry Christmas to this perl group Rajeev -Original Message- From: John McKown [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 11:08 PM To: Perl Beginners