Skip to content

Commit

Permalink
silence qw() paren warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanez committed Jan 25, 2012
1 parent cf414d2 commit 19ebfcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/POE/Component/Supervisor/Handle/Proc.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ sub _wrapped_program {
return $program; return $program;
} }


foreach my $event qw(stdout stderr stdin) { foreach my $event (qw(stdout stderr stdin)) {
my $cb_name = "${event}_callback"; my $cb_name = "${event}_callback";
event $event => sub { event $event => sub {
if ( my $cb = $_[OBJECT]->$cb_name ) { if ( my $cb = $_[OBJECT]->$cb_name ) {
Expand Down Expand Up @@ -247,7 +247,7 @@ event _close_stdin => sub {
} }
}; };


foreach my $sig qw(term kill) { foreach my $sig (qw(term kill)) {
my $SIG = uc($sig); my $SIG = uc($sig);


my $event = "_${sig}_loop"; my $event = "_${sig}_loop";
Expand Down
2 changes: 1 addition & 1 deletion t/04_global_restart_policy.t
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ my $mid = int( ($n + 1) / 2 );


my @classes = qw(Proc Session); my @classes = qw(Proc Session);
foreach my $class ( @classes, undef, undef ) { foreach my $class ( @classes, undef, undef ) {
foreach my $policy qw(one all rest) { foreach my $policy (qw(one all rest)) {
my %pids; my %pids;


my ( $supervisor, $session ); my ( $supervisor, $session );
Expand Down

0 comments on commit 19ebfcc

Please sign in to comment.