← Index
NYTProf Performance Profile   « line view »
For webmerge/scripts/webmerge.pl
  Run on Mon Oct 7 02:42:42 2013
Reported on Mon Oct 7 03:03:23 2013

Filename/usr/lib64/perl5/5.16.0/subs.pm
StatementsExecuted 8 statements in 188µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11196µs96µssubs::::importsubs::import
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package subs;
2
314µsour $VERSION = '1.01';
4
5=head1 NAME
6
7subs - Perl pragma to predeclare sub names
8
9=head1 SYNOPSIS
10
11 use subs qw(frob);
12 frob 3..10;
13
14=head1 DESCRIPTION
15
16This will predeclare all the subroutine whose names are
17in the list, allowing you to use them without parentheses
18even before they're declared.
19
20Unlike pragmas that affect the C<$^H> hints variable, the C<use vars> and
21C<use subs> declarations are not BLOCK-scoped. They are thus effective
22for the entire package in which they appear. You may not rescind such
23declarations with C<no vars> or C<no subs>.
24
25See L<perlmodlib/Pragmatic Modules> and L<strict/strict subs>.
26
27=cut
28
29156µsrequire 5.000;
30
31
# spent 96µs within subs::import which was called: # once (96µs+0s) by Data::Dump::PHP::BEGIN@7 at line 7 of Data/Dump/PHP.pm
sub import {
3216µs my $callpack = caller;
3313µs my $pack = shift;
3417µs my @imports = @_;
35138µs foreach $sym (@imports) {
36160µs *{"${callpack}::$sym"} = \&{"${callpack}::$sym"};
37 }
38};
39
40114µs1;