From: Paul Marquess Date: Fri, 18 Apr 1997 12:49:39 +0000 (+0100) Subject: Document {,un}pack changes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f505e5d2748dc2677688b22967678392a186b16;p=p5sagit%2Fp5-mst-13.2.git Document {,un}pack changes Here is a documentation patch for the changes to pack & unpack. p5p-msgid: 9704181249.AA11733@claudius.bfsec.bt.co.uk --- diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 5132b49..eee8ceb 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -299,6 +299,10 @@ provides seven bits of the total value, with the most significant first. Bit eight of each byte is set, except for the last byte, in which bit eight is clear. +Previous to Perl 5.004, both pack() and unpack() would ignore any +unknown type characters in the template string. Now a fatal error will +be generated. + =item sysseek() and systell() These are new. The sysseek() operator is a variant of seek() that works @@ -1097,6 +1101,14 @@ empty (except that C should be C<'undef'>) so that Perl will think csh is missing. In either case, after editing config.sh, run C<./Configure -S> and rebuild Perl. +=item Invalid type in pack: '%s' + +(F) The given character is not a valid pack type. See L. + +=item Invalid type in unpack: '%s' + +(F) The given character is not a valid unpack type. See L. + =item Name "%s::%s" used only once: possible typo (W) Typographical errors often show up as unique variable names. diff --git a/pod/perldiag.pod b/pod/perldiag.pod index feee58a..1d22a25 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1231,11 +1231,11 @@ greater than the maximum character. See L. =item Invalid type in pack: '%s' -(F) The given character is not a valid pack type. See L. +(F) The given character is not a valid pack type. See L. =item Invalid type in unpack: '%s' -(F) The given character is not a valid unpack type. See L. +(F) The given character is not a valid unpack type. See L. =item ioctl is not implemented