develooper Front page | perl.perl5.porters | Postings from May 2003

Re: windows, shortcuts and 'use lib'

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 7, 2003 01:41
Subject:
Re: windows, shortcuts and 'use lib'
Message ID:
20030507103959.5f650efc.rgarciasuarez@free.fr
Nick Ing-Simmons <nick.ing-simmons@elixent.com> wrote:
> Edward Peschko <esp5@mdssirds.comp.pge.com> writes:
> >Anyways, I'd be happy to make this a module, except that there's no good way
> >that I can see to override `` 
> 
> You _may_ have a point there.

I think that overriding readpipe() should also override qx//.
This doesn't happen, as shown by :

#!perl -w
BEGIN {
    *CORE::GLOBAL::readpipe = sub { print "this is foo!\n" }
}
print qx/ls/;
print readpipe("ls");
__END__

That would be consistent with change 14260 :

Log: Subject: [PATCH] Overriding readline() should also override <FH>
     From: Rafael Garcia-Suarez <rgarciasuarez@free.fr>
     Date: Mon, 14 Jan 2002 23:03:04 +0100
     Message-ID: <20020114230304.A691@rafael>

     Subject: Re: [PATCH] Overriding readline() should also override <FH$>
     From: Rafael Garcia-Suarez <rgarciasuarez@free.fr>
     Date: Mon, 14 Jan 2002 23:18:43 +0100
     Message-ID: <20020114231843.E691@rafael>
Branch: perl
   ! pod/perlsub.pod t/op/override.t toke.c

-- 
Unanswerable is not *NIX

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About