in reply to "Dynamic" object creation.

use strict; use warnings; use CGI; my $blah = 'CGI'; my $new = $blah->new(); die $new; __END__ CGI=HASH(0x224f9c)

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: "Dynamic" object creation.
by tadamec (Beadle) on Jun 27, 2004 at 07:34 UTC

    Ergh.

    Test code that I used had the module name in double quotes instead of single quotes. Man, gotta quit programming when I'm so tired. I noticed later that my mistake wasn't interpolated vs. uninterpolated strings, but was the fact that I was trying to dereference a scalar (via $$ notation), rather than just using the value of the scalar in place of a module name.

    Thanks for the fix on my bonehead mistake.