On Jul 12, 2009, at 9:46 AM, Patrick R. Michaud wrote:
".?method" seems to work for me in Rakudo:

   $ cat x
   my $x = undef;
   say ($x.?foo).perl;

   $ ./perl6 x

This doesn't work when the variable is assigned to a typed container:

    #!/usr/bin/env perl6
    use v6;
    my Str $x = undef;
    say ($x.?comb).perl;

This gives a "Use of uninitialized value" warning when run.

-- Minimiscience

Reply via email to