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

Re^4: On bad habits

by bart (Canon)
on Jun 22, 2005 at 11:50 UTC ( #468971=note: print w/replies, xml ) Need Help??


in reply to Re^3: On bad habits
in thread On bad habits

If i am going to use a newline frequently, i add the -l (dash elle) run switch
And if I want the effect locally, I set $\ (and optionally, $,) in a block, for example to print out a tab delimited text file:
{ local($\, $,) = ("\n", "\t"); print @fields; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2021-10-23 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?