I've written a one-liner that munges the contents of the clipboard using the PSCX cmdlets get-clipboard and out-clipboard. I needed to replace each block of whitespace with a comma. How could I eliminate the temporary variable $a?
$a = get-clipboard; $a -replace '\s+', ',' | out-clipboard
Thanks.