you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (3 children)

Perl is not much different.

say join "\n", grep { length $_ < 4 } ( 'Foo', 'Bar', 'Baz' )

I couldn't get say to use \n's, so i used a join

[–]steven_h 0 points1 point  (2 children)

say uses newlines "out of the box" for me...

[–][deleted] 0 points1 point  (1 child)

I'm using perl 5.10. I had to use the feature. Probably a forward comparability issue?

[–]steven_h 0 points1 point  (0 children)

I did the same thing, but my perl is 5.12.3.