if( $isa_ref and $isa_ref ne 'ARRAY' ) {\r
croak( "Non-array reference ($isa_ref) passed to uri_for()" );\r
}\r
- utf8::encode( $_ ) for $isa_ref ? @$value : $value;\r
+ utf8::encode( $_ ) for grep { defined } $isa_ref ? @$value : $value;\r
};
# join args with '/', or a blank string
if( $isa_ref and $isa_ref ne 'ARRAY' ) {
croak( "Non-array reference ($isa_ref) passed to uri_with()" );
}
- utf8::encode( $_ ) for $isa_ref ? @$value : $value;
+ utf8::encode( $_ ) for grep{ defined } $isa_ref ? @$value : $value;
};
my $uri = $self->uri->clone;