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

Re: problem comparing strings

2001-11-14 Thread Richard S. Crawford
How about chomp($character=); ? At 11:13 AM 11/14/2001, samuel wrote: >print"\nCharacter?:"; >$character= ; Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly;

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 print"\nCharacter

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 c

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