in reply to Re^3: Dumb, non-question: How to return 'nothing'.
in thread Dumb, non-question: How to return 'nothing'.

Would be worthwhile to add carp "Iterator not called in list context" unless wantarray; so it can't be used improperly?

Replies are listed 'Best First'.
Re^5: Dumb, non-question: How to return 'nothing'.
by BrowserUk (Patriarch) on Jun 17, 2011 at 21:08 UTC

    Excellent notion. Thanks.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.