I’ve been trying to figure out how to pass values to methods and return values back to the caller in Java.
sub gar
{
$in = $_[0];
$out = "gar gar gar $in gar gar gar";
return( $out );
}
and then every time I want to surround a string in gars I would just do something like:
$newgarstring = gar( $stringtobegarred );
print "$newgarstring\n";
Now it’s occurring to me that maybe this is a … Read the rest