Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: Transform Sequence Problem

by LanX (Chancellor)
on Jun 20, 2013 at 22:34 UTC ( #1040034=note: print w/replies, xml ) Need Help??

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


    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.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040034]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-10-22 02:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.