On Wed, 16 May 2001 13:49:42 +0200, Carl Johan Berglund wrote:

>sub show {print "6"}
>print "Perl ${show()}\n";
>
>(That prints "6Perl", not "Perl 6".)
>
>If you want to call the subroutine in the middle of the string, you 
>should make it _return_ something, not print it.

This person obviously expects a pipe effect, i.e. capturing of the
"printed" output.

Should Perl6 provide one? Is print() really easier to grasp, than
'return $buffer', with possibly lots of '$buffer.=$append' in the sub?
Actually, yes, the latter is annoying.

-- 
        Bart.

Reply via email to