zoul has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is to combine these two lines into one by doing something like this:use Auth 'check_auth'; check_auth();
The Auth module would then know that it should check the authentication cookie immediately. The question is, how do I “detect” the qw(-auth_only) part in the Auth module?use Auth qw(-auth_only);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Configuring module by import keyword
by moritz (Cardinal) on Sep 03, 2008 at 17:37 UTC | |
by zoul (Novice) on Sep 04, 2008 at 06:44 UTC |