projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd2c80f
)
Get rid of local
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 27 Feb 2009 00:39:40 +0000
(
00:39
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 27 Feb 2009 00:39:40 +0000
(
00:39
+0000)
web-lib.pl
patch
|
blob
|
history
diff --git
a/web-lib.pl
b/web-lib.pl
index
27d8f99
..
e866199
100755
(executable)
--- a/
web-lib.pl
+++ b/
web-lib.pl
@@
-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;
}