[lug] perl question

j davis davis_compz at hotmail.com
Sun Apr 28 13:09:59 MDT 2002


cool!! it works!
thanks everybody
jd

>From: Paul Walmsley <shag-blug at booyaka.com>
>Reply-To: lug at lug.boulder.co.us
>To: <lug at lug.boulder.co.us>
>Subject: Re: [lug] perl question
>Date: Sat, 27 Apr 2002 15:12:00 -0600 (MDT)
>MIME-Version: 1.0
>Received: from [66.54.152.73] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE945F9F00B04136E855423698490D6A0; Sat, 27 Apr 2002 14:14:07 -0700
>Received: (qmail 10834 invoked by uid 0); 27 Apr 2002 21:13:13 -0000
>Received: from localhost (HELO community.tummy.com) 
>(?7KIZ893XFGlHCiA1r+mAOc5b49nUzbPW?@127.0.0.1)  by localhost with SMTP; 27 
>Apr 2002 21:13:06 -0000
>Received: (qmail 10657 invoked by alias); 27 Apr 2002 21:12:02 -0000
>Received: (qmail 10654 invoked by uid 0); 27 Apr 2002 21:12:02 -0000
>Received: from utopia.booyaka.com (206.168.112.107)  by community.tummy.com 
>with SMTP; 27 Apr 2002 21:12:01 -0000
>Received: (qmail 17228 invoked by uid 526); 27 Apr 2002 21:12:00 -0000
>From lug-admin at lug.boulder.co.us Sat, 27 Apr 2002 14:15:35 -0700
>Return-Path: <alias-blug_dom-lug-owner at lug.boulder.co.us>
>Delivered-To: mailman-lists.lug.boulder.co.us-lug at lists.lug.boulder.co.us
>Delivered-To: alias-blug_dom-lug at lug.boulder.co.us
>In-Reply-To: <F53TewrYSXoZl0fqWcH00001c1a at hotmail.com>
>Message-ID: <Pine.LNX.4.33.0204271510270.22993-100000 at utopia.booyaka.com>
>Sender: lug-admin at lug.boulder.co.us
>Errors-To: lug-admin at lug.boulder.co.us
>X-BeenThere: lug at lug.boulder.co.us
>X-Mailman-Version: 2.0.8
>Precedence: bulk
>List-Help: <mailto:lug-request at lug.boulder.co.us?subject=help>
>List-Post: <mailto:lug at lug.boulder.co.us>
>List-Subscribe: 
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=subscribe>
>List-Id: Boulder (Colorado) Linux Users Group -- General Mailing List 
><lug.lug.boulder.co.us>
>List-Unsubscribe: 
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=unsubscribe>
>List-Archive: <http://lists.lug.boulder.co.us/pipermail/lug/>
>
>On Sat, 27 Apr 2002, j davis wrote:
>
> > $array[0] =  Dr. Stephen Abel
> >              5 Ellen Court
> >              Orinda, CA 94563
> >              Deanmail#
> >
> > $array[1] = William J (Jr.) Abraham
> >             11137 E Mariola Way
> >             Scottsdale, AZ
> >             85262-3203
> >             furlow#
> >
> > and so on... this happens because of some split stuff i did in the 
>script
> > that put the list in its current format. Im ok with this...
> > i just want to know how i can get each line from say..$array[0]
> > into another array so each line is a diffrent var..like
> >
> > $newarray[o] = William (jr) abrham
> > $newarray[1] = 11137 e Mariola way
>
>consider splitting on a newline, e.g.,
>
>	my @lines = split (/\n/, $array[0]);
>
>
>- Paul
>
>_______________________________________________
>Web Page:  http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>Join us on IRC: lug.boulder.co.us port=6667 channel=#colug


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the LUG mailing list