in reply to Re: String adding
in thread String adding

unpack('A2' x (length($hex) / 2), $hex);

I'd rewrite that as

unpack('(A2)*', $hex);

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^3: String adding
by ikegami (Patriarch) on Nov 11, 2005 at 21:14 UTC
    That fails in 5.6.x. The parens were added to pack in 5.8.0