in reply to Re^2: Need help with Pipingin thread Need help with Piping
For the sake of completeness: In Perl 6 the built-in way for this is simply:
$var = slurp \*STDIN;
This can also be done in Perl 5 by using the Perl6::Slurp module.