in reply to Re: cool way of manipulating array elements
in thread cool way of manipulating array elements

thank you! works great!
  • Comment on Re^2: cool way of manipulating array elements

Replies are listed 'Best First'.
Re^3: cool way of manipulating array elements
by GrandFather (Saint) on Aug 30, 2011 at 10:06 UTC

    If you want to modify the original array contents then you could modify BioLion's code thus:

    $_ *= 2 for grep {looks_like_number($_)} @array;
    True laziness is hard work