| 1 | package | ||
| 2 | JavaScript::Duktape::C::libPath; | ||
| 3 | 53 | ▶ | use File::Spec; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 53 | my $file = File::Spec->rel2abs(__FILE__); | |
| 5 | 53 | $file =~ m/(.*?)libPath\.pm/; | |
| 6 | 53 | our $dir = File::Spec->canonpath( $1 ); | |
| 7 | |||
| 8 | sub getPath { | ||
| 9 | 318 | ▶ | my $extra = shift; |
|
Subroutine
getPath: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | 318 | return File::Spec->canonpath( $dir . '/' . $extra ); | |
| 11 | } | ||
| 12 | |||
| 13 | sub getFile { | ||
| 14 | 0 | ▶ | my $file = shift; |
|
Subroutine
getFile: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 15 | 0 | $file = File::Spec->canonpath( $dir . '/' . $file ); | |
| 16 | } | ||
| 17 | |||
| 18 | 53 | 1; | |