« blib/lib/WWW/Shopify/Liquid/Filter/LinkTo.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/DateParse.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::MD5; use base 'WWW::Shopify::Liquid::Filter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 30 | ▶ | use Digest::MD5 qw(md5_hex); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 30 | ▶ | use JSON qw(to_json); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | sub operate { | ||||||||||
| 9 | 0 | ▶ | my ($self, $hash, $operand, @arguments) = @_; | ||||||||
|
Subroutine
operate: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 10 | 0 | ▶ | $operand = '' unless defined $operand; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 0 | ▶ | return md5_hex(to_json($operand, { canonical => 1 })) if ref($operand); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | return md5_hex($operand); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 30 | 1; | |||||||||