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

Re: windows, shortcuts and 'use lib'

Thread Previous | Thread Next
Edward Peschko
April 28, 2003 15:27
Re: windows, shortcuts and 'use lib'
Message ID:
On Sun, Apr 27, 2003 at 09:39:06PM +0200, Rafael Garcia-Suarez wrote:
> Benjamin Goldberg wrote:
> > A better patch (imho) would be to make the "-l" operator return true for
> > filenames which end in ".lnk", and hack "readlink" on windows to grock
> > the format of shortcut files.  Then, one could write:
> > 
> >    use lib readlink('shortcut.lnk');
> > 
> > Which would thus require no alteration of
> CORE::readlink() is overridable. You could do this in a module
> (Win32::Readlink ?)

How about 'use lib'? Could 'use lib' be made overridable based on platform?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About