On Sat, 8 Nov 2014 17:48:31 +0200
Shlomi Fish <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to