develooper Front page | perl.perl6.users | Postings from December 2022

When to use .new?

Thread Next
ToddAndMargo via perl6-users
December 1, 2022 04:28
When to use .new?
Message ID:
Hi All,

Why can I get away with

    my Str $x = "";

But I have to use .new here (an other places too)

    my $ppSession =;

Is there some rule I can follow that let me know
when I have to use .new and when I do not?
(I am getting tired of figuring it out the
hard way.)

Many thanks,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About