In linux.debian.maint.perl, Damyan Ivanov <[EMAIL PROTECTED]> writes: > Ionel Mugurel Ciobica wrote:
>> bucovina# /var/www/cgi-bin/awstats.pl -config=bucovina.chem.tue.nl -update -output >> -staticlinks -lang=ro >> Bizarre copy of ARRAY in aassign at /var/www/cgi-bin/awstats.pl line 115. >> Exit 255 >> Line 115 is criptic to me: >> my @OnlyFiles = my @SkipDNSLookupFor = my @SkipFiles = my @SkipHosts = >> (); That's bizarre Perl... I have no idea what the scoping of those my declarations should really be in that line. In general, one should never see a "my" on the right hand side of an expression. > Change the above into these two lines: > my( @OnlyFiles, @SkipDNSLookupFor, @SkipFiles, @SkipHosts ); > @OnlyFiles = @SkipDNSLookupFor = @SkipFiles = @SkipHosts = (); This is entirely equivalent to just: my (@OnlyFiles, @SkipDNSLookupFor, @SkipFiles, @SkipHosts); The initialization is extraneous. -- Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]