$P1 = $P2.new( 'myattrib' => "Foo" )Create a new instance object from the class object. It takes an optional, slurpy, named list of attributes and values to initialize the object. Passing attribute names that weren't declared in the class is an error.
Is this functional yet, and if so, where does $P2 come from? I've tried 2 or 3 permutations, but end up with method new not found.
Thanks.