Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    say 'MyObj'->new('obj1')->string;
    say new MyObj('obj2')->string;
    
  2. or download this
    obj1
    obj2
    
  3. or download this
    obj1
    Undefined subroutine &main::MyObj called at ... line 9.