in reply to Re: Concise foreach expression
in thread Concise foreach expression

That produces different results from the OP's code. Yours prints out elements of the @names array, but the OP prints out $path_name multiple times.

Replies are listed 'Best First'.
Re^3: Concise foreach expression
by hdb (Monsignor) on Aug 29, 2014 at 12:20 UTC

    Thanks! I did really see what I wanted to see and did not read carefully enough!

      > I did really see what I wanted to see

      don't bother, you saw what the OP meant ... :)

      Cheers Rolf

      (addicted to the Perl Programming Language and ☆☆☆☆ :)