Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re2 (-l): I don't use printf enough

by jmcnamara (Monsignor)
on Oct 23, 2003 at 13:38 UTC ( #301579=note: print w/replies, xml ) Need Help??


in reply to Re2 (-l): I don't use printf enough
in thread I don't use printf enough


I like -l but wish that there was a way to selectively counter-act it

Here is one way:

#!/usr/bin/perl -wl print "aaa"; { local $\; print "bbb"; } print "bbb"; print "ccc"; __END__ Prints: aaa bbbbbb ccc

--
John.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2016-09-28 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (538 votes). Check out past polls.