Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: Transform Sequence Problem

by LanX (Bishop)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-02-20 01:37 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (266 votes). Check out past polls.