in reply to Re^2: Transform Sequence Problem
in thread Transform Sequence Problem

Thanx for testing it out.

Though I'm not sure what you tried to achieve in 'fea_*()'

In sub { map {$_ = $_ + 1} @_ }; you are changing the array alias in place but effectively only returning the result from map.

So whats the intended benefit?

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^4: Transform Sequence Problem
by roboticus (Chancellor) on Jun 22, 2013 at 02:52 UTC

    LanX:

    There's no benefit at all. I was thinking along the lines of testing access speed, and then got to playing around with edit in place without actually realizing that destroying the original and *also* returning a copy of the destroyed array was a worthless enterprise.

    Oh, well, at least I had fun toying around with it.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.