my $sig_handler = sub {
my ($called_sig_name, @sig_param) = @_;
- # $s is a closure refering to real signal name
+ # $s is a closure referring to real signal name
# for which this handler is being installed.
# it is used to distinguish between
# real signal handlers and aliased signal handlers
# ABRT and IOT)
#
# initial signal handler for aliased signal
- # calles some other signal handler which
+ # calls some other signal handler which
# should not execute the same handler_code again
if ($called_sig_name eq $signal_name) {
$handler_code->($signal_name);
#
# defined $child_pid_pid means child's child
# has not died but nobody is waiting for it,
- # killing it brutaly.
+ # killing it brutally.
#
if ($child_child_pid) {
kill_gently($child_child_pid);
$kidout->autoflush(1) if UNIVERSAL::can($kidout, 'autoflush');
$kiderror->autoflush(1) if UNIVERSAL::can($kiderror, 'autoflush');
- ### add an epxlicit break statement
+ ### add an explicit break statement
### code courtesy of theorbtwo from #london.pm
my $stdout_done = 0;
my $stderr_done = 0;
Carp::carp(loc("No such FD: '%1'", $name)), next );
### MUST use the 2-arg version of open for dup'ing for
- ### 5.6.x compatibilty. 5.8.x can use 3-arg open
+ ### 5.6.x compatibility. 5.8.x can use 3-arg open
### see perldoc5.6.2 -f open for details
open $glob, $redir . fileno($fh) or (
Carp::carp(loc("Could not dup '$name': %1", $!)),
Carp::carp(loc("No such FD: '%1'", $name)), next );
### MUST use the 2-arg version of open for dup'ing for
- ### 5.6.x compatibilty. 5.8.x can use 3-arg open
+ ### 5.6.x compatibility. 5.8.x can use 3-arg open
### see perldoc5.6.2 -f open for details
open( $fh, $redir . fileno($glob) ) or (
Carp::carp(loc("Could not restore '$name': %1", $!)),
### can_run tests
{
ok( can_run("$^X"), q[Found 'perl' in your path] );
- ok( !can_run('10283lkjfdalskfjaf'), q[Not found non-existant binary] );
+ ok( !can_run('10283lkjfdalskfjaf'), q[Not found non-existent binary] );
}
{ ### list of commands and regexes matching output
}
}
- ### for each configuarion
+ ### for each configuration
for my $pref ( @Prefs ) {
local $IPC::Cmd::USE_IPC_RUN = !!$pref->[0];
{ my $buffer;
my $ok = run( command => $cmd, buffer => \$buffer );
- ok( $ok, "Ran '$pp_cmd' command succesfully" );
+ ok( $ok, "Ran '$pp_cmd' command successfully" );
SKIP: {
skip "No buffers available", 1
### special call to check that output is interleaved properly
{ my $cmd = [$^X, File::Spec->catfile( qw[src output.pl] ) ];
- ### for each configuarion
+ ### for each configuration
for my $pref ( @Prefs ) {
diag( "Running config: IPC::Run: $pref->[0] IPC::Open3: $pref->[1]" )
if $Verbose;
### test failures
-{ ### for each configuarion
+{ ### for each configuration
for my $pref ( @Prefs ) {
diag( "Running config: IPC::Run: $pref->[0] IPC::Open3: $pref->[1]" )
if $Verbose;