On 4/27/07, FamiLink Admin <[EMAIL PROTECTED]> 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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/