RE: check existence of element in a list

2006-07-21 Thread Smith, Derek
-Original Message- From: joseph [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 6:45 PM To: beginners@perl.org Subject: Re: check existence of element in a list > > s/\s+$// foreach @pclist; > s/\s+$// foreach @smsclient; > > instead of using chomp(). If

Re: check existence of element in a list

2006-07-20 Thread joseph
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > joseph wrote: > > > > "Rob Dixon" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>joseph wrote: > >> > >>>I need help with my script, this supposedly would check a workstation > >>>listed in one file

Re: check existence of element in a list

2006-07-19 Thread Rob Dixon
joseph wrote: > > "Rob Dixon" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>joseph wrote: >> >>>I need help with my script, this supposedly would check a workstation >>>listed in one file then see if it's not listed on other file, if it 's the >>>case then append it on an outpu

Re: check existence of element in a list

2006-07-19 Thread Rob Dixon
joseph wrote: > > "Rob Dixon" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>joseph wrote: >> >>>I need help with my script, this supposedly would check a workstation >>>listed in one file then see if it's not listed on other file, if it 's the >>>case then append it on an outpu

Re: check existence of element in a list

2006-07-19 Thread joseph
"Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > joseph wrote: > > > > I need help with my script, this supposedly would check a workstation > > listed > > in one file then see if it's not listed on other file, if it 's the case > > then append it on an output file.Basic

Re: check existence of element in a list

2006-07-19 Thread John W. Krahn
joseph wrote: > Hi list, Hello, > I need help with my script, this supposedly would check a workstation listed > in one file then see if it's not listed on other file, if it 's the case > then append it on an output file.Basically what i got is the same unmodified > list just appended on the o

Re: check existence of element in a list

2006-07-19 Thread Rob Dixon
joseph wrote: > > I need help with my script, this supposedly would check a workstation listed > in one file then see if it's not listed on other file, if it 's the case > then append it on an output file.Basically what i got is the same unmodified > list just appended on the output file. Where di

Re: check existence of element in a list

2006-07-19 Thread joseph
""Jeff Peng"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >>my %hash = map { $_ => 1 } @pclist; > > above is wrong.It should be: > my %hash = map { $_, 1 } @pclist; > > HTH. > > Thank you Jeff, unfortunately still it didn't solve the problem. /jbt -- To unsubscribe, e-mail

RE: check existence of element in a list

2006-07-19 Thread Krishnakumar K P
age- From: Jeff Peng [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 19, 2006 1:13 PM To: [EMAIL PROTECTED]; beginners@perl.org Subject: RE: check existence of element in a list >my %hash = map { $_ => 1 } @pclist; above is wrong.It should be: my %hash = map { $_, 1 } @pclist; HTH.

RE: check existence of element in a list

2006-07-19 Thread Jeff Peng
my %hash = map { $_ => 1 } @pclist; above is wrong.It should be: my %hash = map { $_, 1 } @pclist; HTH. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]