# [[[ PREPROCESSOR ]]] # <<< PARSE_ERROR: 'ERROR ECOPAPL02' >>> # <<< PARSE_ERROR: 'Global symbol "$TYPED_PIE" requires explicit use RPerl; package name' >>> # [[[ HEADER ]]] package RPerl::Test::Constant::Class_00_Bad_12; use strict; use warnings; our $VERSION = 0.001_000; # [[[ OO INHERITANCE ]]] use parent qw(RPerl::Test); use RPerl::Test; # [[[ CONSTANTS ]]] ## no critic qw(ProhibitConstantPragma ProhibitMagicNumbers) # USER DEFAULT 3: allow constants use constant PI => my number $TYPED_PI = 3.141_59; use constant PIE => string $TYPED_PIE = 'pecan'; # [[[ OO PROPERTIES ]]] our hashref $properties = { empty_property => my integer $TYPED_empty_property = 2 }; # [[[ SUBROUTINES & OO METHODS ]]] sub empty_method { { my void::method $RETURN_TYPE }; return 2; } 1; # end of class