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:
Or even:print v10 x 2; # prints 2 newlines
print v10 x 1, v10; # also prints 2 newlines
In reply to Re^2: Why will v-strings be deprecated
by Dietz
in thread Why will v-strings be deprecated
by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |