blib/lib/WWW/Shopify/Liquid/Filter/Join.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 2 SCAR 12.8
CC
2
Cov
0%
operate
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4  
5 package WWW::Shopify::Liquid::Filter::Join; use base 'WWW::Shopify::Liquid::Filter';
6 sub operate {
7 my ($self, $hash, $operand, $argument) = @_;
8 return undef unless $operand && ref($operand) eq 'ARRAY';
9 return join($argument, @$operand);
10 }
11  
12 1;