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

Re: windows, shortcuts and 'use lib'

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
April 27, 2003 12:34
Subject:
Re: windows, shortcuts and 'use lib'
Message ID:
20030427213906.4a3c82ec.rgarciasuarez@free.fr
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 ?)

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