On Wed, 6 Sep 2000, Bart Lateur wrote: > >Those are not the semantics of print. It returns true (1) if successful, and > >false (undef) otherwise. You cannot change that. If I write print "0", it > >bloody well shan't be returning false. > > Oh, why not? Does anybody actually *ever* check the return value of > print? I think it's not as if we'd break a lot of code. uh, what? you don't do much socket programming now, do you? sockets breaks all the time. Disks runs out of space while you write to files. and so on and so on. > Problem is: if you need defined() to see if the print was succesful, you > cannot return what was printed as well. It's one thing or the other. So > you cannot have it both ways. I really don't understand why you want to have what's printed. If you need it in a variable, you can just make the variable first and then print. - ask -- ask bjoern hansen - <http://www.netcetera.dk/~ask/> more than 70M impressions per day, <http://valueclick.com>
- RFC 39 (v3) Perl should have a print operator Perl6 RFC Librarian
- Re: RFC 39 (v3) Perl should have a print operator Tom Christiansen
- Re: RFC 39 (v3) Perl should have a print oper... Jon Ericson
- Re: RFC 39 (v3) Perl should have a print ... Nathan Wiger
- Re: RFC 39 (v3) Perl should have a pr... Bart Lateur
- Re: RFC 39 (v3) Perl should have... Jon Ericson
- Re: RFC 39 (v3) Perl should ... Nathan Wiger
- Re: RFC 39 (v3) Perl should have... Tom Christiansen
- Re: RFC 39 (v3) Perl should ... Bart Lateur
- Re: RFC 39 (v3) Perl sho... Tom Christiansen
- Re: RFC 39 (v3) Perl sho... Ask Bjoern Hansen
- Re: RFC 39 (v3) Perl sho... Bart Lateur
- Re: RFC 39 (v3) Perl sho... Chaim Frenkel
- Re: RFC 39 (v3) Perl sho... Ask Bjoern Hansen
- Re: RFC 39 (v3) Perl sho... Jonathan Scott Duff
- Re: RFC 39 (v3) Perl should have a pr... Tom Christiansen
- Re: RFC 39 (v3) Perl should have a print ... Tom Christiansen
- Re: RFC 39 (v3) Perl should have a pr... Jon Ericson
- Re: RFC 39 (v3) Perl should have... Tom Christiansen
- Re: RFC 39 (v3) Perl should have a print operator Bart Lateur
- Re: RFC 39 (v3) Perl should have a print oper... Jon Ericson