Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Why will v-strings be deprecated

by Dietz (Curate)
on Jan 05, 2006 at 17:16 UTC ( #521281=note: print w/ replies, xml ) Need Help??


in reply to Re: Why will v-strings be deprecated
in thread Why will v-strings be deprecated

And while you can use print v10 to print a newline, you can't use it to print two newlines (as opposed to one string with two newlines):
print v10; # prints newline. print v10, v10; # "No comma allowed after filehandle"

For this purpose the following works:

print v10 x 2; # prints 2 newlines
Or even:
print v10 x 1, v10; # also prints 2 newlines


Comment on Re^2: Why will v-strings be deprecated
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-05 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls