home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!wupost!darwin.sura.net!jvnc.net!nuscc!ccechk
- From: ccechk@nuscc.nus.sg (Heng Kek)
- Subject: Error in JAPH.
- Message-ID: <1992Aug24.040233.29468@nuscc.nus.sg>
- Organization: National University of Singapore
- Date: Mon, 24 Aug 1992 04:02:33 GMT
- Lines: 26
-
- Out of curiosity, I tried out one of Randal's recent JAPH's:
-
- print unpack('@2a@15a@13a@14a@0a@4a@10a@11a@14a@7a@6a@12a@0a@3a@6a@12a@9a@0a@7a@4a@5a@8a@6a@12a@1a', ' ,JPacehklnorstu');
-
- which resulted in the following diagnostic:
-
- @ outside of string at d09 line 5.
-
- ("line 5" is the line containing the JAPH)
- Further 'testing' revealed that:
-
- print unpack('@11a@12a@1a', ' ,JPacehklnorstu');
- print unpack('@11a@9a@1a', ' ,JPacehklnorstu');
-
- gave the same error, but:
-
- print unpack('@11a', ' ,JPacehklnorstu');
- print unpack('@8a@9a@1a', ' ,JPacehklnorstu');
-
- works. Seems to have something to do with the number of digits in
- the repeat count for '@'. Is this a feature/bug?
-
- Heng Kek
- This is perl, version 4.0
- $RCSfile: perl.c,v $$Revision: 4.0.1.6 $$Date: 91/11/11 16:38:45 $
- Patch level: 19
-