| 1 | package lib::glob; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | our $VERSION = '0.02'; | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use File::Glob qw(bsd_glob); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | my $sep = quotemeta($^O =~ /Win32/ ? ';' : ':'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=2 SCAR=9.2
| |||||||||||
| 13 | 1 | my $class = shift; | |||||||||
| 14 | 1 | for (split /$sep/o, join ',', @_) { | |||||||||
| 15 | # print "looking for libraries in $_\n"; | ||||||||||
| 16 | 0 | my @paths = bsd_glob($_); | |||||||||
| 17 | 0 | push @INC, @paths; | |||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 1 | 1; | |||||||||
| 22 | __END__ | ||||||||||