in reply to Re^5: basic question:how to print a reversed array from STDIN
in thread basic question:how to print a reversed array from STDIN

Now I also cringe at the map in void context.

There's also a lack of visual distinction between list generation and list transformation.

s/^.// for grep { /^[abc]/ } @somewords;

Replies are listed 'Best First'.
Re^7: basic question:how to print a reversed array from STDIN
by brant_chen (Initiate) on Dec 05, 2008 at 03:53 UTC
    O, you guys are so kind and profound!
    Got it!
    Thank you!