fix the bird plugin to work with perl 5.28
This commit is contained in:
parent
375d3643ec
commit
4a25b7de16
|
@ -62,8 +62,8 @@ sub get_stats {
|
|||
) or die $!;
|
||||
|
||||
my ($protocol,$name);
|
||||
while (<$bird_ctl>) {
|
||||
given($_) {
|
||||
while (my $var = <$bird_ctl>) {
|
||||
given($var) {
|
||||
when (/1002-(\w+)\s+(\w+)\s+.*/) {
|
||||
($name, $protocol) = ($1,$2);
|
||||
next unless $protocol ~~ $protocols;
|
||||
|
|
Loading…
Reference in New Issue