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);
In reply to Configuring module by import keyword by zoul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |