develooper Front page | perl.perl6.language | Postings from July 2005

Re: &say's return value

Thread Previous | Thread Next
Larry Wall
July 30, 2005 09:36
Re: &say's return value
Message ID:
On Sat, Jul 30, 2005 at 09:25:12AM -0700, chromatic wrote:
: On Sat, 2005-07-30 at 14:56 +0300, Gaal Yahas wrote:
: > (This introduces a potential semipredicate problem when looking at the
: > return value of a printed "0" or "" while not using "fatal", but the
: > code can use a defined guard.)
: I don't know if returning the printed string is the right approach, but
: would returning '$string but true' avoid the semipredicate problem?

I don't see any reason to return the string at all.  It's almost never
wanted, and you can always use .= or monkey but.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About