Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 about the Monastery: (7)
As of 2014-09-30 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls