← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 03:38:15 2020
Reported on Wed Feb 12 04:56:36 2020

Filename/usr/share/perl/5.28/subs.pm
StatementsExecuted 8 statements in 28µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1119µs9µ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
30112µsrequire 5.000;
31
32
# spent 9µs within subs::import which was called: # once (9µs+0s) by Data::Dump::BEGIN@5 at line 5 of Data/Dump.pm
sub import {
331600ns my $callpack = caller;
341300ns my $pack = shift;
351600ns my @imports = @_;
3615µs foreach my $sym (@imports) {
3715µs *{"${callpack}::$sym"} = \&{"${callpack}::$sym"};
38 }
39};
40
4114µs1;