in reply to How to correct my error in my code which uses Rcs.pm

' - quoted strings do not interpolate $variables. You'll want to use " (double quotes):
$rcs->co("-r $version");

See perldata for more info.