Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove & from subroutine calls in examples

  • Loading branch information...
commit a33485788a02948a7e227a6182268c6a85dfd28c 1 parent 36d2e0c
@mauke mauke authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/perlfaq5.pod
  2. +1 −1  lib/perlfaq8.pod
View
2  lib/perlfaq5.pod
@@ -1373,7 +1373,7 @@ numeric descriptor as with C<MHCONTEXT> above. But if you really have
to, you may be able to do this:
require 'sys/syscall.ph';
- my $rc = syscall(&SYS_close, $fd + 0); # must force numeric
+ my $rc = syscall(SYS_close(), $fd + 0); # must force numeric
die "can't sysclose $fd: $!" unless $rc == -1;
Or, just use the fdopen(3S) feature of C<open()>:
View
2  lib/perlfaq8.pod
@@ -585,7 +585,7 @@ Perl source with L<Inline::C>.
Historically, these would be generated by the L<h2ph> tool, part of the
standard perl distribution. This program converts C<cpp(1)> directives
in C header files to files containing subroutine definitions, like
-C<&SYS_getitimer>, which you can use as arguments to your functions.
+C<SYS_getitimer()>, which you can use as arguments to your functions.
It doesn't work perfectly, but it usually gets most of the job done.
Simple files like F<errno.h>, F<syscall.h>, and F<socket.h> were fine,
but the hard ones like F<ioctl.h> nearly always need to be hand-edited.
Please sign in to comment.
Something went wrong with that request. Please try again.