Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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 (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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2015-07-06 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls