Skip to content

Commit

Permalink
Pod::Html: assign directly to array ref
Browse files Browse the repository at this point in the history
... rather than to the array which is referenced.  (Corrected response
to rjbs comment in
#18977 (comment))
  • Loading branch information
jkeenan committed Aug 14, 2021
1 parent bc4a9d8 commit c0ac281
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/Pod-Html/lib/Pod/Html.pm
Expand Up @@ -324,7 +324,9 @@ sub init_globals {
sub process_options {
my ($globals, $opts) = @_;

@{$globals->{Podpath}} = split(":", $opts->{podpath}) if defined $opts->{podpath};
$globals->{Podpath} = (defined $opts->{podpath})
? [ split(":", $opts->{podpath}) ]
: [];

$globals->{Backlink} = $opts->{backlink} if defined $opts->{backlink};
$globals->{Cachedir} = unixify($opts->{cachedir}) if defined $opts->{cachedir};
Expand Down

0 comments on commit c0ac281

Please sign in to comment.