Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: How to print a newline in oneliners ...

by karlgoethebier (Prior)
on Apr 22, 2014 at 19:25 UTC ( #1083222=note: print w/replies, xml ) Need Help??

in reply to Re: How to print a newline in oneliners ...
in thread How to print a newline in oneliners ...

"Why don't you do everything in Perl?"

Thank you very much Laurent for answering.

Sure, you are right.

But the bash code on the left side of the pipe (for i in {0..9}; do echo $i; done) wasn't the "essential" part of the question.

The question was just about adding a newline to my Perl output.

As i mentioned in my OP, i sometimes miss some "essentials".

In this case the -l switch.

To be honest, i wondered many times why some folks use -l in oneliners.

In other words: just yet another D'oh.

Best regards (et à bientôt), Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^3: How to print a newline in oneliners ...
by Laurent_R (Abbot) on Apr 22, 2014 at 22:41 UTC
    I think most of us sometimes miss some "essentials". At least, this includes me...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1083222]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2017-09-24 22:33 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (275 votes). Check out past polls.