Commit 613c4623 authored by Mike Hibler's avatar Mike Hibler

Don't use implied $_ (@_) variable.

It can interfere with our caller if they are also using it!
parent 0f22833d
...@@ -608,8 +608,8 @@ sub TBPxelinuxConfig($;$) ...@@ -608,8 +608,8 @@ sub TBPxelinuxConfig($;$)
# already exists, see if it is set correctly # already exists, see if it is set correctly
if (-e "$nfile" && open(FD, "<$nfile")) { if (-e "$nfile" && open(FD, "<$nfile")) {
while (<FD>) { while (my $line = <FD>) {
if (/^ONTIMEOUT\s+(\S+)/) { if ($line =~ /^ONTIMEOUT\s+(\S+)/) {
if ($1 eq $action) { if ($1 eq $action) {
close(FD); close(FD);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment