Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Anyone using Attribute::Default from CPAN?

by rovf (Priest)
on Jun 05, 2008 at 14:12 UTC ( [id://690437]=perlquestion: print w/replies, xml ) Need Help??

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"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://690437]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found