David Cantrell <[EMAIL PROTECTED]> writes:

> If I have nest maps, like so ...
>
> map { map { foo } bar }
>
> is there any (elegant) way of getting at the outer map's idea of what $_
> is from within the inner map?  I'd rather not use a temporary variable
> if at all possible.

You can't get away without a temporary variable. And if you need to be
able to write back to the outer $_ it gets a little trickier, but this
should work:

  map { our *outer = \$_; ... ; map { foo } bar }

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to