On Sat, 8 Nov 2014 17:48:31 +0200 Shlomi Fish <shlo...@shlomifish.org> wrote:
> The correct syntax is simply (untested): > > my $foo = "MyFoo::${pgm}Bar"->new; FYI: That is called a symbolic reference. For more information, see `perldoc perlref` and search for /Symbolic references/ BTW, symbolic references are not considered good practice. But if you need them, you need them. -- Don't stop where the ink does. Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/