« blib/lib/WWW/Shopify/Liquid/Filter/Remove.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/Pluralize.pm »
| 1 | #!/usr/bin/perl | ||||||||||
| 2 | 30 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 30 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 30 | ▶ | package WWW::Shopify::Liquid::Filter::Slice; use base 'WWW::Shopify::Liquid::Filter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | sub operate { | ||||||||||
| 8 | 0 | ▶ | my ($self, $hash, $operand, $index, $length) = @_; | ||||||||
|
Subroutine
operate: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 9 | 0 | ▶ | $length = 1 unless defined $length; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | 0 | return substr($operand, $index, $length); | |||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 30 | 1; | |||||||||