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

Re: &say's return value

Thread Previous | Thread Next
From:
chromatic
Date:
July 30, 2005 09:25
Subject:
Re: &say's return value
Message ID:
1122740712.27314.137.camel@localhost
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?

-- c


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About