Help for this page

Select Code to Download


  1. or download this
        sub get() { 'a'; }
        use constant get_constant=> 'a';
    
  2. or download this
        sub get { 'a'; }
        sub get { return 'a'; }
        sub get() { return 'a'; }
    
  3. or download this
    package class;
    use strict;
    ...
        get_constant => sub { my $a= $object->get_constant; },
        get_constant__paren => sub { my $a= $object->get_constant(); },
    };