in reply to create an object where type is a variable
output:#!/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;
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
|
|---|