Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by karlgoethebier (Parson)
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1083222]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-10-01 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (575 votes). Check out past polls.