Hi,
I've decided to implement three methods in such a way that if there is an error within the module the function will return a string representing what went wrong and if a no error occurs then the function will return undef. My question is, in my script that calls the method, can I save the returned string somehow without saving it directly to a $variable?
I want to call a function called rollback() if the methodfunction() returns a defined string value (this string represents the error to be logged).
ex. rollback(string returned from methodfunction) if defined methodfunction();
where I can pass the string returned from the methodfunction() into the function called rollback()