Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: Transform Sequence Problem

by LanX (Canon)
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)

Comment on Re^3: Transform Sequence Problem
Select or Download Code
Re^4: Transform Sequence Problem
by roboticus (Canon) 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 wandering the Monastery: (9)
As of 2014-12-26 06:12 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (165 votes), past polls