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-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-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 separate

Hi a question

2003-12-26 Thread John McKown
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

RE: Hi a question

2003-12-26 Thread Pandey Rajeev-A19514
Mailing List Subject: Hi a question 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

RE: Hi a question

2003-12-26 Thread Steven Kreuzer
Mailing List Subject: Hi a question 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

RE: Hi a question

2003-12-26 Thread Harvey, Bruce T.
To: Perl Beginners Mailing List Subject: Hi a question 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

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 in the

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 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

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 all, question about caracter detection

2002-11-22 Thread Miguel Angelo
Hi All, thankx for the help (Sudarshan Raghavan and Beau E. Cox), i have found a generic solution here is the sample script... # #!/usr/bin/perl -wT ## # modules ## use strict ;

Re: Hi all, question about caracter detection

2002-11-22 Thread Tanton Gibbs
22, 2002 3:34 PM Subject: RE: Hi all, question about caracter detection Hi All, thankx for the help (Sudarshan Raghavan and Beau E. Cox), i have found a generic solution here is the sample script... # #!/usr/bin/perl -wT

Hi all, question about caracter detection

2002-11-18 Thread Miguel Angelo
Hi All, Thankx for reading this. I have a very newbie question... i'm working on a CGI and i want only to permit some caracters by the user... imagine my $STRING = kjsh234Sd\nki; # now i want to check if there is any invalid caracter # in this case a-z ; A-Z and 0-9 there for /[a-zA-Z0-9]/

RE: Hi all, question about caracter detection

2002-11-18 Thread Beau E. Cox
. Aloha - Beau. -Original Message- From: Miguel Angelo [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 2:31 AM To: [EMAIL PROTECTED] Subject: Hi all, question about caracter detection Hi All, Thankx for reading this. I have a very newbie question... i'm working on a CGI and i

RE: Hi all, question about caracter detection

2002-11-18 Thread Sudarshan Raghavan
On Mon, 18 Nov 2002, Beau E. Cox wrote: Hi - This will 'strip' all but a-zA-Z0-9: #!/usr/bin/perl use strict; use warnings; my $STRING = kjsh234Sd\nki; $STRING =~ s/[^a-zA-Z0-9]//sg; print $STRING\n; the ~ makes the character class negative, I guess you

Re: Hi, newbie question

2002-07-25 Thread Robert Thompson
In vi, you have to type ctrl-v ctrl-m. This will tell vi you mean control-m and not carrot-m. :%s/ctrl-vcrtl-m//g =-= Robert Thompson Even in vi when i do a search for ^M by doing '/^M' it says that no matches were found. The ^M is not two characters but one. Can anyone out there please

Re: Hi, newbie question

2002-07-24 Thread Marco Antonio Valenzuela Escárcega
On Mon, 2002-07-22 at 14:41, Desmond Lee wrote: Hi guys I'm trying to read a file, but it's just one massive line. I think that the ^M is suppose to be an indication that that's wehre teh newline is suppose to be. I've tried to replace ^M with a newline by executing something that i

Re: Hi, newbie question

2002-07-23 Thread Yasen Petrov
Hello, I don't think that the file matters. You say it's a massive line. To read a file you should first open it. Look at PerlDoc. Desmond Lee [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi guys I'm trying to read a file, but it's just one massive line. I

Hi, newbie question

2002-07-22 Thread Desmond Lee
Hi guys I'm trying to read a file, but it's just one massive line. I think that the ^M is suppose to be an indication that that's wehre teh newline is suppose to be. I've tried to replace ^M with a newline by executing something that i found on the web: perl -pi.bak -e 's/\^M/\n/g'