in reply to $foo = "Foo::Bar"; $foo->new() works?
Instead of a class name or an object reference, you can also use any expression that returns either of those on the left side of the arrow.
So the following statement is valid:
and so is the following:Critter->find("Fred")->display("Height", "Weight");
my $fred = (reverse "rettirC")->find(reverse "derF");
|
|---|