[26311] in Perl-Users-Digest
Perl-Users Digest, Issue: 8488 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Oct 5 09:05:30 2005
Date: Wed, 5 Oct 2005 06:05:06 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 5 Oct 2005 Volume: 10 Number: 8488
Today's topics:
parse the string <a@mail.com>
Re: parse the string (Anno Siegel)
Re: parse the string <joe@inwap.com>
Re: Perl's umask equivalent command <peter@ginini.com>
Re: regexp includes a dot in string <t18_pilot@hotmail.spam.com>
Re: regexp includes a dot in string <1usa@llenroc.ude.invalid>
Re: regexp includes a dot in string <rvtol+news@isolution.nl>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 05 Oct 2005 09:42:02 GMT
From: "a" <a@mail.com>
Subject: parse the string
Message-Id: <KdN0f.88615$oW2.76114@pd7tw1no>
Each item of the output of the who command is a string. How to take the
first 11 chars out?
for Cshell command interpreter?
for CShell script?
Thanx
------------------------------
Date: 5 Oct 2005 10:12:36 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: parse the string
Message-Id: <di08uk$d30$1@mamenchi.zrz.TU-Berlin.DE>
a <a@mail.com> wrote in comp.lang.perl.misc:
> Each item of the output of the who command is a string. How to take the
> first 11 chars out?
perldoc -f substr
> for Cshell command interpreter?
> for CShell script?
Why are you asking this on a Perl group?
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
------------------------------
Date: Wed, 05 Oct 2005 03:15:29 -0700
From: Joe Smith <joe@inwap.com>
Subject: Re: parse the string
Message-Id: <XMOdnUkkKbZVOt7eRVn-vg@comcast.com>
a wrote:
> Each item of the output of the who command is a string. How to take the
> first 11 chars out?
That's so trivial in perl that even a beginner can come up with
something that works on the first or second try. So, what have
you tried so far?
> for Cshell command interpreter?
> for CShell script?
No, this is a perl newsgroup.
-Joe
------------------------------
Date: Wed, 5 Oct 2005 20:35:01 +1300
From: "Peter Sundstrom" <peter@ginini.com>
Subject: Re: Perl's umask equivalent command
Message-Id: <DmL0f.16135$iM2.1327274@news.xtra.co.nz>
"E Arredondo" <atk@sbcglobal.net> wrote in message
news:N5x0f.1$Zs3.0@newssvr25.news.prodigy.net...
> Hi,
>
> I need all files created to be -rw-rw-rw , on unix I would put at the top
> of the script:
>
> #!/bin/ksh
> umask 0
>
>
> Can I use umask on perl ?
>
> #!/usr/bin/perl -w
> umask 0
Congratulations!! You've just earned yourself an entry in the Perl SAQ
http://www.ginini.com/perlsaq.html
------------------------------
Date: Wed, 05 Oct 2005 10:21:27 GMT
From: "William Hymen" <t18_pilot@hotmail.spam.com>
Subject: Re: regexp includes a dot in string
Message-Id: <HON0f.9053$vw6.3962@newsread1.news.atl.earthlink.net>
Thanks, will do.
I spent an hour reading "Mastering Regular Expressions"
before I posted.
Cheers
"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns96E5E980B69FEasu1cornelledu@127.0.0.1...
> "William Hymen" <t18_pilot@hotmail.spam.com> wrote in news:v4H0f.8660
> $QE1.2124@newsread2.news.atl.earthlink.net:
>
> > I would like to use a regular expression pattern
> > match to search for a string containing a dot
> > and not have it equivalent to a wildcard.
> > For example if $regexp='123.45';
> > $target =~ /$regexp/;
> > would normally match on
> > 123.45
> > 123x45
> > 123g45 etc.
> >
> > I would like only 123.45
>
> You are supposed to check the FAQ *before* posting a question:
>
> perldoc -q quote
>
> Sinan
>
> --
> A. Sinan Unur <1usa@llenroc.ude.invalid>
> (reverse each component and remove .invalid for email address)
>
> comp.lang.perl.misc guidelines on the WWW:
> http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Wed, 05 Oct 2005 12:32:16 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: regexp includes a dot in string
Message-Id: <Xns96E656DC1306Basu1cornelledu@127.0.0.1>
"William Hymen" <t18_pilot@hotmail.spam.com> wrote in news:HON0f.9053
$vw6.3962@newsread1.news.atl.earthlink.net:
[ Please do not top post ]
> "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
> news:Xns96E5E980B69FEasu1cornelledu@127.0.0.1...
>> "William Hymen" <t18_pilot@hotmail.spam.com> wrote in news:v4H0f.8660
>> $QE1.2124@newsread2.news.atl.earthlink.net:
>>
>> > I would like to use a regular expression pattern
>> > match to search for a string containing a dot
>> > and not have it equivalent to a wildcard.
...
>> You are supposed to check the FAQ *before* posting a question:
>>
>> perldoc -q quote
> Thanks, will do.
>
> I spent an hour reading "Mastering Regular Expressions"
> before I posted.
OK, but that is not the FAQ.
[ Please do not quote signatures. ]
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Wed, 5 Oct 2005 14:52:25 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: regexp includes a dot in string
Message-Id: <di0pbu.1fs.1@news.isolution.nl>
Tad McClellan:
> William Hymen:
>> a string containing a dot
>> and not have it equivalent to a wildcard.
>> For example if $regexp='123.45';
>
>
> $regexp='123\.45';
I prefer
$regexp='123[.]45';
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8488
***************************************