Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: can has ELI5 namespace::autoclean pls?

by Ea (Chaplain)
on Feb 15, 2019 at 16:24 UTC ( #1229967=note: print w/replies, xml ) Need Help??


in reply to Re: can has ELI5 namespace::autoclean pls?
in thread can has ELI5 namespace::autoclean pls?

So other than providing a clean API -- for your first point, it could also help to prevent those hard to spot bugs when you inherit (or use a role) with the same name as that utility function you imported as a one-off. I'm thinking of action at a distance.

I'm also not great at remembering which keywords are reserved in which problem domains.

oohhh

Just tried your code and the second example is insidious. I can see the error thrown when I remove namespace::autoclean from your example, but when I do it in a module and run the test it passes, no error. For me, intermittent errors are the worst. I think ns::ac just became part of my boilerplate.

Ea

Sometimes I can think of 6 impossible LDAP attributes before breakfast.

Mojoconf was great!

  • Comment on Re^2: can has ELI5 namespace::autoclean pls?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-11-28 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?