use constant DEBUG => do { my %dlv = map /^(.+?)(?:=(\d+))?$/, split /,/, $ENV{DEBUG} || ''; $dlv{(__PACKAGE__)} || exists $dlv{(__PACKAGE__)} || $dlv{all} || exists $dlv{all}; };
Makeshifts last the longest.
In reply to Re^3: Poor man's logging
by Aristotle
in thread Poor man's logging
by adrianh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |