File: FileHandle.pm

package info (click to toggle)
libdevel-nytprof-perl 6.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,888 kB
  • sloc: perl: 5,497; javascript: 4,033; ansic: 107; makefile: 27
file content (19 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!perl
use strict;
use warnings;

package Devel::NYTProf::FileHandle;

# We have to jump through some hoops to load a second XS file from the same
# shared object.

require DynaLoader;
require Devel::NYTProf::Core;

my $c_name = 'boot_Devel__NYTProf__FileHandle';
my $c = DynaLoader::dl_find_symbol_anywhere($c_name);

die "Can't locate '$c_name' in Devel::NYTProf shared object" unless $c;
my $xs = DynaLoader::dl_install_xsub(__PACKAGE__ . '::bootstrap', $c, __FILE__);
&$xs(__PACKAGE__, $Devel::NYTProf::Core::VERSION);