Re: Problem with reading string from commandline

2001-05-03 Thread Jose Vazquez
Greg, I already tried that, it doesn't work. :( When it gets to the ()[] it stops at once, with the error NO MATCH I need to remove the ()[] before it gets read, or ARGV needs somekind of option so it will ignore them. Thanks jose vazquez [EMAIL PROTECTED] On Thu, 3 May 2001, Greg Meckes wr

Re: Problem with reading string from commandline

2001-05-03 Thread Collin Rogowski
I think the problem is not with perl, but with your shell.  For the most shells () and [] are metacharacters (in bash [] is for  pattern matching and () is to fork a process, me thinks).  You either have to put the entire paramline into ''. Than you have  to alter your perl-programm, because you j

Re: Problem with reading string from commandline

2001-05-03 Thread Greg Meckes
Couldn't you just do something simple like: #at your "for" loop for ($t=0;$t<$z;$t++) { #Insert this $zin[$t] =~ s/\[//g; #Remove left bracket $zin[$t] =~ s/\]//g; #Remove right bracket #End insert #And continue with the rest... if ($zin[$t] eq "212.104.202.50") { #etc ### It'll

Problem with reading string from commandline

2001-05-03 Thread jose
Hi, I'm having a problem with a script. This is a bit of a long story, but I hope someone can help me. I've been busy with it now for two weeks, and I still don't know how to get it working perfectly. I'm used to C, and perl is rather new to me. Thanks in advance. I would like to thank Collin