projects
/
openbsd-goodies.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9c571
)
Don't use keys on a hashref
master
author
Steven McDonald
<steven@steven-mcdonald.id.au>
Sat, 8 Nov 2014 12:21:17 +0000
(23:21 +1100)
committer
Steven McDonald
<steven@steven-mcdonald.id.au>
Sat, 8 Nov 2014 12:21:17 +0000
(23:21 +1100)
Older Perls don't handle this properly, and it'd be nice to be able to
use this on older versions of OpenBSD.
devtree/devtree
patch
|
blob
|
history
diff --git
a/devtree/devtree
b/devtree/devtree
index adadaae84ed7d5dbdeb9a620bc9a31a82020c550..ed094b72ce8e9d4e3b5a8004ecba57d22b32f0f7 100755
(executable)
--- a/
devtree/devtree
+++ b/
devtree/devtree
@@
-47,7
+47,7
@@
sub print_tree {
my $prev_indent = shift || "";
my $indent = $prev_indent . " |";
my $count = 0;
- my @keys = keys $tree;
+ my @keys = keys
%
$tree;
for (sort @keys) {
my $name = $_;