Sys-Binmode
view release on metacpan or search on metacpan
no Sys::Binmode;
system 'echo', $foo; # nasal demons
}
# AFFECTED BUILT-INS
- `exec`, `system`, and `readpipe`
- `do` and `require`
- File tests (e.g., `-e`) and the following:
`chdir`, `chmod`, `chown`, `chroot`, `ioctl`,
`link`, `lstat`, `mkdir`, `open`, `opendir`, `readlink`, `rename`,
`rmdir`, `stat`, `symlink`, `sysopen`, `truncate`,
`unlink`, `utime`
- `bind`, `connect`, `setsockopt`, and `send` (last argument)
- `syscall`
## Omissions
- `crypt` already does as Sys::Binmode would make it do.
- `select` (the 4-argument one) has the bug that Sys::Binmode fixes,
lib/Sys/Binmode.pm view on Meta::CPAN
=head1 AFFECTED BUILT-INS
=over
=item * C<exec>, C<system>, and C<readpipe>
=item * C<do> and C<require>
=item * File tests (e.g., C<-e>) and the following:
C<chdir>, C<chmod>, C<chown>, C<chroot>, C<ioctl>,
C<link>, C<lstat>, C<mkdir>, C<open>, C<opendir>, C<readlink>, C<rename>,
C<rmdir>, C<stat>, C<symlink>, C<sysopen>, C<truncate>,
C<unlink>, C<utime>
=item * C<bind>, C<connect>, C<setsockopt>, and C<send> (last argument)
=item * C<syscall>
=back
t/filesys.t view on Meta::CPAN
ok( defined(-S _get_path_up()), '-S with upgraded string' );
ok( defined(-b _get_path_up()), '-b with upgraded string' );
ok( defined(-c _get_path_up()), '-c with upgraded string' );
ok(
chmod( 0644, _get_path_up()),
'chmod with upgraded string',
);
ok(
chown( -1, -1, _get_path_up()),
'chown with upgraded string',
);
SKIP: {
skip "No link() on $^O", 1 if !$Config{'d_link'};
ok(
link( _get_path_up(), _get_path_up() . '-link' ),
'link with upgraded string',
);
}
( run in 0.738 second using v1.01-cache-2.11-cpan-5511b514fd6 )