Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How to call a perl function without its context?by anonymized user 468275 (Curate) |
on Jul 28, 2015 at 09:58 UTC ( [id://1136577]=note: print w/replies, xml ) | Need Help?? |
I agree with browserUK on this one, but would add also: - use 'use strict;' in your sources, to ensure no auto-declarations are allowed. - avoid global variables where possible and use 'use constant;' for the cases where you want a global constant like pi to be immutable and ubiquitously available. - use classes (and possibly Moo) to reduce the need for randomly scoped identifiers and to manage the scope and access to attributes. One world, one people
In Section
Seekers of Perl Wisdom
|
|