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.
- Re: Damian Conway's Exegesis 2 Damian Conway
- Re: Damian Conway's Exegesis 2 John Siracusa
- Re: Damian Conway's Exegesis 2 Bryan C . Warnock
- Re: Damian Conway's Exegesis 2 Simon Cozens
- Re: Damian Conway's Exegesis 2 Bryan C . Warnock
- Re: Damian Conway's Exegesis 2 Damian Conway
- 'is' and action at a distance Edward Peschko
- Re: Damian Conway's Exegesis 2 Ariel Scolnicov
- Re: Damian Conway's Exegesis 2 Nathan Torkington
- Re: Damian Conway's Exegesis 2 Carl Johan Berglund
- Re: Damian Conway's Exegesis 2 Bart Lateur
- Re: Damian Conway's Exegesis 2 Carl Johan Berglund
- Re: Damian Conway's Exegesis 2 Austin Hastings
- Re: Damian Conway's Exegesis 2 Simon Cozens
- Re: Damian Conway's Exegesis 2 Dan Sugalski
- Re: Damian Conway's Exegesis 2 Austin Hastings
- RE: Damian Conway's Exegesis 2 David Grove
- Re: Damian Conway's Exegesis 2 Mark Koopman
- Re: Damian Conway's Exegesis 2 Simon Cozens
- Re: Damian Conway's Exegesis 2 Tony Olekshy