[lug] perl question
j davis
davis_compz at hotmail.com
Sun Apr 28 13:12:06 MDT 2002
what does the gm do after the " #/ " ?
thanks
jd
>From: Stephen Queen <svq at peakpeak.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:53:44 -0600
>MIME-Version: 1.0
>Received: from [66.54.152.73] by hotmail.com (3.2) with ESMTP id
>MHotMailBE946960009C4136E8574236984910830; Sat, 27 Apr 2002 14:55:44 -0700
>Received: (qmail 12667 invoked by uid 0); 27 Apr 2002 21:54:13 -0000
>Received: from localhost (HELO community.tummy.com)
>(?zZacmRxVJzL4LZsC4kkloe8GUKBepDcd?@127.0.0.1) by localhost with SMTP; 27
>Apr 2002 21:54:06 -0000
>Received: (qmail 12493 invoked by alias); 27 Apr 2002 21:53:14 -0000
>Received: (qmail 12490 invoked by uid 0); 27 Apr 2002 21:53:14 -0000
>Received: from tb0125.peakpeak.com (HELO travis.svq.home.net)
>(204.94.146.125) by community.tummy.com with SMTP; 27 Apr 2002 21:53:13
>-0000
>Received: from peakpeak.com (svq at localhost [127.0.0.1])by
>travis.svq.home.net (8.11.4/8.11.4) with ESMTP id g3RLri407953for
><lug at lug.boulder.co.us>; Sat, 27 Apr 2002 15:53:44 -0600
>From lug-admin at lug.boulder.co.us Sat, 27 Apr 2002 14:56:16 -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
>Message-ID: <3CCB1DE8.9B1625C2 at peakpeak.com>
>X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.5 i686)
>X-Accept-Language: en
>References: <F53TewrYSXoZl0fqWcH00001c1a at hotmail.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/>
>
> >
> >
> > and so on....this way i can add a"#" to the begging of $newarray[0]
> > so ms word will be cool when i mailmerg this list so word can make
>mailing
> > labes...and so i can easily pattern match against users first names on
> > returned mail.
> >
>
>To add a # at the beginning of the first line try
>
>foreach $array (@array) {
> print "$array\n";
> $array=~s/^/#/;
> print "$array\n";
>}
>
>To add a # at the beginning of every line try
>foreach $array (@array) {
> print "$array\n";
> $array=~s/^/#/gm;
> print "$array\n";
>}
>
>Hope that helps.
>
>Steve Queen
>
>
>_______________________________________________
>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 worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
More information about the LUG
mailing list