diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-08-29 23:14:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-08-29 23:14:26 +0200 |
commit | 8af5e433b8bbc0a3741882b08c1c97331fe8df05 (patch) | |
tree | d52dc305c7ad7502c9c42a982e1917a149a94c6c /bin/efa | |
parent | f0295359114d181fc063f269b3eb52d2221a97ec (diff) |
(Hopefully) fix addr: etc. handling. Thx penma.
Diffstat (limited to 'bin/efa')
-rwxr-xr-x | bin/efa | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -63,13 +63,13 @@ if (not (@from and @to)) { } for my $pair ( - [$from[1], \$from_type], - [$via[1] , \$via_type ], - [$to[1] , \$to_type ], + [\@from, \$from_type], + [\@via , \$via_type ], + [\@to , \$to_type ], ) { - next if (not defined $pair->[0]); + next if (not defined $pair->[0]->[1]); - if ($pair->[0] =~ s{ ^ (?<type> [^:]+ ) : \s* (?<target> .+ ) $ } + if ($pair->[0]->[1] =~ s{ ^ (?<type> [^:]+ ) : \s* (?<target> .+ ) $ } {$+{target}}x) { given($+{type}) { |