Skip to content

Commit

Permalink
Fix a couple of Perl::Critic warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Pedro Oliveira committed Nov 19, 2013
1 parent c2d6630 commit aa2960f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wakeonlan
Expand Up @@ -89,8 +89,8 @@ sub process_file {
my $filename = shift;
my ($hwaddr, $ipaddr, $port);

open (F, "<$filename") or die "open : $!";
while(<F>) {
open (my $FILE, '<', $filename) or die "open : $!";
while(<$FILE>) {
next if /^\s*#/; # ignore comments
next if /^\s*$/; # ignore empty lines

Expand All @@ -99,7 +99,7 @@ sub process_file {

wake($hwaddr, $ipaddr, $port);
}
close F;
close $FILE;
}


Expand Down

0 comments on commit aa2960f

Please sign in to comment.