in reply to create an object where type is a variable

How weird, I didn't know..
#!/usr/bin/perl -w use Test::Simple 'no_plan'; use strict; use warnings; use CGI::Session; my $x = 'CGI::Session'; my $z = 'new'; my $y = $x->$z; ok($y,'instanced'); print STDERR $y->header;
output:
loot@moonshine dev# perl /tmp/test.pl
ok 1 - instanced
Set-Cookie: CGISESSID=71079ce5211b3e460f8924c780ff9c0b; 
Date: Tue, 11 Sep 2007 15:48:01 GMT
Content-Type: text/html; charset=ISO-8859-1

1..1