Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 37183 invoked from network); 13 Oct 2005 16:43:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2005 16:43:53 -0000 Received: (qmail 79429 invoked by uid 500); 13 Oct 2005 16:43:45 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 79404 invoked by uid 500); 13 Oct 2005 16:43:45 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 79384 invoked by uid 99); 13 Oct 2005 16:43:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2005 09:43:45 -0700 Received-SPF: pass (asf.osuosl.org: domain of tagireddy@gmail.com designates 64.233.184.198 as permitted sender) Received: from [64.233.184.198] (HELO wproxy.gmail.com) (64.233.184.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2005 09:43:46 -0700 Received: by wproxy.gmail.com with SMTP id i13so198066wra for ; Thu, 13 Oct 2005 09:43:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MrLEd843qrI8GsHNqiXgLvCS3zFf9H30RcG5iKrYV503Bdq91m7mJsDXVGw5o38XGH661fzp9m2NNkRLeanxDCzxvxBoaqmiSdvyZrGLSliYWiJq3H08OmpWiygw/wJCSj4VDDL3UEgTCEYucpsAitwytgZqCyyqpNbiJKVwkHU= Received: by 10.54.94.11 with SMTP id r11mr204327wrb; Thu, 13 Oct 2005 09:41:16 -0700 (PDT) Received: by 10.54.119.8 with HTTP; Thu, 13 Oct 2005 09:43:23 -0700 (PDT) Message-ID: Date: Thu, 13 Oct 2005 12:43:23 -0400 From: raja agireddy To: modperl@perl.apache.org, modperl-digest-help@perl.apache.org Subject: Fwd: Htgroup adding blank lin when it is within a loop In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Please, If anyone can help me. I know this is not a modperl issue but just wanted to know if anyone handled it before. Regards, Raja ---------- Forwarded message ---------- From: raja agireddy Date: Oct 12, 2005 10:41 AM Subject: Htgroup adding blank lin when it is within a loop To: rbowen@rcbowen.com Rich, I am using Htgroup version 1.22 and perl 5.8. The adduser function works fine when I use it individually, but when i use it within a loop it adds an extra line like this *********** : *********** Following is my code: foreach $aprofile (@aprofiles) { if (!$htinprofile->ismember(lc($query->param('new_user'))),$aprofile) { $aprofile =3D~ s/ //; $aprofile =3D~ s/\n//; print "prof $aprofile prof\n"; $htinprofile->adduser(lc($query->param('new_user')),$aprofile); $htinprofile->save; $self->reload; } }