Get rid of local

This commit is contained in:
Jamie Cameron
2009-02-27 00:39:40 +00:00
parent cd2c80f155
commit 706db74fca

View File

@@ -71,15 +71,15 @@ Returns the unique elements of some array, passed as its parameters.
=cut
sub unique
{
local(%found, @rv, $e);
foreach $e (@_) {
my (%found, @rv);
foreach my $e (@_) {
if (!$found{$e}++) { push(@rv, $e); }
}
return @rv;
}
if (!$done_web_lib_funcs) {
local $script = -r '../web-lib-funcs.pl' ? '../web-lib-funcs.pl'
my $script = -r '../web-lib-funcs.pl' ? '../web-lib-funcs.pl'
: 'web-lib-funcs.pl';
do $script;
}