in reply to passing parameters

Look at the documentation for quote operators that interpolate variables. As a side note, single quotes (') do not interpolate whereas double quotes(") do.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1