if ( $a > 0 ) {
"increasing, concave up";
} else {
"decreasing, concave down";
}
So the string for the correct answer depends upon the value of $a. Should we create a function that returns the string or directly incorporate this code for the correct answer? I am getting an error on directly replacing the code for the correct answer in place of " " in $mc->qa( " ", " ")
If we have to create a function that returns a string, what is the code for creating function in PERL?