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