More Special Variables in Perl: Outputs
Keep It Moving
![]() |
$| If this is set to a non-zero value, it forces an immediate buffer flush, and then a flush after every write or print. The default is zero, which means some buffering is done. If you're writing to a file, you're not likely to be too worried about this, but if you're writing to a pipe or a socket, you may want to be sure your output doesn't wait around.
$, This variable sets what print outputs between the elements that are passed in to it. By default it's undefined. So, this code:
print "1", "2", "3", "n";
{
local $, = " ";
print "1", "2", "3", "n";
}
will output...
Read the rest of this article at ServerWatch.

Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.