in reply to Returning string and numerical data types from subroutines

return "some error string" but false;
Er, not in Perl 5. There's some kind of "property" module, but I don't think you can make it interact with the bool tests.

I like using die for failure, return status code for OK.

Or, package up your different kinds of values into a class and always return an instance of that. So, you can have your string and still be false, after all!

—John