in reply to join program in one-liner

I'm wondering why $. doesn't reset when reading from <>, because this doesn't work:
perl -lne '$a[$.].=$_;END{print for@a}'

Replies are listed 'Best First'.
Re^2: join program in one-liner
by eric256 (Parson) on Aug 19, 2005 at 19:59 UTC

    Yea i was going to do that but had to contort it a bit for my one above.


    ___________
    Eric Hodges