diff --git a/src/lib/Hydra/Helper/CatalystUtils.pm b/src/lib/Hydra/Helper/CatalystUtils.pm index 0b48e455..64e3c44f 100644 --- a/src/lib/Hydra/Helper/CatalystUtils.pm +++ b/src/lib/Hydra/Helper/CatalystUtils.pm @@ -279,7 +279,7 @@ sub requirePost { sub trim { - my $s = shift; + my $s = shift // ""; $s =~ s/^\s+|\s+$//g; return $s; }