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

Re: windows, shortcuts and 'use lib'

Thread Previous | Thread Next
From:
Edward Peschko
Date:
April 28, 2003 15:27
Subject:
Re: windows, shortcuts and 'use lib'
Message ID:
20030428095638.B25780@mdssirds.comp.pge.com
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 lib.pm.
> 
> 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?

Ed

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