Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by karlgoethebier (Curate)
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»


Comment on Re^2: How to print a newline in oneliners ...
Select or Download Code
Re^3: How to print a newline in oneliners ...
by Laurent_R (Parson) 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 perusing the Monastery: (8)
As of 2014-10-25 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (138 votes), past polls