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 15:51
Subject:
Re: windows, shortcuts and 'use lib'
Message ID:
20030508005656.734294d5.rgarciasuarez@free.fr
Rafael Garcia-Suarez wrote:
> 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//.

That should probably mean that overriding uc, ucfirst, lc,
lcfirst, quotemeta, should also modify \U, \u, etc. as well.

Currently overring glob() and readline() change the two meanings
of <>.

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

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