Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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.


Comment on Re: Re2 (-l): I don't use printf enough
Download Code

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 cooling their heels in the Monastery: (9)
As of 2014-10-25 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls