in reply to How do I pass variables to my subroutines?

Well, for a start, you can use 'scalar reverse $word' to reverse a word.
If you were using '&reverse_word' as simply an example, then I'd recommend reading up on shift and return;
sub reverse_word() { my $word = shift; my $reversedword = scalar reverse $word; return $reversedword; }
or, more consisely:
sub reverse_word() { return scalar reverse shift; }

Originally posted as a Categorized Answer.