Re: problem with strings

2004-12-03 Thread Randy W. Sims
[EMAIL PROTECTED] wrote: Hi Frnds, I have a problem with string passed as an argument to a perl script. I am giving the string \C:\\PROGRA~1\\INTERN~1\\IEXPLORE.EXE\ as an argument to the cmdtemplate option. and it been taken as C:PROGRA~1INTERN~1IEXPLORE.EXE after parsing it. what happend to

problem with strings

2004-12-02 Thread arjun.mallik
Hi Frnds, I have a problem with string passed as an argument to a perl script. I am giving the string \C:\\PROGRA~1\\INTERN~1\\IEXPLORE.EXE\ as an argument to the cmdtemplate option. and it been taken as C:PROGRA~1INTERN~1IEXPLORE.EXE after parsing it. what happend to the back slash.?? In

problem comparing strings

2001-11-14 Thread samuel
Hi there! i'm seeking for help on something which should b easy, but has turned into my personal hell. i'm trying to compare character (but i guess it applies the same to strings) for my database entry markers, but i simpled the problem out to this: #Here starts my nightmare

Re: problem comparing strings

2001-11-14 Thread Chris Garringer
chomp $character; You need to get rid of the newline character at the end of every string from STDIN On Wed, 14 Nov 2001, samuel wrote: Hi there! i'm seeking for help on something which should b easy, but has turned into my personal hell. i'm trying to compare character (but i guess it

Problem comparing Strings with IF AND

2001-10-29 Thread Kurthin
The program I'm writing (my first in Perl) takes a log file and using a regex pulls out all lines that contains certain words and writes them to a file. Then I read in that file, seperate out the fields I want (IP address and method), and want to eliminate the duplicates, and add a count to show

Re: Problem comparing Strings with IF AND

2001-10-29 Thread Pete Sergeant
Kurt, if ($client ne $newclient and $method ne $newmethod){ print something\n;#I'll actually be printing this to my report once I get this worked out } I think what you want is: if (($client ne $newclient)($method ne $newmethod)) { ... } This is covered