in reply to Style question - Modify passed arged if void context?

That's pretty neat that wantarray tells you if it was a void context.

To address your concern ... I would say that's it's a neat idea to do that. Sorta like the entire discussion on whether unary operators should modify in place, if called in a void context.

As always, you gotta document, document, document.

*wanders off to think on how to use this neat-o-keen behavior*

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: Style question - Modify passed arged if void context?