Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!haven!aplcen!jhunix!jhuvms.bitnet From: shan_x@jhuvms.bitnet (Xuning Shan) Newsgroups: comp.lang.perl Subject: help needed: remove leading/trailing blanks Keywords: leading/trailing blanks Message-ID: <5134@jhunix.HCF.JHU.EDU> Date: 2 May 90 21:19:27 GMT Sender: che_wgp@jhunix.HCF.JHU.EDU Reply-To: shan_x@jhuvms.bitnet (Xuning Shan) Organization: Dept. of Chemical Engineering, The Johns Hopkins University Lines: 23 I am new to PERL. But from the manual, I think it is a better language for me to write an accounting report program. There are several files produced by the accounting softwares. I need to combine them into one. When comparing user names from two different files, I used: if( $name1 eq $name2) {block1} else {block2} Block2 was always executed. But by printing out $name1 and $name2, they are the same. Can some one give me some pointers to solve the problem? Are there any introduction materials to PERL besides the PERL manual? Thanks. X. Shan shan_x@jhuvms.bitnet PS. I guessed it is due to leading/trailing blanks. ...