in reply to how to return info from functions

If you can guarantee methodfunction() will not return either "0", 0, or the empty string "", then you can do:
{ rollback( methodfunction() || last ) }
But seriously, declaring a variable up-front
my $variable = methodfunction(); rollback($variable) if defined $variable;
is a good thing because it is clear.