sub Update { my $appeasy = shift; # your CGI::AppEasy object .... return qq(

update successful

) # or whatever }