[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Is this fun? What's going on?



Steve Willer wrote:
> 
> foreach (@INC) { print print "\n" }
> 
> I don't think I've ever used the return of "print" before. Perhaps it's
> fun...but I don't know what you could use this for.

I use it sometimes like this:

	exit print "Error";

rather than die, if die is being used for exception-raising, and I
really just want to exit.

John Porter


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe