| 1 | package Win32::Shortcut::Readlink; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 2 | require 5.008000; | |||||||||||||
| 4 | 2 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | 2 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 6 | 2 | ▶ | use base qw( Exporter ); | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 7 | |||||||||||||||
| 8 | 2 | ▶ | BEGIN { | ||||||||||||
|
Subroutine
BEGIN: called CC=2 SCAR=9.2
| |||||||||||||||
| 9 | |||||||||||||||
| 10 | # ABSTRACT: Make readlink work with shortcuts | ||||||||||||||
| 11 | 2 | our $VERSION = '0.03'; # VERSION | |||||||||||||
| 12 | |||||||||||||||
| 13 | 2 | ▶ | if($^O =~ /^(cygwin|MSWin32)$/) | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 14 | { | ||||||||||||||
| 15 | 0 | require XSLoader; | |||||||||||||
| 16 | 0 | XSLoader::load('Win32::Shortcut::Readlink', $Win32::Shortcut::Readlink::VERSION); | |||||||||||||
| 17 | } | ||||||||||||||
| 18 | |||||||||||||||
| 19 | } | ||||||||||||||
| 20 | |||||||||||||||
| 21 | |||||||||||||||
| 22 | 2 | our @EXPORT_OK = qw( readlink ); | |||||||||||||
| 23 | 2 | our @EXPORT = @EXPORT_OK; | |||||||||||||
| 24 | |||||||||||||||
| 25 | |||||||||||||||
| 26 | 2 | ▶ | if(eval { require 5.010000 }) | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 27 | { | ||||||||||||||
| 28 | 2 | require Win32::Shortcut::Readlink::Perl510; | |||||||||||||
| 29 | } | ||||||||||||||
| 30 | 0 | elsif(eval { require 5.008000 }) | |||||||||||||
| 31 | { | ||||||||||||||
| 32 | 0 | require Win32::Shortcut::Readlink::Perl58; | |||||||||||||
| 33 | } | ||||||||||||||
| 34 | else | ||||||||||||||
| 35 | { | ||||||||||||||
| 36 | # TODO: doesn't currently work. Figure out | ||||||||||||||
| 37 | # if this is a limitation of Perl 5.6 or if | ||||||||||||||
| 38 | # I am just doing it wrong. Fix or remove | ||||||||||||||
| 39 | # if appropriate. BTW- dist requires 5.8 | ||||||||||||||
| 40 | # so shouldn't even get in here if installed | ||||||||||||||
| 41 | # without hacking. | ||||||||||||||
| 42 | 0 | require Win32::Shortcut::Readlink::Perl56; | |||||||||||||
| 43 | } | ||||||||||||||
| 44 | |||||||||||||||
| 45 | 2 | 1; | |||||||||||||
| 46 | |||||||||||||||
| 47 | __END__ | ||||||||||||||