Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Found a typo! #1

Merged
merged 1 commit into from

2 participants

@hercynium

I was looking at your code, and found this little typo which might cause some unexpected bugs!

Great module, by the way! I've written this same kind of code so many times I can't believe I haven't already written the same module!

@plicease plicease merged commit 66ad069 into from
@plicease
Owner

Thanks! I've incorporated your changes (plus a tweak to avoid a warning) and added a test which I should have written in the first place. The changes will be in version 0.4 should be in CPAN shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 2, 2012
  1. @hercynium

    Update lib/AnyEvent/Open3/Simple.pm

    hercynium authored
    Fixed typo
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/AnyEvent/Open3/Simple.pm
View
2  lib/AnyEvent/Open3/Simple.pm
@@ -109,7 +109,7 @@ sub new
{
state $default_handler = sub { };
my $class = shift;
- my $args = ref $_[0] eq 'HSAH' ? shift : { @_ };
+ my $args = ref $_[0] eq 'HASH' ? shift : { @_ };
my %self;
$self{$_} = $args->{$_} // $default_handler for qw( on_stdout on_stderr on_start on_exit on_signal on_fail on_error );
bless \%self, $class;
Something went wrong with that request. Please try again.