[26312] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8489 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Oct 5 11:05:22 2005

Date: Wed, 5 Oct 2005 08:05:08 -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: 8489

Today's topics:
    Re: Perl's umask equivalent command <atk@sbcglobal.net>
    Re: regexp includes a dot in string <nobody@dizum.com>
    Re: regexp includes a dot in string <1usa@llenroc.ude.invalid>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 05 Oct 2005 14:55:35 GMT
From: "E Arredondo" <atk@sbcglobal.net>
Subject: Re: Perl's umask equivalent command
Message-Id: <HPR0f.9044$oO2.4699@newssvr27.news.prodigy.net>


"Peter Sundstrom" <peter@ginini.com> wrote in message 
news: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
>
>

That is fantabulous. I've just started programming with Perl (5 days ago) 
and I'm already included on the honorable perlsaq list. 




------------------------------

Date: Wed,  5 Oct 2005 16:10:05 +0200 (CEST)
From: Nomen Nescio <nobody@dizum.com>
Subject: Re: regexp includes a dot in string
Message-Id: <f65daf139007a9fbc8eb231b88e6395c@dizum.com>

"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote:

> "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

FFS just tell him the answer:

$target =~ /\Q$regexp/;

HTH!












------------------------------

Date: Wed, 5 Oct 2005 14:36:51 +0000 (UTC)
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: regexp includes a dot in string
Message-Id: <Xns96E66BF8CD68Basu1cornelledu@132.236.56.8>

Nomen Nescio <nobody@dizum.com> wrote in 
news:f65daf139007a9fbc8eb231b88e6395c@dizum.com:

> "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote:
> 
>> "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
> 
> FFS 

FFS?

> just tell him the answer:

http://www.amatecon.com/fish.html

Sinan


------------------------------

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 8489
***************************************


home help back first fref pref prev next nref lref last post