Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 (Canon) 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 imbibing at the Monastery: (4)
As of 2017-11-22 05:56 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (315 votes). Check out past polls.