Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      print("@_\nEND\n");
    }
    f('abc'); # 2nd argument defaults to xyz
    
  2. or download this
    # This is file Co.pm
    package Co;
    ...
      print("@_\nEND\n");
    }
    1;
    
  3. or download this
    # This is file cotest.pl
    use warnings;
    use strict;
    use Co qw(f);
    f('abc');
    
  4. or download this
    # This is file Co1.pm
    package Co1;
    ...
      print("@_\nEND\n");
    }
    1;
    
  5. or download this
    # This is file cotest1.pl
    use warnings;
    use strict;
    use Co qw(f);
    f('abc');
    
  6. or download this
    Invalid CODE attribute: Default(undef,"xyz") at Co1.pm
    
  7. or download this
    # This is Co2.pm
    package Co2;
    ...
      print("@_\nEND\n");
    }
    1;
    
  8. or download this
    use warnings;
    use strict;
    use Co2 qw(f);
    f('abc');
    
  9. or download this
    Can't locate object method "_ATTR_CODE_Default" via package "Co2"