Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2017-06-28 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (619 votes). Check out past polls.