in reply to Introspecting type informations?

Its where it belongs?

$ perl -MO=Concise -e "my DouBloon $x; print $x" No such class DouBloon at -e line 1, near "my DouBloon" -e had compilation errors. 8 <@> leave[1 ref] KP/REFC ->(end) 1 <0> enter ->2 2 <;> nextstate(main 1 -e:1) :{ ->3 - <1> ex-rv2sv K/1 ->4 3 <#> gvsv[*x] ->4 4 <;> nextstate(main 1 -e:1) :{ ->5 7 <@> print K ->8 5 <0> pushmark ->6 - <1> ex-rv2sv K/1 ->7 6 <#> gvsv[*x] ->7 $ perl -MO=Concise,-src -e "my DouBloon $x; print $x" No such class DouBloon at -e line 1, near "my DouBloon" -e had compilation errors. 8 <@> leave[1 ref] KP/REFC ->(end) 1 <0> enter ->2 # 1: -src not supported for -e 2 <;> nextstate(main 1 -e:1) :{ ->3 - <1> ex-rv2sv K/1 ->4 3 <#> gvsv[*x] ->4 # 1: -src not supported for -e 4 <;> nextstate(main 1 -e:1) :{ ->5 7 <@> print K ->8 5 <0> pushmark ->6 - <1> ex-rv2sv K/1 ->7 6 <#> gvsv[*x] ->7

Replies are listed 'Best First'.
Re^2: Introspecting type informations?
by LanX (Saint) on Aug 04, 2019 at 10:23 UTC
    As already mentioned, the type must be an already defined package. Hence your compilation errors.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Heh. Its not an opcode. The warning is parse/toke. Dont expect concise to talk about it.
        > The warning is parse/toke.

        The fatal error is correct, because your code is broken.

        Read again peachy!

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice