in reply to Re^3: What to test in a new module
in thread What to test in a new module

I usually prefer interpolation because I can see at a glance what the result will look like, so there is less mental work to do when reading it.

sprintf is a good middle ground between interpolation and concatenation. I sometimes use that when the variable names are long enough to interfere with the readability of interpolation.

my $signed_payload = $sig_head{'t'} . '.' . $self->{'payload'}; my $signed_payload = sprintf '%s.%s', $sig_head{'t'}, $self->{'payload +'};

Replies are listed 'Best First'.
Re^5: What to test in a new module
by jdporter (Paladin) on Jul 10, 2023 at 14:22 UTC

    Also:

    my $signed_payload = join '.', $sig_head{'t'}, $self->{'payload'};