Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Anyone using Attribute::Default from CPAN?

by moritz (Cardinal)
on Jun 05, 2008 at 14:28 UTC ( [id://690445]=note: print w/replies, xml ) Need Help??


in reply to Anyone using Attribute::Default from CPAN?

I don't know what went wrong, but you have another alternative. You can use Exporter without inheriting from it:
package Co; use Exporter qw(import); our @EXPORT_OK = qw(f); ...

Replies are listed 'Best First'.
Re^2: Anyone using Attribute::Default from CPAN?
by rovf (Priest) on Jun 05, 2008 at 14:41 UTC
    Thank you for this suggestion, but this doesn't work either: Though I don't get any error message, the default argument is not supplied to the function. :-(
    -- 
    Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2024-04-25 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found