Look at perlvar, especially the $" variable.
In reply to Re: Minor formatting oddity with pipes by Corion in thread Minor formatting oddity with pipes by dsheroh