The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

    Variable::Declaration::Info - Information about variables

SYNOPSIS

    use Variable::Declaration;
    use Types::Standard -types;

    let Str $str = "message";

    my $info = Variable::Declaration::info \$str;
    $info->type; # Str

DESCRIPTION

Variable::Declaration::info returns objects of this class to describe variables. The following methods are available:

$info->type

type of variable

$info->attributes

attributes of variable

$info->declaration

variable is defined by this declaration

SEE ALSO

Variable::Declaration