[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [Fun With Perl] crunching the modules at @INC



On Wed, Jun 16, 1999 at 12:34:00PM -0400, Steve Willer wrote:
> 
> On Mon, 14 Jun 1999, Ronald J Kimball wrote:
> 
> > >   (my $module = $File::Find::name) =~ s|/|::|go;
> > 
> > Useless use of /o on constant regex.
> 
> Is this the case? I don't see anything saying this in the man pages.

/o is only meaningful when the pattern contains variables.  It doesn't do
any harm if the pattern is constant, but it doesn't do any good either.

> Even if Perl happens to behave this way right now, perhaps it serves as
> useful explicit documentation, like '' versus "".

Perhaps, but personally I think it's more distracting than informative.

Ronald

==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org