← Index
NYTProf Performance Profile   « line view »
For /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/bin/perlcritic
  Run on Sat Mar 19 22:12:22 2016
Reported on Sat Mar 19 22:14:10 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/PPI/Token/QuoteLike/Regexp.pm
StatementsExecuted 11 statements in 212µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11111µs22µsPPI::Token::QuoteLike::Regexp::::BEGIN@32PPI::Token::QuoteLike::Regexp::BEGIN@32
11110µs10µsPPI::Token::QuoteLike::Regexp::::BEGIN@37PPI::Token::QuoteLike::Regexp::BEGIN@37
1116µs33µsPPI::Token::QuoteLike::Regexp::::BEGIN@36PPI::Token::QuoteLike::Regexp::BEGIN@36
1113µs3µsPPI::Token::QuoteLike::Regexp::::BEGIN@33PPI::Token::QuoteLike::Regexp::BEGIN@33
1113µs3µsPPI::Token::QuoteLike::Regexp::::BEGIN@34PPI::Token::QuoteLike::Regexp::BEGIN@34
0000s0sPPI::Token::QuoteLike::Regexp::::get_delimitersPPI::Token::QuoteLike::Regexp::get_delimiters
0000s0sPPI::Token::QuoteLike::Regexp::::get_match_stringPPI::Token::QuoteLike::Regexp::get_match_string
0000s0sPPI::Token::QuoteLike::Regexp::::get_modifiersPPI::Token::QuoteLike::Regexp::get_modifiers
0000s0sPPI::Token::QuoteLike::Regexp::::get_substitute_stringPPI::Token::QuoteLike::Regexp::get_substitute_string
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package PPI::Token::QuoteLike::Regexp;
2
3=pod
4
5=head1 NAME
6
7PPI::Token::QuoteLike::Regexp - Regexp constructor quote-like operator
8
9=head1 INHERITANCE
10
11 PPI::Token::QuoteLike::Regexp
12 isa PPI::Token::QuoteLike
13 isa PPI::Token
14 isa PPI::Element
15
16=head1 DESCRIPTION
17
18A C<PPI::Token::QuoteLike::Regexp> object represents the quote-like
19operator used to construct anonymous L<Regexp> objects, as follows.
20
21 # Create a Regexp object for a module filename
22 my $module = qr/\.pm$/;
23
24=head1 METHODS
25
26The following methods are provided by this class,
27beyond those provided by the parent L<PPI::Token::QuoteLike>,
28L<PPI::Token> and L<PPI::Element> classes.
29
30=cut
31
32239µs234µs
# spent 22µs (11+11) within PPI::Token::QuoteLike::Regexp::BEGIN@32 which was called: # once (11µs+11µs) by PPI::Token::BEGIN@60 at line 32
use strict;
# spent 22µs making 1 call to PPI::Token::QuoteLike::Regexp::BEGIN@32 # spent 11µs making 1 call to strict::import
33218µs13µs
# spent 3µs within PPI::Token::QuoteLike::Regexp::BEGIN@33 which was called: # once (3µs+0s) by PPI::Token::BEGIN@60 at line 33
use PPI::Token::QuoteLike ();
# spent 3µs making 1 call to PPI::Token::QuoteLike::Regexp::BEGIN@33
34219µs13µs
# spent 3µs within PPI::Token::QuoteLike::Regexp::BEGIN@34 which was called: # once (3µs+0s) by PPI::Token::BEGIN@60 at line 34
use PPI::Token::_QuoteEngine::Full ();
# spent 3µs making 1 call to PPI::Token::QuoteLike::Regexp::BEGIN@34
35
36228µs261µs
# spent 33µs (6+27) within PPI::Token::QuoteLike::Regexp::BEGIN@36 which was called: # once (6µs+27µs) by PPI::Token::BEGIN@60 at line 36
use vars qw{$VERSION @ISA};
# spent 33µs making 1 call to PPI::Token::QuoteLike::Regexp::BEGIN@36 # spent 27µs making 1 call to vars::import
37
# spent 10µs within PPI::Token::QuoteLike::Regexp::BEGIN@37 which was called: # once (10µs+0s) by PPI::Token::BEGIN@60 at line 43
BEGIN {
381400ns $VERSION = '1.215';
39110µs @ISA = qw{
40 PPI::Token::_QuoteEngine::Full
41 PPI::Token::QuoteLike
42 };
43196µs110µs}
# spent 10µs making 1 call to PPI::Token::QuoteLike::Regexp::BEGIN@37
44
- -
49#####################################################################
50# PPI::Token::QuoteLike::Regexp Methods
51
52=pod
53
54=head2 get_match_string
55
56The C<get_match_string> method returns the portion of the string that
57will be compiled into the match portion of the regexp.
58
59=cut
60
61sub get_match_string {
62 return $_[0]->_section_content( 0 );
63}
64
65=pod
66
67=head2 get_substitute_string
68
69The C<get_substitute_string> method always returns C<undef>, since
70the C<qr{}> construction provides no substitution string. This method
71is provided for orthogonality with C<PPI::Token::Regexp>.
72
73=cut
74
75sub get_substitute_string {
76 return undef;
77}
78
79=pod
80
81=head2 get_modifiers
82
83The C<get_modifiers> method returns the modifiers that will be
84compiled into the regexp.
85
86=cut
87
88sub get_modifiers {
89 return $_[0]->_modifiers();
90}
91
92=pod
93
94=head2 get_delimiters
95
96The C<get_delimiters> method returns the delimiters of the string as an
97array. The first and only element is the delimiters of the string to be
98compiled into a match string.
99
100=cut
101
102sub get_delimiters {
103 return $_[0]->_delimiters();
104}
105
10612µs1;
107
108=pod
109
110=head1 SUPPORT
111
112See the L<support section|PPI/SUPPORT> in the main module.
113
114=head1 AUTHOR
115
116Adam Kennedy E<lt>adamk@cpan.orgE<gt>
117
118=head1 COPYRIGHT
119
120Copyright 2001 - 2011 Adam Kennedy.
121
122This program is free software; you can redistribute
123it and/or modify it under the same terms as Perl itself.
124
125The full text of the license can be found in the
126LICENSE file included with this module.
127
128=cut