← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 20:36:06 2020
Reported on Wed Feb 12 21:42:25 2020

Filename/usr/share/perl/5.28/subs.pm
StatementsExecuted 8 statements in 27µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1118µs8µ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
31300nsour $VERSION = '1.03';
4
5=head1 NAME
6
7subs - Perl pragma to predeclare subroutine 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 subroutines whose names are
17in the list, allowing you to use them without parentheses (as list operators)
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 lexically scoped to the block they appear
22in: they affect
23the entire package in which they appear. It is not possible to rescind these
24declarations with C<no vars> or C<no subs>.
25
26See L<perlmodlib/Pragmatic Modules> and L<strict/strict subs>.
27
28=cut
29
30113µsrequire 5.000;
31
32
# spent 8µs within subs::import which was called: # once (8µs+0s) by Data::Dump::BEGIN@5 at line 5 of Data/Dump.pm
sub import {
331500ns my $callpack = caller;
341200ns my $pack = shift;
351600ns my @imports = @_;
3615µs foreach my $sym (@imports) {
3714µs *{"${callpack}::$sym"} = \&{"${callpack}::$sym"};
38 }
39};
40
4113µs1;