m_athias good evening! 18:20
is there some way to create objects from 'dynamic' class names? as in "my $class = 'Bar'; "Foo::$class".new();". 18:22
lizmat m: my $a = 'Date"; dd ::($a) 18:41
camelia ===SORRY!=== Error while compiling <tmp>
Unable to parse expression in single quotes; couldn't find final "'" (corresponding starter was at line 1)
at <tmp>:1
------> my $a = 'Date"; dd ::($a)⏏<EOL>
expecting any of:
lizmat m: my $a = "Date"; dd ::($a)
camelia Date
lizmat m: my $a = "Date"; dd ::($a).today
camelia Date.new(2022,1,27)
lizmat m_athias ^^
m_athias ah thanks! just found Foo::{$bar} also works. 18:52