Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: On bad habits

by bart (Canon)
on Jun 22, 2005 at 11:50 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found