X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlclib.pod;h=80e6194d1f56e942a6a12d9cebf25f9d098b85ca;hb=a801c63c4c283fdf8af1d9fbd7d3d89096ee73f6;hp=e2ae529237635ac71b9c4d8ca73370a782c10a78;hpb=f40a6c711beb7bdc0833c20793b9fa5333077213;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlclib.pod b/pod/perlclib.pod index e2ae529..80e6194 100644 --- a/pod/perlclib.pod +++ b/pod/perlclib.pod @@ -11,7 +11,7 @@ tends to reimplement or abstract standard library functions, so that we know exactly how they're going to operate. This is a reference card for people who are familiar with the C library -and who want to do things the Perl way; to tells them which functions +and who want to do things the Perl way; to tell them which functions they ought to use instead of the more normal C functions. =head2 Conventions @@ -44,12 +44,12 @@ C, C, C, etc. represent variables of their respective types. Instead of the F functions, you should use the Perl abstraction layer. Instead of C types, you need to be handling C -types; don't forget that with the new PerlIO layered IO abstraction, +types. Don't forget that with the new PerlIO layered I/O abstraction C types may not even be available. See also the C documentation for more information about the following functions: Instead Of: Use: - + stdin PerlIO_stdin() stdout PerlIO_stdout() stderr PerlIO_stderr() @@ -127,7 +127,7 @@ instead of raw C strings: strncat(dt, src) sv_catpvn(sv, s) sprintf(s, fmt, ...) sv_setpvf(sv, fmt, ...) -Note also the existence of C and C, combining +Note also the existence of C and C, combining concatenation with formatting. =head2 Character Class Tests @@ -161,12 +161,12 @@ table, C is a C, and C is a Unicode codepoint. atof(s) Atof(s) atol(s) Atol(s) - strtod(s, *p) Nothing. Just don't use it. + strtod(s, *p) Nothing. Just don't use it. strtol(s, *p, n) Strtol(s, *p, n) strtoul(s, *p, n) Strtoul(s, *p, n) -Notice also the C, C, and C functions in -F for converting strings representing numbers in the respective +Notice also the C, C, and C functions in +F for converting strings representing numbers in the respective bases into Cs. In theory C and C may not be defined if the machine perl is @@ -177,7 +177,7 @@ everywhere by now. int rand() double Drand01() srand(n) { seedDrand01((Rand_seed_t)n); PL_srand_called = TRUE; } - + exit(n) my_exit(n) system(s) Don't. Look at pp_system or use my_popen