After searching through the Perl Bookshelf CD, I have found that you can
declare a global and then use local() to change that value for a block
of code. I haven't found how to use a value from within a block of code
outside that block of code though. Is this possible? I'm sure I just
don't know what to search for in the bookshelf.
EXAMPLE:
========================================
while (my(@row) = $sth1->fetchrow_array)
{
my ($total) = $row[0];
print "Total Scanned:\t $total\n";
}
print "Total:\t $total\n";
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>