On Wed, Mar 13, 2002 at 01:27:08PM -0500, Nikola Janceski wrote: > Here is my question, $follow and $follow_skip I want to be a global variable > in the scope of the perl script I am running. > If I put a my in front of the declaration wouldn't it only be in the scope > of BEGIN or would it be in the scope of the entire script? How can I declare > it so that use strict; and use warnings; won't complain?
If you put the declaration within the BEGIN block, yes, it would be scoped to just that block. So place the declaration outside of the BEGIN block. my($follow, $follow_skip); BEGIN { ... } Also, use strict is the only thing that complains about out-of-scope variable usage, and it's more than just a complaint. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]