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