That way, you don't use globals to pass to your subs, and you get variable interpolation, as '$var in single quotes' doesn't get expanded.sub reality_test { do { my $testme=shift; #do tests print "$testme was less than allowed\n" if test fails; } while(@_); }
(argh, Opera managed to munge that a bit. corrected)
--
Me spell chucker work grate. Knead grandma chicken.
In reply to Re: Can Perl add single quotes?
by yakko
in thread Can Perl add single quotes?
by tenya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |