my $error = " "; mylib::myfunction($error); print $error;