Re: need some help using strict??
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Fri, 27 Apr 2007 17:04:50 -0700
On 4/27/07, FamiLink Admin <webmaster@xxxxxxxxxxxx> wrote:
I am trying to verify a credit card number format with the following:
(below) but I am getting errors like:
Global symbol "%r" requires explicit package name at ./modmember.cgi line
681.
This is because, under 'use strict', you must declare %r in some way;
you can't simply start using it unexpectedly on line 681. The typical
way to fix this is to locate the logical beginning of that variable's
scope and add a line like this:
my(%r, $any_others);
Now you've declared the variables %r and %any_others you need for that
scope, so you won't surprise Perl and get those "requires explicit
package name" messages.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
.
- References:
- need some help using strict??
- From: FamiLink Admin
- need some help using strict??
- Prev by Date: need some help using strict??
- Next by Date: Help: Perl Module Installation Issue(s)
- Previous by thread: need some help using strict??
- Next by thread: Re: need some help using strict??
- Index(es):
Relevant Pages
|