Static variable problem
Apologies if this appears twice but I have not seen it and my sent
posts folder does not have a copy - but I would swear I hit send :-)
Please can someone explain why the following throws an error?
my $bar = 1;
my $a = shift;
print "$bar $a\n"; <== line 12
Use of uninitialized value in concatenation (.) or string at try.pl
$bar is private to foo - yes? So you can't initialize it?
|All times are GMT. The time now is 05:36 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.