Note the single quotes in the print statement.reality_test($test_me, $min_allowed, $max_allowed) sub reality_test { #test here #if the test fails print '$test_me was less than allowed'; }
In reply to Can Perl add single quotes? by tenya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |