Module *must* be a bareword
my $module = "CGI"; require $module;

That's an interesting bareword you use. ;-)


In reply to Re^2: Use with variable by tomhukins
in thread Use with variable by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":