home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / Perl / Docs / !PerlDocs / Chapter31 / Text
Unknown  |  1997-07-17  |  44.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| c0 b2 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |........|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 07 3b c1 00 00 00 00 00 | 00 18 00 00 a5 74 00 00 |.;......|.....t..|
|00000040| 43 78 51 04 40 25 ff ff | 60 73 ff ff d8 3b 00 00 |CxQ.@%..|`s...;..|
|00000050| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 07 3b c1 00 |........|.....;..|
|00000060| 07 3b c1 00 07 3b c1 00 | 00 00 00 00 70 65 72 6c |.;...;..|....perl|
|00000070| 58 53 74 75 74 20 2d 20 | 54 75 74 6f 72 69 61 6c |XStut - |Tutorial|
|00000080| 20 66 6f 72 20 58 05 05 | 53 55 42 73 0d 08 42 73 | for X..|SUBs..Bs|
|00000090| 07 3b c1 00 00 00 00 00 | 07 00 50 13 08 40 a4 00 |.;......|..P..@..|
|000000a0| 08 40 a4 00 00 00 00 00 | 05 00 00 00 00 74 00 00 |.@......|.....t..|
|000000b0| a5 30 00 00 40 a2 5f 01 | a0 98 fe ff f0 de fe ff |.0..@._.|........|
|000000c0| 68 37 00 00 44 65 73 63 | 72 69 70 74 69 6f 6e 0d |h7..Desc|ription.|
|000000d0| 08 69 70 74 08 41 a4 00 | 00 00 00 00 00 30 00 00 |.ipt.A..|.....0..|
|000000e0| 05 84 00 00 00 b8 55 07 | 3f 40 fe ff 1f 6f fe ff |......U.|?@...o..|
|000000f0| 20 22 00 00 54 68 69 73 | 20 74 75 74 6f 72 69 61 | "..This| tutoria|
|00000100| 6c 20 77 69 6c 6c 20 65 | 64 75 63 61 74 65 20 74 |l will e|ducate t|
|00000110| 68 65 20 72 65 61 64 65 | 72 20 6f 6e 20 74 68 65 |he reade|r on the|
|00000120| 20 73 74 65 70 73 20 69 | 6e 76 6f 6c 76 65 64 20 | steps i|nvolved |
|00000130| 69 6e 20 63 72 65 61 74 | 69 6e 67 20 61 20 50 65 |in creat|ing a Pe|
|00000140| 72 6c 20 65 78 74 65 6e | 73 69 6f 6e 2e 20 20 54 |rl exten|sion. T|
|00000150| 68 65 20 72 65 61 64 65 | 72 20 69 73 20 00 00 00 |he reade|r is ...|
|00000160| 00 84 00 00 a5 94 00 00 | 40 d4 2f 05 18 08 fe ff |........|@./.....|
|00000170| f8 36 fe ff 20 22 00 00 | 61 73 73 75 6d 65 64 20 |.6.. "..|assumed |
|00000180| 74 6f 20 68 61 76 65 20 | 61 63 63 65 73 73 20 74 |to have |access t|
|00000190| 6f 20 74 68 65 20 63 68 | 61 70 74 65 72 20 07 68 |o the ch|apter .h|
|000001a0| 10 42 a4 00 10 42 a4 00 | 00 00 00 00 70 65 72 6c |.B...B..|....perl|
|000001b0| 67 75 74 73 08 74 68 20 | 10 00 00 00 00 00 00 00 |guts.th |........|
|000001c0| 20 61 6e 64 20 74 68 65 | 20 63 68 61 70 74 65 72 | and the| chapter|
|000001d0| 20 07 65 63 10 43 a4 00 | 10 43 a4 00 00 00 00 00 | .ec.C..|.C......|
|000001e0| 70 65 72 6c 78 73 08 77 | 10 00 00 00 00 00 00 00 |perlxs.w|........|
|000001f0| 2e 0d 00 00 00 94 00 00 | 05 80 00 00 00 1c cd 07 |........|........|
|00000200| 41 99 fd ff 21 c8 fd ff | 20 22 00 00 54 68 69 73 |A...!...| "..This|
|00000210| 20 74 75 74 6f 72 69 61 | 6c 20 73 74 61 72 74 73 | tutoria|l starts|
|00000220| 20 77 69 74 68 20 76 65 | 72 79 20 73 69 6d 70 6c | with ve|ry simpl|
|00000230| 65 20 65 78 61 6d 70 6c | 65 73 20 61 6e 64 20 62 |e exampl|es and b|
|00000240| 65 63 6f 6d 65 73 20 6d | 6f 72 65 20 63 6f 6d 70 |ecomes m|ore comp|
|00000250| 6c 65 78 2c 20 77 69 74 | 68 20 65 61 63 68 20 6e |lex, wit|h each n|
|00000260| 65 77 20 65 78 61 6d 70 | 6c 65 20 61 64 64 69 6e |ew examp|le addin|
|00000270| 67 20 00 00 00 80 00 00 | 05 88 00 00 00 84 e0 07 |g ......|........|
|00000280| 1a 61 fd ff fa 8f fd ff | 20 22 00 00 6e 65 77 20 |.a......| "..new |
|00000290| 66 65 61 74 75 72 65 73 | 2e 20 20 43 65 72 74 61 |features|. Certa|
|000002a0| 69 6e 20 63 6f 6e 63 65 | 70 74 73 20 6d 61 79 20 |in conce|pts may |
|000002b0| 6e 6f 74 20 62 65 20 63 | 6f 6d 70 6c 65 74 65 6c |not be c|ompletel|
|000002c0| 79 20 65 78 70 6c 61 69 | 6e 65 64 20 75 6e 74 69 |y explai|ned unti|
|000002d0| 6c 20 6c 61 74 65 72 20 | 69 6e 20 74 68 65 20 74 |l later |in the t|
|000002e0| 75 74 6f 72 69 61 6c 20 | 74 6f 20 65 61 73 65 20 |utorial |to ease |
|000002f0| 74 68 65 20 72 65 61 64 | 65 72 20 00 00 88 00 00 |the read|er .....|
|00000300| a5 48 00 00 40 04 57 02 | f3 28 fd ff d3 57 fd ff |.H..@.W.|.(...W..|
|00000310| 20 22 00 00 73 6c 6f 77 | 6c 79 20 69 6e 74 6f 20 | "..slow|ly into |
|00000320| 62 75 69 6c 64 69 6e 67 | 20 65 78 74 65 6e 73 69 |building| extensi|
|00000330| 6f 6e 73 2e 0d 07 6e 20 | 0a 44 a4 00 0a 44 a4 00 |ons...n |.D...D..|
|00000340| 00 00 00 00 00 48 00 00 | a5 30 00 00 40 d6 72 01 |.....H..|.0..@.r.|
|00000350| 4c b2 fc ff fc e8 fc ff | 18 2b 00 00 56 65 72 73 |L.......|.+..Vers|
|00000360| 69 6f 6e 20 43 61 76 65 | 61 74 0d 08 0a 45 a4 00 |ion Cave|at...E..|
|00000370| 00 00 00 00 00 30 00 00 | 05 88 00 00 00 7c bb 07 |.....0..|.....|..|
|00000380| 17 5d fc ff f7 8b fc ff | 20 22 00 00 54 68 69 73 |.]......| "..This|
|00000390| 20 74 75 74 6f 72 69 61 | 6c 20 74 72 69 65 73 20 | tutoria|l tries |
|000003a0| 68 61 72 64 20 74 6f 20 | 6b 65 65 70 20 75 70 20 |hard to |keep up |
|000003b0| 77 69 74 68 20 74 68 65 | 20 6c 61 74 65 73 74 20 |with the| latest |
|000003c0| 64 65 76 65 6c 6f 70 6d | 65 6e 74 20 76 65 72 73 |developm|ent vers|
|000003d0| 69 6f 6e 73 20 6f 66 20 | 50 65 72 6c 2e 20 20 54 |ions of |Perl. T|
|000003e0| 68 69 73 20 6f 66 74 65 | 6e 20 6d 65 61 6e 73 20 |his ofte|n means |
|000003f0| 74 68 61 74 20 69 74 20 | 69 73 20 00 00 88 00 00 |that it |is .....|
|00000400| 05 84 00 00 00 cc b6 07 | f0 24 fc ff d0 53 fc ff |........|.$...S..|
|00000410| 20 22 00 00 73 6f 6d 65 | 74 69 6d 65 73 20 69 6e | "..some|times in|
|00000420| 20 61 64 76 61 6e 63 65 | 20 6f 66 20 74 68 65 20 | advance| of the |
|00000430| 6c 61 74 65 73 74 20 72 | 65 6c 65 61 73 65 64 20 |latest r|eleased |
|00000440| 76 65 72 73 69 6f 6e 20 | 6f 66 20 50 65 72 6c 2c |version |of Perl,|
|00000450| 20 61 6e 64 20 74 68 61 | 74 20 63 65 72 74 61 69 | and tha|t certai|
|00000460| 6e 20 66 65 61 74 75 72 | 65 73 20 64 65 73 63 72 |n featur|es descr|
|00000470| 69 62 65 64 20 68 65 72 | 65 20 6d 69 67 68 74 20 |ibed her|e might |
|00000480| 00 84 00 00 a5 90 00 00 | 40 f8 a8 07 c9 ec fb ff |........|@.......|
|00000490| a9 1b fc ff 20 22 00 00 | 6e 6f 74 20 77 6f 72 6b |.... "..|not work|
|000004a0| 20 6f 6e 20 65 61 72 6c | 69 65 72 20 76 65 72 73 | on earl|ier vers|
|000004b0| 69 6f 6e 73 2e 20 20 54 | 68 69 73 20 73 65 63 74 |ions. T|his sect|
|000004c0| 69 6f 6e 20 77 69 6c 6c | 20 6b 65 65 70 20 74 72 |ion will| keep tr|
|000004d0| 61 63 6b 20 6f 66 20 77 | 68 65 6e 20 76 61 72 69 |ack of w|hen vari|
|000004e0| 6f 75 73 20 66 65 61 74 | 75 72 65 73 20 77 65 72 |ous feat|ures wer|
|000004f0| 65 20 61 64 64 65 64 20 | 74 6f 20 50 65 72 6c 20 |e added |to Perl |
|00000500| 35 2e 0d 07 13 46 a4 00 | 13 46 a4 00 00 00 00 00 |5....F..|.F......|
|00000510| 00 90 00 00 85 ac 00 00 | 04 c4 8e 07 f2 7d fb ff |........|.....}..|
|00000520| d2 ac fb ff 20 22 00 00 | 12 46 a4 00 e8 35 00 00 |.... "..|.F...5..|
|00000530| 00 00 00 00 8f 12 a4 00 | 70 17 00 00 00 00 00 00 |........|p.......|
|00000540| 07 00 00 00 14 47 a4 00 | 13 46 a4 00 14 47 a4 00 |.....G..|.F...G..|
|00000550| 00 00 00 00 49 6e 20 76 | 65 72 73 69 6f 6e 73 20 |....In v|ersions |
|00000560| 6f 66 20 50 65 72 6c 20 | 35 2e 30 30 32 20 70 72 |of Perl |5.002 pr|
|00000570| 69 6f 72 20 74 6f 20 74 | 68 65 20 67 61 6d 6d 61 |ior to t|he gamma|
|00000580| 20 76 65 72 73 69 6f 6e | 2c 20 74 68 65 20 74 65 | version|, the te|
|00000590| 73 74 20 73 63 72 69 70 | 74 20 69 6e 20 45 78 61 |st scrip|t in Exa|
|000005a0| 6d 70 6c 65 20 31 20 77 | 69 6c 6c 20 6e 6f 74 20 |mple 1 w|ill not |
|000005b0| 66 75 6e 63 74 69 6f 6e | 20 00 00 00 00 ac 00 00 |function| .......|
|000005c0| a5 8c 00 00 40 68 0c 04 | cb 45 fb ff ab 74 fb ff |....@h..|.E...t..|
|000005d0| 20 22 00 00 70 72 6f 70 | 65 72 6c 79 2e 20 20 59 | "..prop|erly. Y|
|000005e0| 6f 75 20 6e 65 65 64 20 | 74 6f 20 63 68 61 6e 67 |ou need |to chang|
|000005f0| 65 20 74 68 65 20 22 75 | 73 65 20 6c 69 62 22 20 |e the "u|se lib" |
|00000600| 6c 69 6e 65 20 74 6f 20 | 72 65 61 64 3a 0d 08 00 |line to |read:...|
|00000610| 14 00 00 00 13 46 a4 00 | 00 00 00 00 07 72 73 69 |.....F..|.....rsi|
|00000620| 12 48 a4 00 13 46 a4 00 | 12 48 a4 00 00 00 00 00 |.H...F..|.H......|
|00000630| 07 20 70 72 0c 49 a4 00 | 13 46 a4 00 12 48 a4 00 |. pr.I..|.F...H..|
|00000640| 0c 49 a4 00 00 00 00 00 | 00 8c 00 00 a5 60 00 00 |.I......|.....`..|
|00000650| 40 70 8e 01 c4 de fa ff | d4 05 fb ff 70 1a 00 00 |@p......|....p...|
|00000660| 75 73 65 20 6c 69 62 20 | 27 2e 2f 62 6c 69 62 27 |use lib |'./blib'|
|00000670| 3b 0d 08 20 0c 4a a4 00 | 13 46 a4 00 12 48 a4 00 |;.. .J..|.F...H..|
|00000680| 00 00 00 00 08 20 54 68 | 12 00 00 00 13 46 a4 00 |..... Th|.....F..|
|00000690| 00 00 00 00 07 20 79 6f | 18 4b a4 00 13 46 a4 00 |..... yo|.K...F..|
|000006a0| 18 4b a4 00 00 00 00 00 | 00 60 00 00 a5 28 00 00 |.K......|.`...(..|
|000006b0| 40 00 00 00 34 ca fa ff | f4 d6 fa ff 00 00 00 00 |@...4...|........|
|000006c0| 0d 08 63 72 18 4c a4 00 | 13 46 a4 00 00 00 00 00 |..cr.L..|.F......|
|000006d0| 00 28 00 00 05 90 00 00 | 04 b8 40 07 64 71 fa ff |.(......|..@.dq..|
|000006e0| 44 a0 fa ff 20 22 00 00 | 12 69 6e 67 e8 35 00 00 |D... "..|.ing.5..|
|000006f0| 00 00 00 00 8f 12 72 65 | 70 17 00 00 00 00 00 00 |......re|p.......|
|00000700| 49 6e 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 50 |In versi|ons of P|
|00000710| 65 72 6c 20 35 2e 30 30 | 32 20 70 72 69 6f 72 20 |erl 5.00|2 prior |
|00000720| 74 6f 20 76 65 72 73 69 | 6f 6e 20 62 65 74 61 20 |to versi|on beta |
|00000730| 33 2c 20 74 68 65 20 6c | 69 6e 65 20 69 6e 20 74 |3, the l|ine in t|
|00000740| 68 65 20 2e 78 73 20 66 | 69 6c 65 20 61 62 6f 75 |he .xs f|ile abou|
|00000750| 74 20 22 50 52 4f 54 4f | 54 59 50 45 53 3a 20 00 |t "PROTO|TYPES: .|
|00000760| 00 90 00 00 25 68 00 00 | 40 60 c1 05 3d 39 fa ff |....%h..|@`..=9..|
|00000770| 1d 68 fa ff 20 22 00 00 | 44 49 53 41 42 4c 45 22 |.h.. "..|DISABLE"|
|00000780| 20 77 69 6c 6c 20 63 61 | 75 73 65 20 61 20 63 6f | will ca|use a co|
|00000790| 6d 70 69 6c 65 72 20 65 | 72 72 6f 72 2e 20 20 53 |mpiler e|rror. S|
|000007a0| 69 6d 70 6c 79 20 72 65 | 6d 6f 76 65 20 74 68 61 |imply re|move tha|
|000007b0| 74 20 6c 69 6e 65 20 66 | 72 6f 6d 20 74 68 65 20 |t line f|rom the |
|000007c0| 66 69 6c 65 2e 0d 00 00 | 00 68 00 00 85 ac 00 00 |file....|.h......|
|000007d0| 04 e8 a0 07 66 ca f9 ff | 46 f9 f9 ff 20 22 00 00 |....f...|F... "..|
|000007e0| 12 65 61 64 e8 35 00 00 | 00 00 00 00 8f 12 74 68 |.ead.5..|......th|
|000007f0| 70 17 00 00 00 00 00 00 | 07 69 6e 65 14 4d a4 00 |p.......|.ine.M..|
|00000800| 13 46 a4 00 14 4d a4 00 | 00 00 00 00 49 6e 20 76 |.F...M..|....In v|
|00000810| 65 72 73 69 6f 6e 73 20 | 6f 66 20 50 65 72 6c 20 |ersions |of Perl |
|00000820| 35 2e 30 30 32 20 70 72 | 69 6f 72 20 74 6f 20 76 |5.002 pr|ior to v|
|00000830| 65 72 73 69 6f 6e 20 35 | 2e 30 30 32 62 31 68 2c |ersion 5|.002b1h,|
|00000840| 20 74 68 65 20 74 65 73 | 74 2e 70 6c 20 66 69 6c | the tes|t.pl fil|
|00000850| 65 20 77 61 73 20 6e 6f | 74 20 61 75 74 6f 6d 61 |e was no|t automa|
|00000860| 74 69 63 61 6c 6c 79 20 | 63 72 65 61 74 65 64 20 |tically |created |
|00000870| 62 79 20 00 00 ac 00 00 | 05 7c 00 00 00 fc 17 07 |by .....|.|......|
|00000880| 3f 92 f9 ff 1f c1 f9 ff | 20 22 00 00 68 32 78 73 |?.......| "..h2xs|
|00000890| 2e 20 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |. This |means th|
|000008a0| 61 74 20 79 6f 75 20 63 | 61 6e 6e 6f 74 20 73 61 |at you c|annot sa|
|000008b0| 79 20 22 6d 61 6b 65 20 | 74 65 73 74 22 20 74 6f |y "make |test" to|
|000008c0| 20 72 75 6e 20 74 68 65 | 20 74 65 73 74 20 73 63 | run the| test sc|
|000008d0| 72 69 70 74 2e 20 20 59 | 6f 75 20 77 69 6c 6c 20 |ript. Y|ou will |
|000008e0| 6e 65 65 64 20 74 6f 20 | 61 64 64 20 74 68 65 20 |need to |add the |
|000008f0| 00 7c 00 00 a5 88 00 00 | 40 08 cd 03 18 5a f9 ff |.|......|@....Z..|
|00000900| f8 88 f9 ff 20 22 00 00 | 66 6f 6c 6c 6f 77 69 6e |.... "..|followin|
|00000910| 67 20 6c 69 6e 65 20 62 | 65 66 6f 72 65 20 74 68 |g line b|efore th|
|00000920| 65 20 22 75 73 65 20 65 | 78 74 65 6e 73 69 6f 6e |e "use e|xtension|
|00000930| 22 20 73 74 61 74 65 6d | 65 6e 74 3a 0d 08 69 6f |" statem|ent:..io|
|00000940| 14 00 00 00 13 46 a4 00 | 00 00 00 00 07 22 2e 0d |.....F..|....."..|
|00000950| 12 4e a4 00 13 46 a4 00 | 12 4e a4 00 00 00 00 00 |.N...F..|.N......|
|00000960| 07 5a a4 00 0c 4f a4 00 | 13 46 a4 00 12 4e a4 00 |.Z...O..|.F...N..|
|00000970| 0c 4f a4 00 00 00 00 00 | 00 88 00 00 a5 60 00 00 |.O......|.....`..|
|00000980| 40 70 8e 01 11 f3 f8 ff | 21 1a f9 ff 70 1a 00 00 |@p......|!...p...|
|00000990| 75 73 65 20 6c 69 62 20 | 27 2e 2f 62 6c 69 62 27 |use lib |'./blib'|
|000009a0| 3b 0d 08 74 0c 50 a4 00 | 13 46 a4 00 12 4e a4 00 |;..t.P..|.F...N..|
|000009b0| 00 00 00 00 08 6f 65 73 | 12 00 00 00 13 46 a4 00 |.....oes|.....F..|
|000009c0| 00 00 00 00 07 20 63 61 | 18 51 a4 00 13 46 a4 00 |..... ca|.Q...F..|
|000009d0| 18 51 a4 00 00 00 00 00 | 00 60 00 00 a5 28 00 00 |.Q......|.`...(..|
|000009e0| 40 00 00 00 81 de f8 ff | 41 eb f8 ff 00 00 00 00 |@.......|A.......|
|000009f0| 0d 08 75 20 18 52 a4 00 | 13 46 a4 00 00 00 00 00 |..u .R..|.F......|
|00000a00| 00 28 00 00 a5 e8 00 00 | 44 9c b0 07 b1 85 f8 ff |.(......|D.......|
|00000a10| 91 b4 f8 ff 20 22 00 00 | 12 74 2e 20 e8 35 00 00 |.... "..|.t. .5..|
|00000a20| 00 00 00 00 8f 12 a4 00 | 70 17 00 00 00 00 00 00 |........|p.......|
|00000a30| 07 61 6e 08 14 53 a4 00 | 13 46 a4 00 14 53 a4 00 |.an..S..|.F...S..|
|00000a40| 00 00 00 00 49 6e 20 76 | 65 72 73 69 6f 6e 73 20 |....In v|ersions |
|00000a50| 35 2e 30 30 30 20 61 6e | 64 05 20 35 2e 30 30 31 |5.000 an|d. 5.001|
|00000a60| 2c 20 69 6e 73 74 65 61 | 64 20 6f 66 20 75 73 69 |, instea|d of usi|
|00000a70| 6e 67 20 74 68 65 20 61 | 62 6f 76 65 20 6c 69 6e |ng the a|bove lin|
|00000a80| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 6e 65 65 64 |e, you w|ill need|
|00000a90| 20 74 6f 20 75 73 65 20 | 74 68 65 20 66 6f 6c 6c | to use |the foll|
|00000aa0| 6f 77 69 6e 67 20 6c 69 | 6e 65 3a 0d 08 05 05 05 |owing li|ne:.....|
|00000ab0| 14 00 00 00 13 46 a4 00 | 00 00 00 00 07 6d 69 6c |.....F..|.....mil|
|00000ac0| 12 54 a4 00 13 46 a4 00 | 12 54 a4 00 00 00 00 00 |.T...F..|.T......|
|00000ad0| 07 73 20 74 0c 55 a4 00 | 13 46 a4 00 12 54 a4 00 |.s t.U..|.F...T..|
|00000ae0| 0c 55 a4 00 00 00 00 00 | 00 e8 00 00 a5 70 00 00 |.U......|.....p..|
|00000af0| 40 70 05 03 aa 1e f8 ff | ba 45 f8 ff 70 1a 00 00 |@p......|.E..p...|
|00000b00| 42 45 47 49 4e 20 7b 20 | 75 6e 73 68 69 66 74 28 |BEGIN { |unshift(|
|00000b10| 40 49 4e 43 2c 20 22 2e | 2f 62 6c 69 62 22 29 20 |@INC, ".|/blib") |
|00000b20| 7d 0d 08 6b 0c 56 a4 00 | 13 46 a4 00 12 54 a4 00 |}..k.V..|.F...T..|
|00000b30| 00 00 00 00 08 75 69 6c | 12 00 00 00 13 46 a4 00 |.....uil|.....F..|
|00000b40| 00 00 00 00 07 6c 79 2d | 18 57 a4 00 13 46 a4 00 |.....ly-|.W...F..|
|00000b50| 18 57 a4 00 00 00 00 00 | 00 70 00 00 a5 28 00 00 |.W......|.p...(..|
|00000b60| 40 00 00 00 1a 0a f8 ff | da 16 f8 ff 00 00 00 00 |@.......|........|
|00000b70| 0d 08 61 74 18 58 a4 00 | 13 46 a4 00 00 00 00 00 |..at.X..|.F......|
|00000b80| 00 28 00 00 05 90 00 00 | 04 84 aa 07 4a b1 f7 ff |.(......|....J...|
|00000b90| 2a e0 f7 ff 20 22 00 00 | 12 77 20 73 e8 35 00 00 |*... "..|.w s.5..|
|00000ba0| 00 00 00 00 8f 12 6c 69 | 70 17 00 00 00 00 00 00 |......li|p.......|
|00000bb0| 54 68 69 73 20 64 6f 63 | 75 6d 65 6e 74 20 61 73 |This doc|ument as|
|00000bc0| 73 75 6d 65 73 20 74 68 | 61 74 20 74 68 65 20 65 |sumes th|at the e|
|00000bd0| 78 65 63 75 74 61 62 6c | 65 20 6e 61 6d 65 64 20 |xecutabl|e named |
|00000be0| 22 70 65 72 6c 22 20 69 | 73 20 50 65 72 6c 20 76 |"perl" i|s Perl v|
|00000bf0| 65 72 73 69 6f 6e 20 35 | 2e 20 53 6f 6d 65 20 73 |ersion 5|. Some s|
|00000c00| 79 73 74 65 6d 73 20 6d | 61 79 20 68 61 76 65 20 |ystems m|ay have |
|00000c10| 00 90 00 00 a5 58 00 00 | 40 c0 7f 02 23 79 f7 ff |.....X..|@...#y..|
|00000c20| 03 a8 f7 ff 20 22 00 00 | 69 6e 73 74 61 6c 6c 65 |.... "..|installe|
|00000c30| 64 20 50 65 72 6c 20 76 | 65 72 73 69 6f 6e 20 35 |d Perl v|ersion 5|
|00000c40| 20 61 73 20 22 70 65 72 | 6c 35 22 2e 0d 08 20 69 | as "per|l5"... i|
|00000c50| 13 59 a4 00 00 00 00 00 | 07 20 66 6f 0a 5a a4 00 |.Y......|. fo.Z..|
|00000c60| 0a 5a a4 00 00 00 00 00 | 00 58 00 00 a5 38 00 00 |.Z......|.X...8..|
|00000c70| 40 0a 23 02 7c 02 f7 ff | 2c 39 f7 ff 18 2b 00 00 |@.#.|...|,9...+..|
|00000c80| 44 79 6e 61 6d 69 63 20 | 56 65 72 73 75 73 20 53 |Dynamic |Versus S|
|00000c90| 74 61 74 69 63 0d 08 73 | 0a 5b a4 00 00 00 00 00 |tatic..s|.[......|
|00000ca0| 00 38 00 00 05 80 00 00 | 00 cc 7a 07 47 ad f6 ff |.8......|..z.G...|
|00000cb0| 27 dc f6 ff 20 22 00 00 | 49 74 20 69 73 20 63 6f |'... "..|It is co|
|00000cc0| 6d 6d 6f 6e 6c 79 20 74 | 68 6f 75 67 68 74 20 74 |mmonly t|hought t|
|00000cd0| 68 61 74 20 69 66 20 61 | 20 73 79 73 74 65 6d 20 |hat if a| system |
|00000ce0| 64 6f 65 73 20 6e 6f 74 | 20 68 61 76 65 20 74 68 |does not| have th|
|00000cf0| 65 20 63 61 70 61 62 69 | 6c 69 74 79 20 74 6f 20 |e capabi|lity to |
|00000d00| 6c 6f 61 64 20 61 20 6c | 69 62 72 61 72 79 20 64 |load a l|ibrary d|
|00000d10| 79 6e 61 6d 69 63 61 6c | 6c 79 2c 20 79 6f 75 20 |ynamical|ly, you |
|00000d20| 00 80 00 00 85 9c 00 00 | 00 f0 e9 07 20 75 f6 ff |........|.... u..|
|00000d30| 00 a4 f6 ff 20 22 00 00 | 63 61 6e 6e 6f 74 20 62 |.... "..|cannot b|
|00000d40| 75 69 6c 64 20 58 53 55 | 42 73 2e 20 20 54 68 69 |uild XSU|Bs. Thi|
|00000d50| 73 20 69 73 20 69 6e 63 | 6f 72 72 65 63 74 2e 20 |s is inc|orrect. |
|00000d60| 59 6f 75 20 07 61 74 20 | 11 5c a4 00 11 5c a4 00 |You .at |.\...\..|
|00000d70| 00 00 00 00 63 61 6e 08 | 11 00 00 00 00 00 00 00 |....can.|........|
|00000d80| 20 62 75 69 6c 64 20 74 | 68 65 6d 2c 20 62 75 74 | build t|hem, but|
|00000d90| 20 79 6f 75 20 6d 75 73 | 74 20 6c 69 6e 6b 20 74 | you mus|t link t|
|00000da0| 68 65 20 58 53 55 42 27 | 73 20 73 75 62 72 6f 75 |he XSUB'|s subrou|
|00000db0| 74 69 6e 65 73 20 77 69 | 74 68 20 00 00 9c 00 00 |tines wi|th .....|
|00000dc0| 25 6c 00 00 40 b0 a1 05 | f9 3c f6 ff d9 6b f6 ff |%l..@...|.<...k..|
|00000dd0| 20 22 00 00 74 68 65 20 | 72 65 73 74 20 6f 66 20 | "..the |rest of |
|00000de0| 50 65 72 6c 2c 20 63 72 | 65 61 74 69 6e 67 20 61 |Perl, cr|eating a|
|00000df0| 20 6e 65 77 20 65 78 65 | 63 75 74 61 62 6c 65 2e | new exe|cutable.|
|00000e00| 20 20 54 68 69 73 20 73 | 69 74 75 61 74 69 6f 6e | This s|ituation|
|00000e10| 20 69 73 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 50 | is simi|lar to P|
|00000e20| 65 72 6c 20 34 2e 0d 00 | 00 6c 00 00 05 80 00 00 |erl 4...|.l......|
|00000e30| 00 f4 9a 07 22 ce f5 ff | 02 fd f5 ff 20 22 00 00 |...."...|.... "..|
|00000e40| 54 68 69 73 20 74 75 74 | 6f 72 69 61 6c 20 63 61 |This tut|orial ca|
|00000e50| 6e 20 73 74 69 6c 6c 20 | 62 65 20 75 73 65 64 20 |n still |be used |
|00000e60| 6f 6e 20 73 75 63 68 20 | 61 20 73 79 73 74 65 6d |on such |a system|
|00000e70| 2e 20 20 54 68 65 20 58 | 53 55 42 20 62 75 69 6c |. The X|SUB buil|
|00000e80| 64 20 6d 65 63 68 61 6e | 69 73 6d 20 77 69 6c 6c |d mechan|ism will|
|00000e90| 20 63 68 65 63 6b 20 74 | 68 65 20 73 79 73 74 65 | check t|he syste|
|00000ea0| 6d 20 61 6e 64 20 00 00 | 00 80 00 00 05 8c 00 00 |m and ..|........|
|00000eb0| 00 38 ed 07 fb 95 f5 ff | db c4 f5 ff 20 22 00 00 |.8......|.... "..|
|00000ec0| 62 75 69 6c 64 20 61 20 | 64 79 6e 61 6d 69 63 61 |build a |dynamica|
|00000ed0| 6c 6c 79 2d 6c 6f 61 64 | 61 62 6c 65 20 6c 69 62 |lly-load|able lib|
|00000ee0| 72 61 72 79 20 69 66 20 | 70 6f 73 73 69 62 6c 65 |rary if |possible|
|00000ef0| 2c 20 6f 72 20 65 6c 73 | 65 20 61 20 73 74 61 74 |, or els|e a stat|
|00000f00| 69 63 20 6c 69 62 72 61 | 72 79 20 61 6e 64 20 74 |ic libra|ry and t|
|00000f10| 68 65 6e 2c 20 6f 70 74 | 69 6f 6e 61 6c 6c 79 2c |hen, opt|ionally,|
|00000f20| 20 61 20 6e 65 77 20 73 | 74 61 74 69 63 61 6c 6c | a new s|taticall|
|00000f30| 79 2d 00 00 00 8c 00 00 | 25 50 00 00 40 9c ae 03 |y-......|%P..@...|
|00000f40| d4 5d f5 ff b4 8c f5 ff | 20 22 00 00 6c 69 6e 6b |.]......| "..link|
|00000f50| 65 64 20 65 78 65 63 75 | 74 61 62 6c 65 20 77 69 |ed execu|table wi|
|00000f60| 74 68 20 74 68 61 74 20 | 73 74 61 74 69 63 20 6c |th that |static l|
|00000f70| 69 62 72 61 72 79 20 6c | 69 6e 6b 65 64 20 69 6e |ibrary l|inked in|
|00000f80| 2e 0d 00 00 00 50 00 00 | 05 84 00 00 00 f8 ba 07 |.....P..|........|
|00000f90| fd ee f4 ff dd 1d f5 ff | 20 22 00 00 53 68 6f 75 |........| "..Shou|
|00000fa0| 6c 64 20 79 6f 75 20 77 | 69 73 68 20 74 6f 20 62 |ld you w|ish to b|
|00000fb0| 75 69 6c 64 20 61 20 73 | 74 61 74 69 63 61 6c 6c |uild a s|taticall|
|00000fc0| 79 2d 6c 69 6e 6b 65 64 | 20 65 78 65 63 75 74 61 |y-linked| executa|
|00000fd0| 62 6c 65 20 6f 6e 20 61 | 20 73 79 73 74 65 6d 20 |ble on a| system |
|00000fe0| 77 68 69 63 68 20 63 61 | 6e 20 64 79 6e 61 6d 69 |which ca|n dynami|
|00000ff0| 63 61 6c 6c 79 20 6c 6f | 61 64 20 6c 69 62 72 61 |cally lo|ad libra|
|00001000| 72 69 65 73 2c 20 00 00 | 00 84 00 00 05 80 00 00 |ries, ..|........|
|00001010| 00 10 e5 07 d6 b6 f4 ff | b6 e5 f4 ff 20 22 00 00 |........|.... "..|
|00001020| 79 6f 75 20 6d 61 79 2c | 20 69 6e 20 61 6c 6c 20 |you may,| in all |
|00001030| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 78 |the foll|owing ex|
|00001040| 61 6d 70 6c 65 73 2c 20 | 77 68 65 72 65 20 74 68 |amples, |where th|
|00001050| 65 20 63 6f 6d 6d 61 6e | 64 20 22 6d 61 6b 65 22 |e comman|d "make"|
|00001060| 20 77 69 74 68 20 6e 6f | 20 61 72 67 75 6d 65 6e | with no| argumen|
|00001070| 74 73 20 69 73 20 65 78 | 65 63 75 74 65 64 2c 20 |ts is ex|ecuted, |
|00001080| 72 75 6e 20 74 68 65 20 | 00 80 00 00 25 38 00 00 |run the |....%8..|
|00001090| 40 38 41 02 af 7e f4 ff | 8f ad f4 ff 20 22 00 00 |@8A..~..|.... "..|
|000010a0| 63 6f 6d 6d 61 6e 64 20 | 22 6d 61 6b 65 20 70 65 |command |"make pe|
|000010b0| 72 6c 22 20 69 6e 73 74 | 65 61 64 2e 0d 00 00 00 |rl" inst|ead.....|
|000010c0| 00 38 00 00 01 10 00 00 | 00 c8 db 07 00 00 00 00 |.8......|........|
|000010d0| 00 10 00 00 02 14 00 00 | 64 02 00 00 00 00 00 00 |........|d.......|
|000010e0| 00 00 00 00 00 14 00 00 | 05 94 00 00 00 c8 db 07 |........|........|
|000010f0| cf 44 f2 ff af 73 f2 ff | 20 22 00 00 16 00 00 00 |.D...s..| "......|
|00001100| b0 fc 07 00 00 00 00 00 | 49 66 20 79 6f 75 20 68 |........|If you h|
|00001110| 61 76 65 20 67 65 6e 65 | 72 61 74 65 64 20 73 75 |ave gene|rated su|
|00001120| 63 68 20 61 20 73 74 61 | 74 69 63 61 6c 6c 79 2d |ch a sta|tically-|
|00001130| 6c 69 6e 6b 65 64 20 65 | 78 65 63 75 74 61 62 6c |linked e|xecutabl|
|00001140| 65 20 62 79 20 63 68 6f | 69 63 65 2c 20 74 68 65 |e by cho|ice, the|
|00001150| 6e 20 69 6e 73 74 65 61 | 64 20 6f 66 20 73 61 79 |n instea|d of say|
|00001160| 69 6e 67 20 22 6d 61 6b | 65 20 74 65 73 74 22 2c |ing "mak|e test",|
|00001170| 20 79 6f 75 20 00 00 00 | 00 94 00 00 05 84 00 00 | you ...|........|
|00001180| 00 d0 af 07 a8 0c f2 ff | 88 3b f2 ff 20 22 00 00 |........|.;.. "..|
|00001190| 73 68 6f 75 6c 64 20 73 | 61 79 20 22 6d 61 6b 65 |should s|ay "make|
|000011a0| 20 74 65 73 74 5f 73 74 | 61 74 69 63 22 2e 20 20 | test_st|atic". |
|000011b0| 4f 6e 20 73 79 73 74 65 | 6d 73 20 74 68 61 74 20 |On syste|ms that |
|000011c0| 63 61 6e 6e 6f 74 20 62 | 75 69 6c 64 20 64 79 6e |cannot b|uild dyn|
|000011d0| 61 6d 69 63 61 6c 6c 79 | 2d 6c 6f 61 64 61 62 6c |amically|-loadabl|
|000011e0| 65 20 6c 69 62 72 61 72 | 69 65 73 20 61 74 20 61 |e librar|ies at a|
|000011f0| 6c 6c 2c 20 73 69 6d 70 | 6c 79 20 00 00 84 00 00 |ll, simp|ly .....|
|00001200| a5 48 00 00 40 58 51 02 | 81 d4 f1 ff 61 03 f2 ff |.H..@XQ.|....a...|
|00001210| 20 22 00 00 73 61 79 69 | 6e 67 20 22 6d 61 6b 65 | "..sayi|ng "make|
|00001220| 20 74 65 73 74 22 20 69 | 73 20 73 75 66 66 69 63 | test" i|s suffic|
|00001230| 69 65 6e 74 2e 0d 07 68 | 0a 5d a4 00 0a 5d a4 00 |ient...h|.]...]..|
|00001240| 00 00 00 00 00 48 00 00 | a5 2c 00 00 40 58 02 01 |.....H..|.,..@X..|
|00001250| da 5d f1 ff 8a 94 f1 ff | 18 2b 00 00 45 78 61 6d |.]......|.+..Exam|
|00001260| 70 6c 65 20 31 0d 08 00 | 0a 5e a4 00 00 00 00 00 |ple 1...|.^......|
|00001270| 00 2c 00 00 05 88 00 00 | 00 a4 c0 07 a5 08 f1 ff |.,......|........|
|00001280| 85 37 f1 ff 20 22 00 f0 | 4f 75 72 20 66 69 72 73 |.7.. "..|Our firs|
|00001290| 74 20 65 78 74 65 6e 73 | 69 6f 6e 20 77 69 6c 6c |t extens|ion will|
|000012a0| 20 62 65 20 76 65 72 79 | 20 73 69 6d 70 6c 65 2e | be very| simple.|
|000012b0| 20 20 57 68 65 6e 20 77 | 65 20 63 61 6c 6c 20 74 | When w|e call t|
|000012c0| 68 65 20 72 6f 75 74 69 | 6e 65 20 69 6e 20 74 68 |he routi|ne in th|
|000012d0| 65 20 65 78 74 65 6e 73 | 69 6f 6e 2c 20 69 74 20 |e extens|ion, it |
|000012e0| 77 69 6c 6c 20 70 72 69 | 6e 74 20 6f 75 74 20 61 |will pri|nt out a|
|000012f0| 20 77 65 6c 6c 2d 00 00 | 00 88 00 00 25 34 00 00 | well-..|....%4..|
|00001300| 40 e8 00 02 7e d0 f0 ff | 5e ff f0 ff 20 22 00 f0 |@...~...|^... "..|
|00001310| 6b 6e 6f 77 6e 20 6d 65 | 73 73 61 67 65 20 61 6e |known me|ssage an|
|00001320| 64 20 72 65 74 75 72 6e | 2e 0d 00 00 00 34 00 00 |d return|.....4..|
|00001330| 85 98 00 00 00 1c d3 07 | a7 61 f0 ff 87 90 f0 ff |........|.a......|
|00001340| 20 22 00 f0 52 75 6e 20 | 07 68 65 20 0e 5f a4 00 | "..Run |.he ._..|
|00001350| 0e 5f a4 00 00 00 00 00 | 68 32 78 73 20 2d 41 20 |._......|h2xs -A |
|00001360| 2d 6e 20 4d 79 74 65 73 | 74 08 65 74 0e 60 a4 00 |-n Mytes|t.et.`..|
|00001370| 00 00 00 00 2e 20 20 54 | 68 69 73 20 63 72 65 61 |..... T|his crea|
|00001380| 74 65 73 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 |tes a di|rectory |
|00001390| 6e 61 6d 65 64 20 4d 79 | 74 65 73 74 2c 20 70 6f |named My|test, po|
|000013a0| 73 73 69 62 6c 79 20 75 | 6e 64 65 72 20 65 78 74 |ssibly u|nder ext|
|000013b0| 2f 20 69 66 20 74 68 61 | 74 20 64 69 72 65 63 74 |/ if tha|t direct|
|000013c0| 6f 72 79 20 00 98 00 00 | 05 80 00 00 00 b4 ff 06 |ory ....|........|
|000013d0| 80 29 f0 ff 60 58 f0 ff | 20 22 00 f0 65 78 69 73 |.)..`X..| "..exis|
|000013e0| 74 73 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |ts in th|e curren|
|000013f0| 74 20 77 6f 72 6b 69 6e | 67 20 64 69 72 65 63 74 |t workin|g direct|
|00001400| 6f 72 79 2e 20 20 53 65 | 76 65 72 61 6c 20 66 69 |ory. Se|veral fi|
|00001410| 6c 65 73 20 77 69 6c 6c | 20 62 65 20 63 72 65 61 |les will| be crea|
|00001420| 74 65 64 20 69 6e 20 74 | 68 65 20 4d 79 74 65 73 |ted in t|he Mytes|
|00001430| 74 20 64 69 72 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |t dir, i|ncluding|
|00001440| 20 00 00 00 00 80 00 00 | 25 5c 00 00 40 0c 37 05 | .......|%\..@.7.|
|00001450| 59 f1 ef ff 39 20 f0 ff | 20 22 00 f0 4d 41 4e 49 |Y...9 ..| "..MANI|
|00001460| 46 45 53 54 2c 20 4d 61 | 6b 65 66 69 6c 65 2e 50 |FEST, Ma|kefile.P|
|00001470| 4c 2c 20 4d 79 74 65 73 | 74 2e 70 6d 2c 20 4d 79 |L, Mytes|t.pm, My|
|00001480| 74 65 73 74 2e 78 73 2c | 20 74 65 73 74 2e 70 6c |test.xs,| test.pl|
|00001490| 2c 20 61 6e 64 20 43 68 | 61 6e 67 65 73 2e 0d 00 |, and Ch|anges...|
|000014a0| 00 5c 00 00 a5 64 00 00 | 40 58 a6 04 82 82 ef ff |.\...d..|@X......|
|000014b0| 62 b1 ef ff 20 22 00 f0 | 54 68 65 20 4d 41 4e 49 |b... "..|The MANI|
|000014c0| 46 45 53 54 20 66 69 6c | 65 20 63 6f 6e 74 61 69 |FEST fil|e contai|
|000014d0| 6e 73 20 74 68 65 20 6e | 61 6d 65 73 20 6f 66 20 |ns the n|ames of |
|000014e0| 61 6c 6c 20 74 68 65 20 | 66 69 6c 65 73 20 63 72 |all the |files cr|
|000014f0| 65 61 74 65 64 2e 0d 07 | 14 61 a4 00 14 61 a4 00 |eated...|.a...a..|
|00001500| 00 00 00 00 00 64 00 00 | a5 7c 00 00 40 14 ee 03 |.....d..|.|..@...|
|00001510| ab 13 ef ff 8b 42 ef ff | 20 22 00 f0 54 68 65 20 |.....B..| "..The |
|00001520| 66 69 6c 65 20 4d 61 6b | 65 66 69 6c 65 2e 50 4c |file Mak|efile.PL|
|00001530| 20 73 68 6f 75 6c 64 20 | 6c 6f 6f 6b 20 73 6f 6d | should |look som|
|00001540| 65 74 68 69 6e 67 20 6c | 69 6b 65 20 74 68 69 73 |ething l|ike this|
|00001550| 3a 0d 08 05 14 00 00 00 | 00 00 00 00 07 00 00 00 |:.......|........|
|00001560| 12 62 a4 00 12 62 a4 00 | 00 00 00 00 07 65 20 2e |.b...b..|.....e .|
|00001570| 0c 63 a4 00 12 62 a4 00 | 0c 63 a4 00 00 00 00 00 |.c...b..|.c......|
|00001580| 00 7c 00 00 25 34 00 00 | 40 80 32 02 a4 ac ee ff |.|..%4..|@.2.....|
|00001590| b4 d3 ee ff 70 1a 00 f0 | 75 73 65 20 45 78 74 55 |....p...|use ExtU|
|000015a0| 74 69 6c 73 3a 3a 4d 61 | 6b 65 4d 61 6b 65 72 3b |tils::Ma|keMaker;|
|000015b0| 0d 00 00 00 00 34 00 00 | 25 58 00 00 40 90 c4 05 |.....4..|%X..@...|
|000015c0| c4 7d ee ff d4 a4 ee ff | 70 1a 00 f0 23 20 53 65 |.}......|p...# Se|
|000015d0| 65 20 6c 69 62 2f 45 78 | 74 55 74 69 6c 73 2f 4d |e lib/Ex|tUtils/M|
|000015e0| 61 6b 65 4d 61 6b 65 72 | 2e 70 6d 20 66 6f 72 20 |akeMaker|.pm for |
|000015f0| 64 65 74 61 69 6c 73 20 | 6f 66 20 68 6f 77 20 74 |details |of how t|
|00001600| 6f 20 69 6e 66 6c 75 65 | 6e 63 65 0d 00 58 00 00 |o influe|nce..X..|
|00001610| 25 48 00 00 40 90 4d 04 | e4 4e ee ff f4 75 ee ff |%H..@.M.|.N...u..|
|00001620| 70 1a 00 f0 23 20 74 68 | 65 20 63 6f 6e 74 65 6e |p...# th|e conten|
|00001630| 74 73 20 6f 66 20 74 68 | 65 20 4d 61 6b 65 66 69 |ts of th|e Makefi|
|00001640| 6c 65 20 74 68 61 74 20 | 69 73 20 77 72 69 74 74 |le that |is writt|
|00001650| 65 6e 2e 0d 00 48 00 00 | 25 28 00 00 40 20 48 01 |en...H..|%(..@ H.|
|00001660| 04 20 ee ff 14 47 ee ff | 70 1a 00 f0 57 72 69 74 |. ...G..|p...Writ|
|00001670| 65 4d 61 6b 65 66 69 6c | 65 28 0d 00 00 28 00 00 |eMakefil|e(...(..|
|00001680| 25 38 00 00 40 40 90 02 | 24 f1 ed ff 34 18 ee ff |%8..@@..|$...4...|
|00001690| 70 1a 00 f0 20 20 20 20 | 27 4e 41 4d 45 27 20 20 |p... |'NAME' |
|000016a0| 20 20 20 20 3d 3e 20 27 | 4d 79 74 65 73 74 27 2c | => '|Mytest',|
|000016b0| 0d 00 00 00 00 38 00 00 | 25 4c 00 00 40 50 ab 04 |.....8..|%L..@P..|
|000016c0| 44 c2 ed ff 54 e9 ed ff | 70 1a 00 f0 20 20 20 20 |D...T...|p... |
|000016d0| 27 56 45 52 53 49 4f 4e | 5f 46 52 4f 4d 27 20 3d |'VERSION|_FROM' =|
|000016e0| 3e 20 27 4d 79 74 65 73 | 74 2e 70 6d 27 2c 20 23 |> 'Mytes|t.pm', #|
|000016f0| 20 66 69 6e 64 73 20 24 | 56 45 52 53 49 4f 4e 0d | finds $|VERSION.|
|00001700| 00 4c 00 00 25 44 00 00 | 40 80 a9 03 64 93 ed ff |.L..%D..|@...d...|
|00001710| 74 ba ed ff 70 1a 00 f0 | 20 20 20 20 27 4c 49 42 |t...p...| 'LIB|
|00001720| 53 27 20 20 20 20 20 20 | 3d 3e 20 5b 27 27 5d 2c |S' |=> [''],|
|00001730| 20 20 20 23 20 65 2e 67 | 2e 2c 20 27 2d 6c 6d 27 | # e.g|., '-lm'|
|00001740| 0d 00 00 00 00 44 00 00 | 25 50 00 00 40 30 da 04 |.....D..|%P..@0..|
|00001750| 84 64 ed ff 94 8b ed ff | 70 1a 00 f0 20 20 20 20 |.d......|p... |
|00001760| 27 44 45 46 49 4e 45 27 | 20 20 20 20 3d 3e 20 27 |'DEFINE'| => '|
|00001770| 27 2c 20 20 20 20 20 23 | 20 65 2e 67 2e 2c 20 27 |', #| e.g., '|
|00001780| 2d 44 48 41 56 45 5f 53 | 4f 4d 45 54 48 49 4e 47 |-DHAVE_S|OMETHING|
|00001790| 27 0d 00 00 00 50 00 00 | 25 54 00 00 40 f0 37 05 |'....P..|%T..@.7.|
|000017a0| a4 35 ed ff b4 5c ed ff | 70 1a 00 f0 20 20 20 20 |.5...\..|p... |
|000017b0| 27 49 4e 43 27 20 20 20 | 20 20 20 20 3d 3e 20 27 |'INC' | => '|
|000017c0| 27 2c 20 20 20 20 20 23 | 20 65 2e 67 2e 2c 20 27 |', #| e.g., '|
|000017d0| 2d 49 2f 75 73 72 2f 69 | 6e 63 6c 75 64 65 2f 6f |-I/usr/i|nclude/o|
|000017e0| 74 68 65 72 27 0d 00 00 | 00 54 00 00 a5 44 00 00 |ther'...|.T...D..|
|000017f0| 40 e0 2e 00 c4 06 ed ff | d4 2d ed ff 70 1a 00 f0 |@.......|.-..p...|
|00001800| 29 3b 0d 08 0c 64 a4 00 | 12 62 a4 00 00 00 00 00 |);...d..|.b......|
|00001810| 08 00 00 00 12 00 00 00 | 00 00 00 00 07 ad a4 00 |........|........|
|00001820| 18 65 a4 00 18 65 a4 00 | 00 00 00 00 00 44 00 00 |.e...e..|.....D..|
|00001830| a5 34 00 00 40 00 00 00 | 34 f2 ec ff f4 fe ec ff |.4..@...|4.......|
|00001840| 00 00 00 f0 0d 08 73 6b | 18 66 a4 00 00 00 00 00 |......sk|.f......|
|00001850| 07 4d 79 74 14 67 a4 00 | 14 67 a4 00 00 00 00 00 |.Myt.g..|.g......|
|00001860| 00 34 00 00 a5 80 00 00 | 40 74 2a 04 64 99 ec ff |.4......|@t*.d...|
|00001870| 44 c8 ec ff 20 22 00 f0 | 54 68 65 20 66 69 6c 65 |D... "..|The file|
|00001880| 20 4d 79 74 65 73 74 2e | 70 6d 20 73 68 6f 75 6c | Mytest.|pm shoul|
|00001890| 64 20 73 74 61 72 74 20 | 77 69 74 68 20 73 6f 6d |d start |with som|
|000018a0| 65 74 68 69 6e 67 20 6c | 69 6b 65 20 74 68 69 73 |ething l|ike this|
|000018b0| 3a 0d 08 74 14 00 00 00 | 00 00 00 00 07 4d 79 74 |:..t....|.....Myt|
|000018c0| 12 68 a4 00 12 68 a4 00 | 00 00 00 00 07 20 4d 6b |.h...h..|..... Mk|
|000018d0| 0c 69 a4 00 12 68 a4 00 | 0c 69 a4 00 00 00 00 00 |.i...h..|.i......|
|000018e0| 00 80 00 00 a5 54 00 00 | 40 90 5f 01 5d 32 ec ff |.....T..|@._.]2..|
|000018f0| 6d 59 ec ff 70 1a 00 f0 | 70 61 63 6b 61 67 65 20 |mY..p...|package |
|00001900| 4d 79 74 65 73 74 3b 0d | 08 22 20 6c 0c 6a a4 00 |Mytest;.|." l.j..|
|00001910| 12 68 a4 00 00 00 00 00 | 08 41 2d 52 12 00 00 00 |.h......|.A-R....|
|00001920| 00 00 00 00 07 74 6f 2f | 18 6b a4 00 18 6b a4 00 |.....to/|.k...k..|
|00001930| 00 00 00 00 00 54 00 00 | a5 48 00 00 40 00 00 00 |.....T..|.H..@...|
|00001940| cd 1d ec ff 8d 2a ec ff | 00 00 00 f0 0d 08 20 2e |.....*..|...... .|
|00001950| 18 6c a4 00 00 00 00 00 | 07 52 49 53 12 6d a4 00 |.l......|.RIS.m..|
|00001960| 12 6d a4 00 00 00 00 00 | 07 65 73 74 0c 6e a4 00 |.m......|.est.n..|
|00001970| 12 6d a4 00 0c 6e a4 00 | 00 00 00 00 00 48 00 00 |.m...n..|.....H..|
|00001980| 25 2c 00 00 40 70 8e 01 | cd cc eb ff dd f3 eb ff |%,..@p..|........|
|00001990| 70 1a 00 f0 72 65 71 75 | 69 72 65 20 45 78 70 6f |p...requ|ire Expo|
|000019a0| 72 74 65 72 3b 0d 00 00 | 00 2c 00 00 a5 58 00 00 |rter;...|.,...X..|
|000019b0| 40 50 bd 01 ed 9d eb ff | fd c4 eb ff 70 1a 00 f0 |@P......|....p...|
|000019c0| 72 65 71 75 69 72 65 20 | 44 79 6e 61 4c 6f 61 64 |require |DynaLoad|
|000019d0| 65 72 3b 0d 08 79 74 65 | 0c 6f a4 00 12 6d a4 00 |er;..yte|.o...m..|
|000019e0| 00 00 00 00 08 ad a4 00 | 12 00 00 00 00 00 00 00 |........|........|
|000019f0| 07 00 00 00 18 70 a4 00 | 18 70 a4 00 00 00 00 00 |.....p..|.p......|
|00001a00| 00 58 00 00 a5 48 00 00 | 40 00 00 00 5d 89 eb ff |.X...H..|@...]...|
|00001a10| 1d 96 eb ff 00 00 00 f0 | 0d 08 a4 00 18 71 a4 00 |........|.....q..|
|00001a20| 00 00 00 00 07 6f 77 2c | 12 72 a4 00 12 72 a4 00 |.....ow,|.r...r..|
|00001a30| 00 00 00 00 07 72 65 20 | 0c 73 a4 00 12 72 a4 00 |.....re |.s...r..|
|00001a40| 0c 73 a4 00 00 00 00 00 | 00 48 00 00 25 38 00 00 |.s......|.H..%8..|
|00001a50| 40 90 d6 02 5d 38 eb ff | 6d 5f eb ff 70 1a 00 f0 |@...]8..|m_..p...|
|00001a60| 40 49 53 41 20 3d 20 71 | 77 28 45 78 70 6f 72 74 |@ISA = q|w(Export|
|00001a70| 65 72 20 44 79 6e 61 4c | 6f 61 64 65 72 29 3b 0d |er DynaL|oader);.|
|00001a80| 00 38 00 00 25 64 00 00 | 40 80 97 06 7d 09 eb ff |.8..%d..|@...}...|
|00001a90| 8d 30 eb ff 70 1a 00 f0 | 23 20 49 74 65 6d 73 20 |.0..p...|# Items |
|00001aa0| 74 6f 20 65 78 70 6f 72 | 74 20 69 6e 74 6f 20 63 |to expor|t into c|
|00001ab0| 61 6c 6c 65 72 73 20 6e | 61 6d 65 73 70 61 63 65 |allers n|amespace|
|00001ac0| 20 62 79 20 64 65 66 61 | 75 6c 74 2e 20 4e 6f 74 | by defa|ult. Not|
|00001ad0| 65 3a 20 64 6f 20 6e 6f | 74 20 65 78 70 6f 72 74 |e: do no|t export|
|00001ae0| 0d 00 00 00 00 64 00 00 | 25 60 00 00 40 30 51 06 |.....d..|%`..@0Q.|
|00001af0| 9d da ea ff ad 01 eb ff | 70 1a 00 f0 23 20 6e 61 |........|p...# na|
|00001b00| 6d 65 73 20 62 79 20 64 | 65 66 61 75 6c 74 20 77 |mes by d|efault w|
|00001b10| 69 74 68 6f 75 74 20 61 | 20 76 65 72 79 20 67 6f |ithout a| very go|
|00001b20| 6f 64 20 72 65 61 73 6f | 6e 2e 20 55 73 65 20 45 |od reaso|n. Use E|
|00001b30| 58 50 4f 52 54 5f 4f 4b | 20 69 6e 73 74 65 61 64 |XPORT_OK| instead|
|00001b40| 2e 0d 00 00 00 60 00 00 | 25 5c 00 00 40 50 22 06 |.....`..|%\..@P".|
|00001b50| bd ab ea ff cd d2 ea ff | 70 1a 00 f0 23 20 44 6f |........|p...# Do|
|00001b60| 20 6e 6f 74 20 73 69 6d | 70 6c 79 20 65 78 70 6f | not sim|ply expo|
|00001b70| 72 74 20 61 6c 6c 20 79 | 6f 75 72 20 70 75 62 6c |rt all y|our publ|
|00001b80| 69 63 20 66 75 6e 63 74 | 69 6f 6e 73 2f 6d 65 74 |ic funct|ions/met|
|00001b90| 68 6f 64 73 2f 63 6f 6e | 73 74 61 6e 74 73 2e 0d |hods/con|stants..|
|00001ba0| 00 5c 00 00 a5 50 00 00 | 40 b0 30 01 dd 7c ea ff |.\...P..|@.0..|..|
|00001bb0| ed a3 ea ff 70 1a 00 f0 | 40 45 58 50 4f 52 54 20 |....p...|@EXPORT |
|00001bc0| 3d 20 71 77 28 0d 08 00 | 0c 74 a4 00 12 72 a4 00 |= qw(...|.t...r..|
|00001bd0| 00 00 00 00 08 bd a4 00 | 12 00 00 00 00 00 00 00 |........|........|
|00001be0| 07 73 65 20 18 75 a4 00 | 18 75 a4 00 00 00 00 00 |.se .u..|.u......|
|00001bf0| 00 50 00 00 a5 48 00 00 | 40 00 00 00 4d 68 ea ff |.P...H..|@...Mh..|
|00001c00| 0d 75 ea ff 00 00 00 f0 | 0d 08 05 05 18 76 a4 00 |.u......|.....v..|
|00001c10| 00 00 00 00 07 00 00 00 | 12 77 a4 00 12 77 a4 00 |........|.w...w..|
|00001c20| 00 00 00 00 07 05 05 05 | 0c 78 a4 00 12 77 a4 00 |........|.x...w..|
|00001c30| 0c 78 a4 00 00 00 00 00 | 00 48 00 00 25 1c 00 00 |.x......|.H..%...|
|00001c40| 40 e0 2e 00 4d 17 ea ff | 5d 3e ea ff 70 1a 00 f0 |@...M...|]>..p...|
|00001c50| 29 3b 0d 00 00 1c 00 00 | a5 54 00 00 40 e0 a5 01 |);......|.T..@...|
|00001c60| 6d e8 e9 ff 7d 0f ea ff | 70 1a 00 f0 24 56 45 52 |m...}...|p...$VER|
|00001c70| 53 49 4f 4e 20 3d 20 27 | 30 2e 30 31 27 3b 0d 08 |SION = '|0.01';..|
|00001c80| 0c 79 a4 00 12 77 a4 00 | 00 00 00 00 08 00 00 00 |.y...w..|........|
|00001c90| 12 00 00 00 00 00 00 00 | 07 c7 a4 00 18 7a a4 00 |........|.....z..|
|00001ca0| 18 7a a4 00 00 00 00 00 | 00 54 00 00 a5 48 00 00 |.z......|.T...H..|
|00001cb0| 40 00 00 00 dd d3 e9 ff | 9d e0 e9 ff 00 00 00 f0 |@.......|........|
|00001cc0| 0d 08 64 20 18 7b a4 00 | 00 00 00 00 07 6f 6c 6c |..d .{..|.....oll|
|00001cd0| 12 7c a4 00 12 7c a4 00 | 00 00 00 00 07 0d 08 05 |.|...|..|........|
|00001ce0| 0c 7d a4 00 12 7c a4 00 | 0c 7d a4 00 00 00 00 00 |.}...|..|.}......|
|00001cf0| 00 48 00 00 a5 5c 00 00 | 40 60 61 02 dd 82 e9 ff |.H...\..|@`a.....|
|00001d00| ed a9 e9 ff 70 1a 00 f0 | 62 6f 6f 74 73 74 72 61 |....p...|bootstra|
|00001d10| 70 20 4d 79 74 65 73 74 | 20 24 56 45 52 53 49 4f |p Mytest| $VERSIO|
|00001d20| 4e 3b 0d 08 0c 7e a4 00 | 12 7c a4 00 00 00 00 00 |N;...~..|.|......|
|00001d30| 08 c8 a4 00 12 00 00 00 | 00 00 00 00 07 00 00 00 |........|........|
|00001d40| 18 7f a4 00 18 7f a4 00 | 00 00 00 00 00 5c 00 00 |........|.....\..|
|00001d50| a5 48 00 00 40 00 00 00 | 4d 6e e9 ff 0d 7b e9 ff |.H..@...|Mn...{..|
|00001d60| 00 00 00 f0 0d 08 a4 00 | 18 80 a4 00 00 00 00 00 |........|........|
|00001d70| 07 78 61 6d 12 81 a4 00 | 12 81 a4 00 00 00 00 00 |.xam....|........|
|00001d80| 07 00 00 00 0c 82 a4 00 | 12 81 a4 00 0c 82 a4 00 |........|........|
|00001d90| 00 00 00 00 00 48 00 00 | a5 60 00 00 40 40 90 02 |.....H..|.`..@@..|
|00001da0| 4d 1d e9 ff 5d 44 e9 ff | 70 1a 00 f0 23 20 50 72 |M...]D..|p...# Pr|
|00001db0| 65 6c 6f 61 64 65 64 20 | 6d 65 74 68 6f 64 73 20 |eloaded |methods |
|00001dc0| 67 6f 20 68 65 72 65 2e | 0d 08 67 75 0c 83 a4 00 |go here.|..gu....|
|00001dd0| 12 81 a4 00 00 00 00 00 | 08 72 6e 20 12 00 00 00 |........|.rn ....|
|00001de0| 00 00 00 00 07 61 72 67 | 18 84 a4 00 18 84 a4 00 |.....arg|........|
|00001df0| 00 00 00 00 00 60 00 00 | a5 48 00 00 40 00 00 00 |.....`..|.H..@...|
|00001e00| bd 08 e9 ff 7d 15 e9 ff | 00 00 00 f0 0d 08 64 2e |....}...|......d.|
|00001e10| 18 85 a4 00 00 00 00 00 | 07 cf a4 00 12 86 a4 00 |........|........|
|00001e20| 12 86 a4 00 00 00 00 00 | 07 6f 6c 6c 0c 87 a4 00 |........|.oll....|
|00001e30| 12 86 a4 00 0c 87 a4 00 | 00 00 00 00 00 48 00 00 |........|.....H..|
|00001e40| a5 94 00 00 40 00 53 07 | bd b7 e8 ff cd de e8 ff |....@.S.|........|
|00001e50| 70 1a 00 f0 23 20 41 75 | 74 6f 6c 6f 61 64 20 6d |p...# Au|toload m|
|00001e60| 65 74 68 6f 64 73 20 67 | 6f 20 61 66 74 65 72 20 |ethods g|o after |
|00001e70| 5f 5f 45 4e 44 5f 5f 2c | 20 61 6e 64 20 61 72 65 |__END__,| and are|
|00001e80| 20 70 72 6f 63 65 73 73 | 65 64 20 62 79 20 74 68 | process|ed by th|
|00001e90| 65 20 61 75 74 6f 73 70 | 6c 69 74 20 70 72 6f 67 |e autosp|lit prog|
|00001ea0| 72 61 6d 2e 0d 08 20 20 | 0c 88 a4 00 12 86 a4 00 |ram... |........|
|00001eb0| 00 00 00 00 08 20 20 52 | 12 00 00 00 00 00 00 00 |..... R|........|
|00001ec0| 07 69 6e 70 18 89 a4 00 | 18 89 a4 00 00 00 00 00 |.inp....|........|
|00001ed0| 00 94 00 00 a5 48 00 00 | 40 00 00 00 2d a3 e8 ff |.....H..|@...-...|
|00001ee0| ed af e8 ff 00 00 00 f0 | 0d 08 52 45 18 8a a4 00 |........|..RE....|
|00001ef0| 00 00 00 00 07 d2 a4 00 | 12 8b a4 00 12 8b a4 00 |........|........|
|00001f00| 00 00 00 00 07 00 00 00 | 0c 8c a4 00 12 8b a4 00 |........|........|
|00001f10| 0c 8c a4 00 00 00 00 00 | 00 48 00 00 25 1c 00 00 |........|.H..%...|
|00001f20| 40 e0 2e 00 2d 52 e8 ff | 3d 79 e8 ff 70 1a 00 f0 |@...-R..|=y..p...|
|00001f30| 31 3b 0d 00 00 1c 00 00 | 25 20 00 00 40 10 a4 00 |1;......|% ..@...|
|00001f40| 4d 23 e8 ff 5d 4a e8 ff | 70 1a 00 f0 5f 5f 45 4e |M#..]J..|p...__EN|
|00001f50| 44 5f 5f 0d 00 20 00 00 | a5 8c 00 00 40 f0 ae 06 |D__.. ..|....@...|
|00001f60| 6d f4 e7 ff 7d 1b e8 ff | 70 1a 00 f0 23 20 42 65 |m...}...|p...# Be|
|00001f70| 6c 6f 77 20 69 73 20 74 | 68 65 20 73 74 75 62 20 |low is t|he stub |
|00001f80| 6f 66 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |of docum|entation|
|00001f90| 20 66 6f 72 20 79 6f 75 | 72 20 6d 6f 64 75 6c 65 | for you|r module|
|00001fa0| 2e 20 59 6f 75 20 62 65 | 74 74 65 72 20 65 64 69 |. You be|tter edi|
|00001fb0| 74 20 69 74 21 0d 08 65 | 0c 8d a4 00 12 8b a4 00 |t it!..e|........|
|00001fc0| 00 00 00 00 08 6e 65 20 | 12 00 00 00 00 00 00 00 |.....ne |........|
|00001fd0| 07 70 74 69 18 8e a4 00 | 18 8e a4 00 00 00 00 00 |.pti....|........|
|00001fe0| 00 8c 00 00 a5 34 00 00 | 40 00 00 00 dd df e7 ff |.....4..|@.......|
|00001ff0| 9d ec e7 ff 00 00 00 f0 | 0d 08 2e 00 18 8f a4 00 |........|........|
|00002000| 00 00 00 00 07 1a 00 f0 | 14 90 a4 00 14 90 a4 00 |........|........|
|00002010| 00 00 00 00 00 34 00 00 | 01 10 00 00 41 9c 08 04 |.....4..|....A...|
|00002020| 00 00 00 00 00 10 00 00 | 02 18 00 00 00 04 00 00 |........|........|
|00002030| 00 00 00 00 14 90 a4 00 | 00 00 00 00 00 18 00 00 |........|........|
|00002040| a5 8c 00 00 40 9c 08 04 | 1e 45 e5 ff fe 73 e5 ff |....@...|.E...s..|
|00002050| 20 22 00 f0 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00002060| 41 6e 64 20 74 68 65 20 | 4d 79 74 65 73 74 2e 78 |And the |Mytest.x|
|00002070| 73 20 66 69 6c 65 20 73 | 68 6f 75 6c 64 20 6c 6f |s file s|hould lo|
|00002080| 6f 6b 20 73 6f 6d 65 74 | 68 69 6e 67 20 6c 69 6b |ok somet|hing lik|
|00002090| 65 20 74 68 69 73 3a 0d | 08 2c 00 00 14 00 00 00 |e this:.|.,......|
|000020a0| 00 00 00 00 07 00 00 00 | 12 91 a4 00 12 91 a4 00 |........|........|
|000020b0| 00 00 00 00 07 63 70 6c | 0c 92 a4 00 12 91 a4 00 |.....cpl|........|
|000020c0| 0c 92 a4 00 00 00 00 00 | 00 8c 00 00 25 2c 00 00 |........|....%,..|
|000020d0| 40 e0 a5 01 17 de e4 ff | 27 05 e5 ff 70 1a 00 f0 |@.......|'...p...|
|000020e0| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|000020f0| 75 73 0d 00 00 2c 00 00 | 25 28 00 00 40 40 19 01 |us...,..|%(..@@..|
|00002100| 37 af e4 ff 47 d6 e4 ff | 70 1a 00 f0 65 78 74 65 |7...G...|p...exte|
|00002110| 72 6e 20 22 43 22 20 7b | 0d 00 00 00 00 28 00 00 |rn "C" {|.....(..|
|00002120| 25 20 00 00 40 a0 8c 00 | 57 80 e4 ff 67 a7 e4 ff |% ..@...|W...g...|
|00002130| 70 1a 00 f0 23 65 6e 64 | 69 66 0d 00 00 20 00 00 |p...#end|if... ..|
|00002140| 25 2c 00 00 40 50 bd 01 | 77 51 e4 ff 87 78 e4 ff |%,..@P..|wQ...x..|
|00002150| 70 1a 00 00 23 69 6e 63 | 6c 75 64 65 20 22 45 58 |p...#inc|lude "EX|
|00002160| 54 45 52 4e 2e 68 22 0d | 00 2c 00 00 25 2c 00 00 |TERN.h".|.,..%,..|
|00002170| 40 70 8e 01 97 22 e4 ff | a7 49 e4 ff 70 1a 00 00 |@p..."..|.I..p...|
|00002180| 23 69 6e 63 6c 75 64 65 | 20 22 70 65 72 6c 2e 68 |#include| "perl.h|
|00002190| 22 0d 00 00 00 2c 00 00 | 25 2c 00 00 40 70 8e 01 |"....,..|%,..@p..|
|000021a0| b7 f3 e3 ff c7 1a e4 ff | 70 1a 00 00 23 69 6e 63 |........|p...#inc|
|000021b0| 6c 75 64 65 20 22 58 53 | 55 42 2e 68 22 0d 00 00 |lude "XS|UB.h"...|
|000021c0| 00 2c 00 00 25 2c 00 00 | 40 e0 a5 01 d7 c4 e3 ff |.,..%,..|@.......|
|000021d0| e7 eb e3 ff 70 1a 00 00 | 23 69 66 64 65 66 20 5f |....p...|#ifdef _|
|000021e0| 5f 63 70 6c 75 73 70 6c | 75 73 0d 00 00 2c 00 00 |_cpluspl|us...,..|
|000021f0| 25 1c 00 00 40 70 17 00 | f7 95 e3 ff 07 bd e3 ff |%...@p..|........|
|00002200| 70 1a 00 00 7d 0d 00 00 | 00 1c 00 00 a5 48 00 00 |p...}...|.....H..|
|00002210| 40 a0 8c 00 17 67 e3 ff | 27 8e e3 ff 70 1a 00 00 |@....g..|'...p...|
|00002220| 23 65 6e 64 69 66 0d 08 | 0c 93 a4 00 12 91 a4 00 |#endif..|........|
|00002230| 00 00 00 00 08 70 74 2c | 12 00 00 00 00 00 00 00 |.....pt,|........|
|00002240| 07 6f 72 6d 18 94 a4 00 | 18 94 a4 00 00 00 00 00 |.orm....|........|
|00002250| 00 48 00 00 a5 48 00 00 | 40 00 00 00 87 52 e3 ff |.H...H..|@....R..|
|00002260| 47 5f e3 ff 00 00 00 00 | 0d 08 76 69 18 95 a4 00 |G_......|..vi....|
|00002270| 00 00 00 00 07 20 65 78 | 12 96 a4 00 12 96 a4 00 |..... ex|........|
|00002280| 00 00 00 00 07 74 69 6e | 0c 97 a4 00 12 96 a4 00 |.....tin|........|
|00002290| 0c 97 a4 00 00 00 00 00 | 00 48 00 00 a5 58 00 00 |........|.H...X..|
|000022a0| 40 50 bd 01 87 01 e3 ff | 97 28 e3 ff 70 1a 00 00 |@P......|.(..p...|
|000022b0| 50 52 4f 54 4f 54 59 50 | 45 53 3a 20 44 49 53 41 |PROTOTYP|ES: DISA|
|000022c0| 42 4c 45 0d 08 61 6e 67 | 0c 98 a4 00 12 96 a4 00 |BLE..ang|........|
|000022d0| 00 00 00 00 08 74 61 74 | 12 00 00 00 00 00 00 00 |.....tat|........|
|000022e0| 07 74 68 65 18 99 a4 00 | 18 99 a4 00 00 00 00 00 |.the....|........|
|000022f0| 00 58 00 00 a5 48 00 00 | 40 00 00 00 f7 ec e2 ff |.X...H..|@.......|
|00002300| b7 f9 e2 ff 00 00 00 00 | 0d 08 74 68 18 9a a4 00 |........|..th....|
|00002310| 00 00 00 00 07 6e 67 20 | 12 9b a4 00 12 9b a4 00 |.....ng |........|
|00002320| 00 00 00 00 07 6e 64 20 | 0c 9c a4 00 12 9b a4 00 |.....nd |........|
|00002330| 0c 9c a4 00 00 00 00 00 | 00 48 00 00 a5 6c 00 00 |........|.H...l..|
|00002340| 40 80 a9 03 f7 9b e2 ff | 07 c3 e2 ff 70 1a 00 00 |@.......|....p...|
|00002350| 4d 4f 44 55 4c 45 20 3d | 20 4d 79 74 65 73 74 20 |MODULE =| Mytest |
|00002360| 20 20 20 20 20 20 20 20 | 50 41 43 4b 41 47 45 20 | |PACKAGE |
|00002370| 3d 20 4d 79 74 65 73 74 | 0d 08 28 30 0c 9d a4 00 |= Mytest|..(0....|
|00002380| 12 9b a4 00 00 00 00 00 | 08 32 22 20 12 00 00 00 |........|.2" ....|
|00002390| 00 00 00 00 07 20 32 22 | 18 9e a4 00 18 9e a4 00 |..... 2"|........|
|000023a0| 00 00 00 00 00 6c 00 00 | a5 34 00 00 40 00 00 00 |.....l..|.4..@...|
|000023b0| 67 87 e2 ff 27 94 e2 ff | 00 00 00 00 0d 08 20 3f |g...'...|...... ?|
|000023c0| 18 9f a4 00 00 00 00 00 | 07 20 22 6e 14 a0 a4 00 |........|. "n....|
|000023d0| 14 a0 a4 00 00 00 00 00 | 00 34 00 00 a5 84 00 00 |........|.4......|
|000023e0| 40 74 24 04 97 2e e2 ff | 77 5d e2 ff 20 22 00 00 |@t$.....|w].. "..|
|000023f0| 4c 65 74 27 73 20 65 64 | 69 74 20 74 68 65 20 2e |Let's ed|it the .|
|00002400| 78 73 20 66 69 6c 65 20 | 62 79 20 61 64 64 69 6e |xs file |by addin|
|00002410| 67 20 74 68 69 73 20 74 | 6f 20 74 68 65 20 65 6e |g this t|o the en|
|00002420| 64 20 6f 66 20 74 68 65 | 20 66 69 6c 65 3a 0d 08 |d of the| file:..|
|00002430| 14 00 00 00 00 00 00 00 | 07 d9 a4 00 12 a1 a4 00 |........|........|
|00002440| 12 a1 a4 00 00 00 00 00 | 07 da a4 00 0c a2 a4 00 |........|........|
|00002450| 12 a1 a4 00 0c a2 a4 00 | 00 00 00 00 00 84 00 00 |........|........|
|00002460| 25 20 00 00 40 c0 5d 00 | 90 c7 e1 ff a0 ee e1 ff |% ..@.].|........|
|00002470| 70 1a 00 00 76 6f 69 64 | 0d 00 00 00 00 20 00 00 |p...void|..... ..|
|00002480| 25 20 00 00 40 10 a4 00 | b0 98 e1 ff c0 bf e1 ff |% ..@...|........|
|00002490| 70 1a 00 00 68 65 6c 6c | 6f 28 29 0d 00 20 00 00 |p...hell|o().. ..|
|000024a0| 25 28 00 00 40 b0 30 01 | d0 69 e1 ff e0 90 e1 ff |%(..@.0.|.i......|
|000024b0| 70 1a 00 00 20 20 20 20 | 20 20 20 20 43 4f 44 45 |p... | CODE|
|000024c0| 3a 0d 00 00 00 28 00 00 | a5 64 00 00 40 e0 1c 03 |:....(..|.d..@...|
|000024d0| f0 3a e1 ff 00 62 e1 ff | 70 1a 00 00 20 20 20 20 |.:...b..|p... |
|000024e0| 20 20 20 20 70 72 69 6e | 74 66 28 22 48 65 6c 6c | prin|tf("Hell|
|000024f0| 6f 2c 20 77 6f 72 6c 64 | 21 5c 6e 22 29 3b 0d 08 |o, world|!\n");..|
|00002500| 0c a3 a4 00 12 a1 a4 00 | 00 00 00 00 08 65 20 74 |........|.....e t|
|00002510| 12 00 00 00 00 00 00 00 | 07 44 4c 5f 18 a4 a4 00 |........|.DL_....|
|00002520| 18 a4 a4 00 00 00 00 00 | 00 64 00 00 a5 34 00 00 |........|.d...4..|
|00002530| 40 00 00 00 60 26 e1 ff | 20 33 e1 ff 00 00 00 00 |@...`&..| 3......|
|00002540| 0d 08 6f 74 18 a5 a4 00 | 00 00 00 00 07 72 67 75 |..ot....|.....rgu|
|00002550| 14 a6 a4 00 14 a6 a4 00 | 00 00 00 00 00 34 00 00 |........|.....4..|
|00002560| 05 84 00 00 00 5c a2 07 | 90 cd e0 ff 70 fc e0 ff |.....\..|....p...|
|00002570| 20 22 00 00 4e 6f 77 20 | 77 65 27 6c 6c 20 72 75 | "..Now |we'll ru|
|00002580| 6e 20 22 70 65 72 6c 20 | 4d 61 6b 65 66 69 6c 65 |n "perl |Makefile|
|00002590| 2e 50 4c 22 2e 20 20 54 | 68 69 73 20 77 69 6c 6c |.PL". T|his will|
|000025a0| 20 63 72 65 61 74 65 20 | 61 20 72 65 61 6c 20 4d | create |a real M|
|000025b0| 61 6b 65 66 69 6c 65 2c | 20 77 68 69 63 68 20 6d |akefile,| which m|
|000025c0| 61 6b 65 20 6e 65 65 64 | 73 2e 20 20 49 74 73 20 |ake need|s. Its |
|000025d0| 6f 75 74 70 75 74 20 6c | 6f 6f 6b 73 20 00 00 00 |output l|ooks ...|
|000025e0| 00 84 00 00 a5 58 00 00 | 40 64 22 01 69 95 e0 ff |.....X..|@d".i...|
|000025f0| 49 c4 e0 ff 20 22 00 00 | 73 6f 6d 65 74 68 69 6e |I... "..|somethin|
|00002600| 67 20 6c 69 6b 65 3a 0d | 08 65 61 74 14 00 00 00 |g like:.|.eat....|
|00002610| 00 00 00 00 07 73 69 6f | 12 a7 a4 00 12 a7 a4 00 |.....sio|........|
|00002620| 00 00 00 00 07 20 65 78 | 0c a8 a4 00 12 a7 a4 00 |..... ex|........|
|00002630| 0c a8 a4 00 00 00 00 00 | 00 58 00 00 25 2c 00 00 |........|.X..%,..|
|00002640| 40 e0 a5 01 62 2e e0 ff | 72 55 e0 ff 70 1a 00 00 |@...b...|rU..p...|
|00002650| 25 20 70 65 72 6c 20 4d | 61 6b 65 66 69 6c 65 2e |% perl M|akefile.|
|00002660| 50 4c 0d 00 00 2c 00 00 | 25 3c 00 00 40 50 34 03 |PL...,..|%<..@P4.|
|00002670| 82 ff df ff 92 26 e0 ff | 70 1a 00 00 43 68 65 63 |.....&..|p...Chec|
|00002680| 6b 69 6e 67 20 69 66 20 | 79 6f 75 72 20 6b 69 74 |king if |your kit|
|00002690| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2e 2e 2e 0d | is comp|lete....|
|000026a0| 00 3c 00 00 25 24 00 00 | 40 60 ea 00 a2 d0 df ff |.<..%$..|@`......|
|000026b0| b2 f7 df ff 70 1a 00 00 | 4c 6f 6f 6b 73 20 67 6f |....p...|Looks go|
|000026c0| 6f 64 0d 00 00 24 00 00 | 25 34 00 00 40 d0 78 02 |od...$..|%4..@.x.|
|000026d0| c2 a1 df ff d2 c8 df ff | 70 1a 00 00 57 72 69 74 |........|p...Writ|
|000026e0| 69 6e 67 20 4d 61 6b 65 | 66 69 6c 65 20 66 6f 72 |ing Make|file for|
|000026f0| 20 4d 79 74 65 73 74 0d | 00 34 00 00 a5 44 00 00 | Mytest.|.4...D..|
|00002700| 40 70 17 00 e2 72 df ff | f2 99 df ff 70 1a 00 00 |@p...r..|....p...|
|00002710| 25 0d 08 65 0c a9 a4 00 | 12 a7 a4 00 00 00 00 00 |%..e....|........|
|00002720| 08 20 74 68 12 00 00 00 | 00 00 00 00 07 6f 6e 2e |. th....|.....on.|
|00002730| 18 aa a4 00 18 aa a4 00 | 00 00 00 00 00 44 00 00 |........|.....D..|
|00002740| a5 34 00 00 40 00 00 00 | 52 5e df ff 12 6b df ff |.4..@...|R^...k..|
|00002750| 00 00 00 00 0d 08 2e 0d | 18 ab a4 00 00 00 00 00 |........|........|
|00002760| 07 20 3c 65 14 ac a4 00 | 14 ac a4 00 00 00 00 00 |. <e....|........|
|00002770| 00 34 00 00 05 7c 00 00 | 00 4c 67 07 82 05 df ff |.4...|..|.Lg.....|
|00002780| 62 34 df ff 20 22 00 00 | 4e 6f 77 2c 20 72 75 6e |b4.. "..|Now, run|
|00002790| 6e 69 6e 67 20 6d 61 6b | 65 20 77 69 6c 6c 20 70 |ning mak|e will p|
|000027a0| 72 6f 64 75 63 65 20 6f | 75 74 70 75 74 20 74 68 |roduce o|utput th|
|000027b0| 61 74 20 6c 6f 6f 6b 73 | 20 73 6f 6d 65 74 68 69 |at looks| somethi|
|000027c0| 6e 67 20 6c 69 6b 65 20 | 74 68 69 73 20 28 73 6f |ng like |this (so|
|000027d0| 6d 65 20 6c 6f 6e 67 20 | 6c 69 6e 65 73 20 73 68 |me long |lines sh|
|000027e0| 6f 72 74 65 6e 65 64 20 | 66 6f 72 20 00 7c 00 00 |ortened |for .|..|
|000027f0| a5 50 00 00 40 68 94 00 | 5b cd de ff 3b fc de ff |.P..@h..|[...;...|
|00002800| 20 22 00 00 63 6c 61 72 | 69 74 79 29 3a 0d 08 50 | "..clar|ity):..P|
|00002810| 14 00 00 00 00 00 00 00 | 07 6f 20 6c 12 ad a4 00 |........|.o l....|
|00002820| 12 ad a4 00 00 00 00 00 | 07 6e 73 69 0c ae a4 00 |........|.nsi....|
|00002830| 12 ad a4 00 0c ae a4 00 | 00 00 00 00 00 50 00 00 |........|.....P..|
|00002840| 25 20 00 00 40 a0 8c 00 | 54 66 de ff 64 8d de ff |% ..@...|Tf..d...|
|00002850| 70 1a 00 00 25 20 6d 61 | 6b 65 0d 00 00 20 00 00 |p...% ma|ke... ..|
|00002860| 25 44 00 00 40 80 a9 03 | 74 37 de ff 84 5e de ff |%D..@...|t7...^..|
|00002870| 70 1a 00 00 75 6d 61 73 | 6b 20 30 20 26 26 20 63 |p...umas|k 0 && c|
|00002880| 70 20 4d 79 74 65 73 74 | 2e 70 6d 20 2e 2f 62 6c |p Mytest|.pm ./bl|
|00002890| 69 62 2f 4d 79 74 65 73 | 74 2e 70 6d 0d 00 00 00 |ib/Mytes|t.pm....|
|000028a0| 00 44 00 00 25 64 00 00 | 40 60 c6 06 94 08 de ff |.D..%d..|@`......|
|000028b0| a4 2f de ff 70 1a 00 00 | 70 65 72 6c 20 78 73 75 |./..p...|perl xsu|
|000028c0| 62 70 70 20 2d 74 79 70 | 65 6d 61 70 20 74 79 70 |bpp -typ|emap typ|
|000028d0| 65 6d 61 70 20 4d 79 74 | 65 73 74 2e 78 73 20 3e |emap Myt|est.xs >|
|000028e0| 4d 79 74 65 73 74 2e 74 | 63 20 26 26 20 6d 76 20 |Mytest.t|c && mv |
|000028f0| 4d 79 74 65 73 74 2e 74 | 63 20 4d 79 74 65 73 74 |Mytest.t|c Mytest|
|00002900| 2e 63 0d 00 00 64 00 00 | 25 28 00 00 40 20 48 01 |.c...d..|%(..@ H.|
|00002910| b4 d9 dd ff c4 00 de ff | 70 1a 00 00 63 63 20 2d |........|p...cc -|
|00002920| 63 20 4d 79 74 65 73 74 | 2e 63 0d 00 00 28 00 00 |c Mytest|.c...(..|
|00002930| 25 3c 00 00 40 70 05 03 | d4 aa dd ff e4 d1 dd ff |%<..@p..|........|
|00002940| 70 1a 00 00 52 75 6e 6e | 69 6e 67 20 4d 6b 62 6f |p...Runn|ing Mkbo|
|00002950| 6f 74 73 74 72 61 70 20 | 66 6f 72 20 4d 79 74 65 |otstrap |for Myte|
|00002960| 73 74 20 28 29 0d 00 00 | 00 3c 00 00 25 2c 00 00 |st ()...|.<..%,..|
|00002970| 40 50 bd 01 f4 7b dd ff | 04 a3 dd ff 70 1a 00 00 |@P...{..|....p...|
|00002980| 63 68 6d 6f 64 20 36 34 | 34 20 4d 79 74 65 73 74 |chmod 64|4 Mytest|
|00002990| 2e 62 73 0d 00 2c 00 00 | 25 64 00 00 40 80 97 06 |.bs..,..|%d..@...|
|000029a0| 14 4d dd ff 24 74 dd ff | 70 1a 00 00 4c 44 5f 52 |.M..$t..|p...LD_R|
|000029b0| 55 4e 5f 50 41 54 48 3d | 22 22 20 6c 64 20 2d 6f |UN_PATH=|"" ld -o|
|000029c0| 20 2e 2f 62 6c 69 62 2f | 50 41 2d 52 49 53 43 31 | ./blib/|PA-RISC1|
|000029d0| 2e 31 2f 61 75 74 6f 2f | 4d 79 74 65 73 74 2f 4d |.1/auto/|Mytest/M|
|000029e0| 79 74 65 73 74 2e 73 6c | 20 2d 62 20 4d 79 74 65 |ytest.sl| -b Myte|
|000029f0| 73 74 2e 6f 0d 00 00 00 | 00 64 00 00 25 4c 00 00 |st.o....|.d..%L..|
|00002a00| 40 70 7c 04 34 1e dd ff | 44 45 dd ff 70 1a 00 00 |@p|.4...|DE..p...|
|00002a10| 63 68 6d 6f 64 20 37 35 | 35 20 2e 2f 62 6c 69 62 |chmod 75|5 ./blib|
|00002a20| 2f 50 41 2d 52 49 53 43 | 31 2e 31 2f 61 75 74 6f |/PA-RISC|1.1/auto|
|00002a30| 2f 4d 79 74 65 73 74 2f | 4d 79 74 65 73 74 2e 73 |/Mytest/|Mytest.s|
|00002a40| 6c 0d 00 00 00 4c 00 00 | 25 50 00 00 40 c0 c2 04 |l....L..|%P..@...|
|00002a50| 54 ef dc ff 64 16 dd ff | 70 1a 00 00 63 70 20 4d |T...d...|p...cp M|
|00002a60| 79 74 65 73 74 2e 62 73 | 20 2e 2f 62 6c 69 62 2f |ytest.bs| ./blib/|
|00002a70| 50 41 2d 52 49 53 43 31 | 2e 31 2f 61 75 74 6f 2f |PA-RISC1|.1/auto/|
|00002a80| 4d 79 74 65 73 74 2f 4d | 79 74 65 73 74 2e 62 73 |Mytest/M|ytest.bs|
|00002a90| 0d 00 00 00 00 50 00 00 | a5 74 00 00 40 70 7c 04 |.....P..|.t..@p|.|
|00002aa0| 74 c0 dc ff 84 e7 dc ff | 70 1a 00 00 63 68 6d 6f |t.......|p...chmo|
|00002ab0| 64 20 36 34 34 20 2e 2f | 62 6c 69 62 2f 50 41 2d |d 644 ./|blib/PA-|
|00002ac0| 52 49 53 43 31 2e 31 2f | 61 75 74 6f 2f 4d 79 74 |RISC1.1/|auto/Myt|
|00002ad0| 65 73 74 2f 4d 79 74 65 | 73 74 2e 62 73 0d 08 6f |est/Myte|st.bs..o|
|00002ae0| 0c af a4 00 12 ad a4 00 | 00 00 00 00 08 74 61 6e |........|.....tan|
|00002af0| 12 00 00 00 00 00 00 00 | 07 22 6d 61 18 b0 a4 00 |........|."ma....|
|00002b00| 18 b0 a4 00 00 00 00 00 | 00 74 00 00 a5 34 00 00 |........|.t...4..|
|00002b10| 40 00 00 00 e4 ab dc ff | a4 b8 dc ff 00 00 00 00 |@.......|........|
|00002b20| 0d 08 61 74 18 b1 a4 00 | 00 00 00 00 07 72 65 20 |..at....|.....re |
|00002b30| 14 b2 a4 00 14 b2 a4 00 | 00 00 00 00 00 34 00 00 |........|.....4..|
|00002b40| 05 88 00 00 00 ac b2 07 | 14 53 dc ff f4 81 dc ff |........|.S......|
|00002b50| 20 22 00 00 4e 6f 77 2c | 20 61 6c 74 68 6f 75 67 | "..Now,| althoug|
|00002b60| 68 20 74 68 65 72 65 20 | 69 73 20 61 6c 72 65 61 |h there |is alrea|
|00002b70| 64 79 20 61 20 74 65 73 | 74 2e 70 6c 20 74 65 6d |dy a tes|t.pl tem|
|00002b80| 70 6c 61 74 65 20 72 65 | 61 64 79 20 66 6f 72 20 |plate re|ady for |
|00002b90| 75 73 2c 20 66 6f 72 20 | 74 68 69 73 20 65 78 61 |us, for |this exa|
|00002ba0| 6d 70 6c 65 20 6f 6e 6c | 79 2c 20 77 65 27 6c 6c |mple onl|y, we'll|
|00002bb0| 20 63 72 65 61 74 65 20 | 61 20 73 70 65 63 69 61 | create |a specia|
|00002bc0| 6c 20 00 00 00 88 00 00 | a5 84 00 00 40 30 14 04 |l ......|....@0..|
|00002bd0| ed 1a dc ff cd 49 dc ff | 20 22 00 00 74 65 73 74 |.....I..| "..test|
|00002be0| 20 73 63 72 69 70 74 2e | 20 20 43 72 65 61 74 65 | script.| Create|
|00002bf0| 20 61 20 66 69 6c 65 20 | 63 61 6c 6c 65 64 20 68 | a file |called h|
|00002c00| 65 6c 6c 6f 20 74 68 61 | 74 20 6c 6f 6f 6b 73 20 |ello tha|t looks |
|00002c10| 6c 69 6b 65 20 74 68 69 | 73 3a 0d 08 14 00 00 00 |like thi|s:......|
|00002c20| 00 00 00 00 07 73 20 74 | 12 b3 a4 00 12 b3 a4 00 |.....s t|........|
|00002c30| 00 00 00 00 07 6e 73 69 | 0c b4 a4 00 12 b3 a4 00 |.....nsi|........|
|00002c40| 0c b4 a4 00 00 00 00 00 | 00 84 00 00 a5 58 00 00 |........|.....X..|
|00002c50| 40 a0 03 02 e6 b3 db ff | f6 da db ff 70 1a 00 00 |@.......|....p...|
|00002c60| 23 21 20 2f 6f 70 74 2f | 70 65 72 6c 35 2f 62 69 |#! /opt/|perl5/bi|
|00002c70| 6e 2f 70 65 72 6c 0d 08 | 0c b5 a4 00 12 b3 a4 00 |n/perl..|........|
|00002c80| 00 00 00 00 08 61 6c 20 | 12 00 00 00 00 00 00 00 |.....al |........|
|00002c90| 07 68 65 20 18 b6 a4 00 | 18 b6 a4 00 00 00 00 00 |.he ....|........|
|00002ca0| 00 58 00 00 a5 48 00 00 | 40 00 00 00 56 9f db ff |.X...H..|@...V...|
|00002cb0| 16 ac db ff 00 00 00 00 | 0d 08 65 20 18 b7 a4 00 |........|..e ....|
|00002cc0| 00 00 00 00 07 79 2e 0d | 12 b8 a4 00 12 b8 a4 00 |.....y..|........|
|00002cd0| 00 00 00 00 07 4d 79 74 | 0c b9 a4 00 12 b8 a4 00 |.....Myt|........|
|00002ce0| 0c b9 a4 00 00 00 00 00 | 00 48 00 00 a5 58 00 00 |........|.H...X..|
|00002cf0| 40 a0 03 02 56 4e db ff | 66 75 db ff 70 1a 00 00 |@...VN..|fu..p...|
|00002d00| 75 73 65 20 45 78 74 55 | 74 69 6c 73 3a 3a 74 65 |use ExtU|tils::te|
|00002d10| 73 74 6c 69 62 3b 0d 08 | 0c ba a4 00 12 b8 a4 00 |stlib;..|........|
|00002d20| 00 00 00 00 08 73 2e 20 | 12 00 00 00 00 00 00 00 |.....s. |........|
|00002d30| 07 73 65 74 18 bb a4 00 | 18 bb a4 00 00 00 00 00 |.set....|........|
|00002d40| 00 58 00 00 a5 48 00 00 | 40 00 00 00 c6 39 db ff |.X...H..|@....9..|
|00002d50| 86 46 db ff 00 00 00 00 | 0d 08 24 56 18 bc a4 00 |.F......|..$V....|
|00002d60| 00 00 00 00 07 61 6c 61 | 12 bd a4 00 12 bd a4 00 |.....ala|........|
|00002d70| 00 00 00 00 07 20 74 65 | 0c be a4 00 12 bd a4 00 |..... te|........|
|00002d80| 0c be a4 00 00 00 00 00 | 00 48 00 00 a5 50 00 00 |........|.H...P..|
|00002d90| 40 d0 01 01 c6 e8 da ff | d6 0f db ff 70 1a 00 00 |@.......|....p...|
|00002da0| 75 73 65 20 4d 79 74 65 | 73 74 3b 0d 08 20 64 79 |use Myte|st;.. dy|
|00002db0| 0c bf a4 00 12 bd a4 00 | 00 00 00 00 08 72 6f 75 |........|.....rou|
|00002dc0| 12 00 00 00 00 00 00 00 | 07 74 68 65 18 c0 a4 00 |........|.the....|
|00002dd0| 18 c0 a4 00 00 00 00 00 | 00 50 00 00 a5 48 00 00 |........|.P...H..|
|00002de0| 40 00 00 00 36 d4 da ff | f6 e0 da ff 00 00 00 00 |@...6...|........|
|00002df0| 0d 08 2e 0d 18 c1 a4 00 | 00 00 00 00 07 72 72 61 |........|.....rra|
|00002e00| 12 c2 a4 00 12 c2 a4 00 | 00 00 00 00 07 65 74 20 |........|.....et |
|00002e10| 0c c3 a4 00 12 c2 a4 00 | 0c c3 a4 00 00 00 00 00 |........|........|
|00002e20| 00 48 00 00 a5 54 00 00 | 40 00 77 01 36 83 da ff |.H...T..|@.w.6...|
|00002e30| 46 aa da ff 70 1a 00 00 | 4d 79 74 65 73 74 3a 3a |F...p...|Mytest::|
|00002e40| 68 65 6c 6c 6f 28 29 3b | 0d 08 6e 73 0c c4 a4 00 |hello();|..ns....|
|00002e50| 12 c2 a4 00 00 00 00 00 | 08 68 65 72 12 00 00 00 |........|.her....|
|00002e60| 00 00 00 00 07 20 69 6e | 18 c5 a4 00 18 c5 a4 00 |..... in|........|
|00002e70| 00 00 00 00 00 54 00 00 | a5 34 00 00 40 00 00 00 |.....T..|.4..@...|
|00002e80| a6 6e da ff 66 7b da ff | 00 00 00 00 0d 08 75 74 |.n..f{..|......ut|
|00002e90| 18 c6 a4 00 00 00 00 00 | 07 74 20 64 14 c7 a4 00 |........|.t d....|
|00002ea0| 14 c7 a4 00 00 00 00 00 | 00 34 00 00 01 10 00 00 |........|.4......|
|00002eb0| 41 40 9a 04 00 00 00 00 | 00 10 00 00 02 18 00 00 |A@......|........|
|00002ec0| 9c 05 00 00 00 00 00 00 | 14 c7 a4 00 00 00 00 00 |........|........|
|00002ed0| 00 18 00 00 a5 90 00 00 | 40 40 9a 04 6d 45 d8 ff |........|@@..mE..|
|00002ee0| 4d 74 d8 ff 20 22 00 00 | 16 00 00 00 b0 fc 07 00 |Mt.. "..|........|
|00002ef0| 00 00 00 00 4e 6f 77 20 | 77 65 20 72 75 6e 20 74 |....Now |we run t|
|00002f00| 68 65 20 73 63 72 69 70 | 74 20 61 6e 64 20 77 65 |he scrip|t and we|
|00002f10| 20 73 68 6f 75 6c 64 20 | 73 65 65 20 74 68 65 20 | should |see the |
|00002f20| 66 6f 6c 6c 6f 77 69 6e | 67 20 6f 75 74 70 75 74 |followin|g output|
|00002f30| 3a 0d 08 00 14 00 00 00 | 00 00 00 00 07 00 00 00 |:.......|........|
|00002f40| 12 c8 a4 00 12 c8 a4 00 | 00 00 00 00 07 6c 6c 6f |........|.....llo|
|00002f50| 0c c9 a4 00 12 c8 a4 00 | 0c c9 a4 00 00 00 00 00 |........|........|
|00002f60| 00 90 00 00 25 28 00 00 | 40 40 19 01 66 de d7 ff |....%(..|@@..f...|
|00002f70| 76 05 d8 ff 70 1a 00 00 | 25 20 70 65 72 6c 20 68 |v...p...|% perl h|
|00002f80| 65 6c 6c 6f 0d 00 00 00 | 00 28 00 00 25 28 00 00 |ello....|.(..%(..|
|00002f90| 40 b0 30 01 86 af d7 ff | 96 d6 d7 ff 70 1a 00 00 |@.0.....|....p...|
|00002fa0| 48 65 6c 6c 6f 2c 20 77 | 6f 72 6c 64 21 0d 00 00 |Hello, w|orld!...|
|00002fb0| 00 28 00 00 a5 44 00 00 | 40 70 17 00 a6 80 d7 ff |.(...D..|@p......|
|00002fc0| b6 a7 d7 ff 70 1a 00 00 | 25 0d 08 74 0c ca a4 00 |....p...|%..t....|
|00002fd0| 12 c8 a4 00 00 00 00 00 | 08 42 a4 00 12 00 00 00 |........|.B......|
|00002fe0| 00 00 00 00 07 65 72 6c | 18 cb a4 00 18 cb a4 00 |.....erl|........|
|00002ff0| 00 00 00 00 00 44 00 00 | a5 34 00 00 40 00 00 00 |.....D..|.4..@...|
|00003000| 16 6c d7 ff d6 78 d7 ff | 00 00 00 00 0d 08 a4 00 |.l...x..|........|
|00003010| 18 cc a4 00 00 00 00 00 | 07 65 72 6c 0a cd a4 00 |........|.erl....|
|00003020| 0a cd a4 00 00 00 00 00 | 00 34 00 00 a5 2c 00 00 |........|.4...,..|
|00003030| 40 58 02 01 76 0b d7 ff | 26 42 d7 ff 18 2b 00 00 |@X..v...|&B...+..|
|00003040| 45 78 61 6d 70 6c 65 20 | 32 0d 08 6d 0a ce a4 00 |Example |2..m....|
|00003050| 00 00 00 00 00 2c 00 00 | 05 88 00 00 00 e0 c6 07 |.....,..|........|
|00003060| 41 b6 d6 ff 21 e5 d6 ff | 20 22 00 00 4e 6f 77 20 |A...!...| "..Now |
|00003070| 6c 65 74 27 73 20 61 64 | 64 20 74 6f 20 6f 75 72 |let's ad|d to our|
|00003080| 20 65 78 74 65 6e 73 69 | 6f 6e 20 61 20 73 75 62 | extensi|on a sub|
|00003090| 72 6f 75 74 69 6e 65 20 | 74 68 61 74 20 77 69 6c |routine |that wil|
|000030a0| 6c 20 74 61 6b 65 20 61 | 20 73 69 6e 67 6c 65 20 |l take a| single |
|000030b0| 61 72 67 75 6d 65 6e 74 | 20 61 6e 64 20 72 65 74 |argument| and ret|
|000030c0| 75 72 6e 20 31 20 69 66 | 20 74 68 65 20 61 72 67 |urn 1 if| the arg|
|000030d0| 75 6d 65 6e 74 20 69 73 | 20 00 00 00 00 88 00 00 |ument is| .......|
|000030e0| a5 48 00 00 40 64 39 02 | 1a 7e d6 ff fa ac d6 ff |.H..@d9.|.~......|
|000030f0| 20 22 00 00 65 76 65 6e | 2c 20 30 20 69 66 20 74 | "..even|, 0 if t|
|00003100| 68 65 20 61 72 67 75 6d | 65 6e 74 20 69 73 20 6f |he argum|ent is o|
|00003110| 64 64 2e 0d 07 78 74 65 | 14 cf a4 00 14 cf a4 00 |dd...xte|........|
|00003120| 00 00 00 00 00 48 00 00 | a5 70 00 00 40 74 1f 03 |.....H..|.p..@t..|
|00003130| 43 0f d6 ff 23 3e d6 ff | 20 22 00 00 41 64 64 20 |C...#>..| "..Add |
|00003140| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 74 6f |the foll|owing to|
|00003150| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 4d 79 74 65 | the end| of Myte|
|00003160| 73 74 2e 78 73 3a 0d 08 | 14 00 00 00 00 00 00 00 |st.xs:..|........|
|00003170| 07 74 68 65 12 d0 a4 00 | 12 d0 a4 00 00 00 00 00 |.the....|........|
|00003180| 07 6f 70 6d 0c d1 a4 00 | 12 d0 a4 00 0c d1 a4 00 |.opm....|........|
|00003190| 00 00 00 00 00 70 00 00 | 25 1c 00 00 40 50 46 00 |.....p..|%...@PF.|
|000031a0| 3c a8 d5 ff 4c cf d5 ff | 70 1a 00 00 69 6e 74 0d |<...L...|p...int.|
|000031b0| 00 1c 00 00 25 28 00 00 | 40 20 48 01 5c 79 d5 ff |....%(..|@ H.\y..|
|000031c0| 6c a0 d5 ff 70 1a 00 00 | 69 73 5f 65 76 65 6e 28 |l...p...|is_even(|
|000031d0| 69 6e 70 75 74 29 0d 00 | 00 28 00 00 25 30 00 00 |input)..|.(..%0..|
|000031e0| 40 30 ec 01 7c 4a d5 ff | 8c 71 d5 ff 70 1a 00 00 |@0..|J..|.q..p...|
|000031f0| 20 20 20 20 20 20 20 20 | 69 6e 74 20 20 20 20 20 | |int |
|00003200| 69 6e 70 75 74 0d 00 00 | 00 30 00 00 25 28 00 00 |input...|.0..%(..|
|00003210| 40 b0 30 01 9c 1b d5 ff | ac 42 d5 ff 70 1a 00 00 |@.0.....|.B..p...|
|00003220| 20 20 20 20 20 20 20 20 | 43 4f 44 45 3a 0d 00 00 | |CODE:...|
|00003230| 00 28 00 00 25 3c 00 00 | 40 e0 1c 03 bc ec d4 ff |.(..%<..|@.......|
|00003240| cc 13 d5 ff 70 1a 00 00 | 20 20 20 20 20 20 20 20 |....p...| |
|00003250| 52 45 54 56 41 4c 20 3d | 20 28 69 6e 70 75 74 20 |RETVAL =| (input |
|00003260| 25 20 32 20 3d 3d 20 30 | 29 3b 0d 00 00 3c 00 00 |% 2 == 0|);...<..|
|00003270| 25 28 00 00 40 90 5f 01 | dc bd d4 ff ec e4 d4 ff |%(..@._.|........|
|00003280| 70 1a 00 00 20 20 20 20 | 20 20 20 20 4f 55 54 50 |p... | OUTP|
|00003290| 55 54 3a 0d 00 28 00 00 | a5 50 00 00 40 20 48 01 |UT:..(..|.P..@ H.|
|000032a0| fc 8e d4 ff 0c b6 d4 ff | 70 1a 00 00 20 20 20 20 |........|p... |
|000032b0| 20 20 20 20 52 45 54 56 | 41 4c 0d 08 0c d2 a4 00 | RETV|AL......|
|000032c0| 12 d0 a4 00 00 00 00 00 | 08 20 70 72 12 00 00 00 |........|. pr....|
|000032d0| 00 00 00 00 07 65 20 67 | 18 d3 a4 00 18 d3 a4 00 |.....e g|........|
|000032e0| 00 00 00 00 00 50 00 00 | a5 24 00 00 40 00 00 00 |.....P..|.$..@...|
|000032f0| 6c 7a d4 ff 2c 87 d4 ff | 00 00 00 00 0d 08 6c 65 |lz..,...|......le|
|00003300| 18 d4 a4 00 00 00 00 00 | 00 24 00 00 05 84 00 00 |........|.$......|
|00003310| 00 d4 66 07 9c 21 d4 ff | 7c 50 d4 ff 20 22 00 00 |..f..!..||P.. "..|
|00003320| 54 68 65 72 65 20 64 6f | 65 73 20 6e 6f 74 20 6e |There do|es not n|
|00003330| 65 65 64 20 74 6f 20 62 | 65 20 77 68 69 74 65 20 |eed to b|e white |
|00003340| 73 70 61 63 65 20 61 74 | 20 74 68 65 20 73 74 61 |space at| the sta|
|00003350| 72 74 20 6f 66 20 74 68 | 65 20 22 69 6e 74 20 69 |rt of th|e "int i|
|00003360| 6e 70 75 74 22 20 6c 69 | 6e 65 2c 20 62 75 74 20 |nput" li|ne, but |
|00003370| 69 74 20 69 73 20 75 73 | 65 66 75 6c 20 66 6f 72 |it is us|eful for|
|00003380| 20 69 6d 70 72 6f 76 69 | 6e 67 20 00 00 84 00 00 | improvi|ng .....|
|00003390| 25 60 00 00 40 c8 d8 04 | 75 e9 d3 ff 55 18 d4 ff |%`..@...|u...U...|
|000033a0| 20 22 00 00 72 65 61 64 | 61 62 69 6c 69 74 79 2e | "..read|ability.|
|000033b0| 20 20 54 68 65 20 73 65 | 6d 69 2d 63 6f 6c 6f 6e | The se|mi-colon|
|000033c0| 20 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | at the |end of t|
|000033d0| 68 61 74 20 6c 69 6e 65 | 20 69 73 20 61 6c 73 6f |hat line| is also|
|000033e0| 20 6f 70 74 69 6f 6e 61 | 6c 2e 0d 00 00 60 00 00 | optiona|l....`..|
|000033f0| 05 84 00 00 00 2c 78 07 | 9e 7a d3 ff 7e a9 d3 ff |.....,x.|.z..~...|
|00003400| 20 22 00 00 41 6e 79 20 | 77 68 69 74 65 20 73 70 | "..Any |white sp|
|00003410| 61 63 65 20 6d 61 79 20 | 62 65 20 62 65 74 77 65 |ace may |be betwe|
|00003420| 65 6e 20 74 68 65 20 22 | 69 6e 74 22 20 61 6e 64 |en the "|int" and|
|00003430| 20 22 69 6e 70 75 74 22 | 2e 20 20 49 74 20 69 73 | "input"|. It is|
|00003440| 20 61 6c 73 6f 20 6f 6b | 61 79 20 66 6f 72 20 74 | also ok|ay for t|
|00003450| 68 65 20 66 6f 75 72 20 | 6c 69 6e 65 73 20 73 74 |he four |lines st|
|00003460| 61 72 74 69 6e 67 20 61 | 74 20 74 68 65 20 00 00 |arting a|t the ..|
|00003470| 00 84 00 00 05 84 00 00 | 00 40 d6 07 77 42 d3 ff |........|.@..wB..|
|00003480| 57 71 d3 ff 20 22 00 00 | 22 43 4f 44 45 3a 22 20 |Wq.. "..|"CODE:" |
|00003490| 6c 69 6e 65 20 74 6f 20 | 6e 6f 74 20 62 65 20 69 |line to |not be i|
|000034a0| 6e 64 65 6e 74 65 64 2e | 20 20 48 6f 77 65 76 65 |ndented.| Howeve|
|000034b0| 72 2c 20 66 6f 72 20 72 | 65 61 64 61 62 69 6c 69 |r, for r|eadabili|
|000034c0| 74 79 20 70 75 72 70 6f | 73 65 73 2c 20 69 74 20 |ty purpo|ses, it |
|000034d0| 69 73 20 73 75 67 67 65 | 73 74 65 64 20 74 68 61 |is sugge|sted tha|
|000034e0| 74 20 79 6f 75 20 69 6e | 64 65 6e 74 20 74 68 65 |t you in|dent the|
|000034f0| 6d 20 38 20 00 84 00 00 | 25 3c 00 00 40 d4 56 02 |m 8 ....|%<..@.V.|
|00003500| 50 0a d3 ff 30 39 d3 ff | 20 22 00 00 73 70 61 63 |P...09..| "..spac|
|00003510| 65 73 20 28 6f 72 20 6f | 6e 65 20 6e 6f 72 6d 61 |es (or o|ne norma|
|00003520| 6c 20 74 61 62 20 73 74 | 6f 70 29 2e 0d 00 00 00 |l tab st|op).....|
|00003530| 00 3c 00 00 25 4c 00 00 | 40 24 b7 03 79 9b d2 ff |.<..%L..|@$..y...|
|00003540| 59 ca d2 ff 20 22 00 00 | 4e 6f 77 20 72 65 72 75 |Y... "..|Now reru|
|00003550| 6e 20 6d 61 6b 65 20 74 | 6f 20 72 65 62 75 69 6c |n make t|o rebuil|
|00003560| 64 20 6f 75 72 20 6e 65 | 77 20 73 68 61 72 65 64 |d our ne|w shared|
|00003570| 20 6c 69 62 72 61 72 79 | 2e 0d 00 00 00 4c 00 00 | library|.....L..|
|00003580| a5 90 00 00 40 a0 e2 07 | a2 2c d2 ff 82 5b d2 ff |....@...|.,...[..|
|00003590| 20 22 00 00 4e 6f 77 20 | 70 65 72 66 6f 72 6d 20 | "..Now |perform |
|000035a0| 74 68 65 20 73 61 6d 65 | 20 73 74 65 70 73 20 61 |the same| steps a|
|000035b0| 73 20 62 65 66 6f 72 65 | 2c 20 67 65 6e 65 72 61 |s before|, genera|
|000035c0| 74 69 6e 67 20 61 20 4d | 61 6b 65 66 69 6c 65 20 |ting a M|akefile |
|000035d0| 66 72 6f 6d 20 74 68 65 | 20 4d 61 6b 65 66 69 6c |from the| Makefil|
|000035e0| 65 2e 50 4c 20 66 69 6c | 65 2c 20 61 6e 64 20 72 |e.PL fil|e, and r|
|000035f0| 75 6e 6e 69 6e 67 20 6d | 61 6b 65 2e 0d 07 a4 00 |unning m|ake.....|
|00003600| 14 d5 a4 00 14 d5 a4 00 | 00 00 00 00 00 90 00 00 |........|........|
|00003610| 05 88 00 00 00 ac 97 07 | cb bd d1 ff ab ec d1 ff |........|........|
|00003620| 20 22 00 00 54 6f 20 74 | 65 73 74 20 74 68 61 74 | "..To t|est that|
|00003630| 20 6f 75 72 20 65 78 74 | 65 6e 73 69 6f 6e 20 77 | our ext|ension w|
|00003640| 6f 72 6b 73 2c 20 77 65 | 20 6e 6f 77 20 6e 65 65 |orks, we| now nee|
|00003650| 64 20 74 6f 20 6c 6f 6f | 6b 20 61 74 20 74 68 65 |d to loo|k at the|
|00003660| 20 66 69 6c 65 20 74 65 | 73 74 2e 70 6c 2e 20 20 | file te|st.pl. |
|00003670| 54 68 69 73 20 66 69 6c | 65 20 69 73 20 73 65 74 |This fil|e is set|
|00003680| 20 75 70 20 74 6f 20 69 | 6d 69 74 61 74 65 20 74 | up to i|mitate t|
|00003690| 68 65 20 00 00 88 00 00 | 05 88 00 00 00 d8 ad 07 |he .....|........|
|000036a0| a4 85 d1 ff 84 b4 d1 ff | 20 22 00 00 73 61 6d 65 |........| "..same|
|000036b0| 20 6b 69 6e 64 20 6f 66 | 20 74 65 73 74 69 6e 67 | kind of| testing|
|000036c0| 20 73 74 72 75 63 74 75 | 72 65 20 74 68 61 74 20 | structu|re that |
|000036d0| 50 65 72 6c 20 69 74 73 | 65 6c 66 20 68 61 73 2e |Perl its|elf has.|
|000036e0| 20 20 57 69 74 68 69 6e | 20 74 68 65 20 74 65 73 | Within| the tes|
|000036f0| 74 20 73 63 72 69 70 74 | 2c 20 79 6f 75 20 70 65 |t script|, you pe|
|00003700| 72 66 6f 72 6d 20 61 20 | 6e 75 6d 62 65 72 20 6f |rform a |number o|
|00003710| 66 20 74 65 73 74 73 20 | 74 6f 20 00 00 88 00 00 |f tests |to .....|
|00003720| 05 84 00 00 00 7c 52 07 | 7d 4d d1 ff 5d 7c d1 ff |.....|R.|}M..]|..|
|00003730| 20 22 00 00 63 6f 6e 66 | 69 72 6d 20 74 68 65 20 | "..conf|irm the |
|00003740| 62 65 68 61 76 69 6f 72 | 20 6f 66 20 74 68 65 20 |behavior| of the |
|00003750| 65 78 74 65 6e 73 69 6f | 6e 2c 20 70 72 69 6e 74 |extensio|n, print|
|00003760| 69 6e 67 20 22 6f 6b 22 | 20 77 68 65 6e 20 74 68 |ing "ok"| when th|
|00003770| 65 20 74 65 73 74 20 69 | 73 20 63 6f 72 72 65 63 |e test i|s correc|
|00003780| 74 2c 20 22 6e 6f 74 20 | 6f 6b 22 20 77 68 65 6e |t, "not |ok" when|
|00003790| 20 69 74 20 69 73 20 6e | 6f 74 2e 20 20 00 00 00 | it is n|ot. ...|
|000037a0| 00 84 00 00 05 84 00 00 | 00 b4 da 07 56 15 d1 ff |........|....V...|
|000037b0| 36 44 d1 ff 20 22 00 00 | 43 68 61 6e 67 65 20 74 |6D.. "..|Change t|
|000037c0| 68 65 20 70 72 69 6e 74 | 20 73 74 61 74 65 6d 65 |he print| stateme|
|000037d0| 6e 74 20 69 6e 20 74 68 | 65 20 42 45 47 49 4e 20 |nt in th|e BEGIN |
|000037e0| 62 6c 6f 63 6b 20 74 6f | 20 70 72 69 6e 74 20 22 |block to| print "|
|000037f0| 31 2e 2e 34 22 2c 20 61 | 6e 64 20 61 64 64 20 74 |1..4", a|nd add t|
|00003800| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 6f 64 |he follo|wing cod|
|00003810| 65 20 74 6f 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |e to the| end of |
|00003820| 74 68 65 20 00 84 00 00 | a5 4c 00 00 40 84 4b 00 |the ....|.L..@.K.|
|00003830| 2f dd d0 ff 0f 0c d1 ff | 20 22 00 00 66 69 6c 65 |/.......| "..file|
|00003840| 3a 0d 08 73 14 00 00 00 | 00 00 00 00 07 20 74 68 |:..s....|..... th|
|00003850| 12 d6 a4 00 12 d6 a4 00 | 00 00 00 00 07 74 6f 20 |........|.....to |
|00003860| 0c d7 a4 00 12 d6 a4 00 | 0c d7 a4 00 00 00 00 00 |........|........|
|00003870| 00 4c 00 00 25 54 00 00 | 40 d0 66 05 28 76 d0 ff |.L..%T..|@.f.(v..|
|00003880| 38 9d d0 ff 70 1a 00 00 | 70 72 69 6e 74 20 26 4d |8...p...|print &M|
|00003890| 79 74 65 73 74 3a 3a 69 | 73 5f 65 76 65 6e 28 30 |ytest::i|s_even(0|
|000038a0| 29 20 3d 3d 20 31 20 3f | 20 22 6f 6b 20 32 22 20 |) == 1 ?| "ok 2" |
|000038b0| 3a 20 22 6e 6f 74 20 6f | 6b 20 32 22 2c 20 22 5c |: "not o|k 2", "\|
|000038c0| 6e 22 3b 0d 00 54 00 00 | 25 54 00 00 40 d0 66 05 |n";..T..|%T..@.f.|
|000038d0| 48 47 d0 ff 58 6e d0 ff | 70 1a 00 00 70 72 69 6e |HG..Xn..|p...prin|
|000038e0| 74 20 26 4d 79 74 65 73 | 74 3a 3a 69 73 5f 65 76 |t &Mytes|t::is_ev|
|000038f0| 65 6e 28 31 29 20 3d 3d | 20 30 20 3f 20 22 6f 6b |en(1) ==| 0 ? "ok|
|00003900| 20 33 22 20 3a 20 22 6e | 6f 74 20 6f 6b 20 33 22 | 3" : "n|ot ok 3"|
|00003910| 2c 20 22 5c 6e 22 3b 0d | 00 54 00 00 a5 80 00 00 |, "\n";.|.T......|
|00003920| 40 d0 66 05 68 18 d0 ff | 78 3f d0 ff 70 1a 00 00 |@.f.h...|x?..p...|
|00003930| 70 72 69 6e 74 20 26 4d | 79 74 65 73 74 3a 3a 69 |print &M|ytest::i|
|00003940| 73 5f 65 76 65 6e 28 32 | 29 20 3d 3d 20 31 20 3f |s_even(2|) == 1 ?|
|00003950| 20 22 6f 6b 20 34 22 20 | 3a 20 22 6e 6f 74 20 6f | "ok 4" |: "not o|
|00003960| 6b 20 34 22 2c 20 22 5c | 6e 22 3b 0d 08 20 62 65 |k 4", "\|n";.. be|
|00003970| 0c d8 a4 00 12 d6 a4 00 | 00 00 00 00 08 20 61 20 |........|..... a |
|00003980| 12 00 00 00 00 00 00 00 | 07 54 68 65 18 d9 a4 00 |........|.The....|
|00003990| 18 d9 a4 00 00 00 00 00 | 00 80 00 00 a5 34 00 00 |........|.....4..|
|000039a0| 40 00 00 00 d8 03 d0 ff | 98 10 d0 ff 00 00 00 00 |@.......|........|
|000039b0| 0d 08 79 73 18 da a4 00 | 00 00 00 00 07 75 69 6c |..ys....|.....uil|
|000039c0| 14 db a4 00 14 db a4 00 | 00 00 00 00 00 34 00 00 |........|.....4..|
|000039d0| 05 80 00 00 00 0c 6b 07 | 08 ab cf ff e8 d9 cf ff |......k.|........|
|000039e0| 20 22 00 00 57 65 20 77 | 69 6c 6c 20 62 65 20 63 | "..We w|ill be c|
|000039f0| 61 6c 6c 69 6e 67 20 74 | 68 65 20 74 65 73 74 20 |alling t|he test |
|00003a00| 73 63 72 69 70 74 20 74 | 68 72 6f 75 67 68 20 74 |script t|hrough t|
|00003a10| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 22 6d 61 6b 65 |he comma|nd "make|
|00003a20| 20 74 65 73 74 22 2e 20 | 20 59 6f 75 20 73 68 6f | test". | You sho|
|00003a30| 75 6c 64 20 73 65 65 20 | 6f 75 74 70 75 74 20 74 |uld see |output t|
|00003a40| 68 61 74 20 6c 6f 6f 6b | 73 20 00 00 00 80 00 00 |hat look|s ......|
|00003a50| a5 5c 00 00 40 d8 71 01 | e1 72 cf ff c1 a1 cf ff |.\..@.q.|.r......|
|00003a60| 20 22 00 00 73 6f 6d 65 | 74 68 69 6e 67 20 6c 69 | "..some|thing li|
|00003a70| 6b 65 20 74 68 69 73 3a | 0d 08 6c 64 14 00 00 00 |ke this:|..ld....|
|00003a80| 00 00 00 00 07 61 6c 6c | 12 dc a4 00 12 dc a4 00 |.....all|........|
|00003a90| 00 00 00 00 07 75 74 61 | 0c dd a4 00 12 dc a4 00 |.....uta|........|
|00003aa0| 0c dd a4 00 00 00 00 00 | 00 5c 00 00 25 24 00 00 |........|.\..%$..|
|00003ab0| 40 d0 01 01 da 0b cf ff | ea 32 cf ff 70 1a 00 00 |@.......|.2..p...|
|00003ac0| 25 20 6d 61 6b 65 20 74 | 65 73 74 0d 00 24 00 00 |% make t|est..$..|
|00003ad0| 25 64 00 00 40 60 c6 06 | fa dc ce ff 0a 04 cf ff |%d..@`..|........|
|00003ae0| 70 1a 00 00 50 45 52 4c | 5f 44 4c 5f 4e 4f 4e 4c |p...PERL|_DL_NONL|
|00003af0| 41 5a 59 3d 31 20 2f 6f | 70 74 2f 70 65 72 6c 35 |AZY=1 /o|pt/perl5|
|00003b00| 2e 30 30 32 62 32 2f 62 | 69 6e 2f 70 65 72 6c 20 |.002b2/b|in/perl |
|00003b10| 28 6c 6f 74 73 20 6f 66 | 20 2d 49 20 61 72 67 75 |(lots of| -I argu|
|00003b20| 6d 65 6e 74 73 29 20 74 | 65 73 74 2e 70 6c 0d 00 |ments) t|est.pl..|
|00003b30| 00 64 00 00 25 20 00 00 | 40 c0 5d 00 1a ae ce ff |.d..% ..|@.].....|
|00003b40| 2a d5 ce ff 70 1a 00 00 | 31 2e 2e 34 0d 00 00 00 |*...p...|1..4....|
|00003b50| 00 20 00 00 25 20 00 00 | 40 c0 5d 00 3a 7f ce ff |. ..% ..|@.].:...|
|00003b60| 4a a6 ce ff 70 1a 00 00 | 6f 6b 20 31 0d 00 00 00 |J...p...|ok 1....|
|00003b70| 00 20 00 00 25 20 00 00 | 40 c0 5d 00 5a 50 ce ff |. ..% ..|@.].ZP..|
|00003b80| 6a 77 ce ff 70 1a 00 00 | 6f 6b 20 32 0d 00 00 00 |jw..p...|ok 2....|
|00003b90| 00 20 00 00 25 20 00 00 | 40 c0 5d 00 7a 21 ce ff |. ..% ..|@.].z!..|
|00003ba0| 8a 48 ce ff 70 1a 00 00 | 6f 6b 20 33 0d 00 00 00 |.H..p...|ok 3....|
|00003bb0| 00 20 00 00 25 20 00 00 | 40 c0 5d 00 9a f2 cd ff |. ..% ..|@.].....|
|00003bc0| aa 19 ce ff 70 1a 00 00 | 6f 6b 20 34 0d 00 00 00 |....p...|ok 4....|
|00003bd0| 00 20 00 00 a5 44 00 00 | 40 70 17 00 ba c3 cd ff |. ...D..|@p......|
|00003be0| ca ea cd ff 70 1a 00 00 | 25 0d 08 74 0c de a4 00 |....p...|%..t....|
|00003bf0| 12 dc a4 00 00 00 00 00 | 08 69 6c 64 12 00 00 00 |........|.ild....|
|00003c00| 00 00 00 00 07 6c 6c 79 | 18 df a4 00 18 df a4 00 |.....lly|........|
|00003c10| 00 00 00 00 00 44 00 00 | a5 34 00 00 40 00 00 00 |.....D..|.4..@...|
|00003c20| 2a af cd ff ea bb cd ff | 00 00 00 00 0d 08 69 6e |*.......|......in|
|00003c30| 18 e0 a4 00 00 00 00 00 | 07 65 73 74 0a e1 a4 00 |........|.est....|
|00003c40| 0a e1 a4 00 00 00 00 00 | 00 34 00 00 01 10 00 00 |........|.4......|
|00003c50| 41 9c fb 01 00 00 00 00 | 00 10 00 00 02 18 00 00 |A.......|........|
|00003c60| 38 07 00 00 00 00 00 00 | 0a e1 a4 00 00 00 00 00 |8.......|........|
|00003c70| 00 18 00 00 a5 40 00 00 | 40 9c fb 01 ec 3d cb ff |.....@..|@....=..|
|00003c80| 9c 74 cb ff 18 2b 00 00 | 16 00 00 00 b0 fc 07 00 |.t...+..|........|
|00003c90| 00 00 00 00 57 68 61 74 | 20 48 61 73 20 47 6f 6e |....What| Has Gon|
|00003ca0| 65 20 4f 6e 3f 0d 08 20 | 0a e2 a4 00 00 00 00 00 |e On?.. |........|
|00003cb0| 00 40 00 00 05 84 00 00 | 00 0c cb 07 b7 e8 ca ff |.@......|........|
|00003cc0| 97 17 cb ff 20 22 00 00 | 54 68 65 20 70 72 6f 67 |.... "..|The prog|
|00003cd0| 72 61 6d 20 68 32 78 73 | 20 69 73 20 74 68 65 20 |ram h2xs| is the |
|00003ce0| 73 74 61 72 74 69 6e 67 | 20 70 6f 69 6e 74 20 66 |starting| point f|
|00003cf0| 6f 72 20 63 72 65 61 74 | 69 6e 67 20 65 78 74 65 |or creat|ing exte|
|00003d00| 6e 73 69 6f 6e 73 2e 20 | 20 49 6e 20 6c 61 74 65 |nsions. | In late|
|00003d10| 72 20 65 78 61 6d 70 6c | 65 73 20 77 65 27 6c 6c |r exampl|es we'll|
|00003d20| 20 73 65 65 20 68 6f 77 | 20 77 65 20 63 61 6e 20 | see how| we can |
|00003d30| 75 73 65 20 00 84 00 00 | 25 64 00 00 40 d0 5a 05 |use ....|%d..@.Z.|
|00003d40| 90 b0 ca ff 70 df ca ff | 20 22 00 00 68 32 78 73 |....p...| "..h2xs|
|00003d50| 20 74 6f 20 72 65 61 64 | 20 68 65 61 64 65 72 20 | to read| header |
|00003d60| 66 69 6c 65 73 20 61 6e | 64 20 67 65 6e 65 72 61 |files an|d genera|
|00003d70| 74 65 20 74 65 6d 70 6c | 61 74 65 73 20 74 6f 20 |te templ|ates to |
|00003d80| 63 6f 6e 6e 65 63 74 20 | 74 6f 20 43 20 72 6f 75 |connect |to C rou|
|00003d90| 74 69 6e 65 73 2e 0d 00 | 00 64 00 00 05 88 00 00 |tines...|.d......|
|00003da0| 00 7c a9 07 b9 41 ca ff | 99 70 ca ff 20 22 00 00 |.|...A..|.p.. "..|
|00003db0| 68 32 78 73 20 63 72 65 | 61 74 65 73 20 61 20 6e |h2xs cre|ates a n|
|00003dc0| 75 6d 62 65 72 20 6f 66 | 20 66 69 6c 65 73 20 69 |umber of| files i|
|00003dd0| 6e 20 74 68 65 20 65 78 | 74 65 6e 73 69 6f 6e 20 |n the ex|tension |
|00003de0| 64 69 72 65 63 74 6f 72 | 79 2e 20 20 54 68 65 20 |director|y. The |
|00003df0| 66 69 6c 65 20 4d 61 6b | 65 66 69 6c 65 2e 50 4c |file Mak|efile.PL|
|00003e00| 20 69 73 20 61 20 70 65 | 72 6c 20 73 63 72 69 70 | is a pe|rl scrip|
|00003e10| 74 20 77 68 69 63 68 20 | 77 69 6c 6c 20 00 00 00 |t which |will ...|
|00003e20| 00 88 00 00 25 70 00 00 | 40 34 fc 05 92 09 ca ff |....%p..|@4......|
|00003e30| 72 38 ca ff 20 22 00 00 | 67 65 6e 65 72 61 74 65 |r8.. "..|generate|
|00003e40| 20 61 20 74 72 75 65 20 | 4d 61 6b 65 66 69 6c 65 | a true |Makefile|
|00003e50| 20 74 6f 20 62 75 69 6c | 64 20 74 68 65 20 65 78 | to buil|d the ex|
|00003e60| 74 65 6e 73 69 6f 6e 2e | 20 20 57 65 27 6c 6c 20 |tension.| We'll |
|00003e70| 74 61 6b 65 20 61 20 63 | 6c 6f 73 65 72 20 6c 6f |take a c|loser lo|
|00003e80| 6f 6b 20 61 74 20 69 74 | 20 6c 61 74 65 72 2e 0d |ok at it| later..|
|00003e90| 00 70 00 00 05 80 00 00 | 00 14 9f 07 bb 9a c9 ff |.p......|........|
|00003ea0| 9b c9 c9 ff 20 22 00 00 | 54 68 65 20 66 69 6c 65 |.... "..|The file|
|00003eb0| 73 20 3c 65 78 74 65 6e | 73 69 6f 6e 3e 2e 70 6d |s <exten|sion>.pm|
|00003ec0| 20 61 6e 64 20 3c 65 78 | 74 65 6e 73 69 6f 6e 3e | and <ex|tension>|
|00003ed0| 2e 78 73 20 63 6f 6e 74 | 61 69 6e 20 74 68 65 20 |.xs cont|ain the |
|00003ee0| 6d 65 61 74 20 6f 66 20 | 74 68 65 20 65 78 74 65 |meat of |the exte|
|00003ef0| 6e 73 69 6f 6e 2e 20 54 | 68 65 20 2e 78 73 20 66 |nsion. T|he .xs f|
|00003f00| 69 6c 65 20 68 6f 6c 64 | 73 20 74 68 65 20 43 20 |ile hold|s the C |
|00003f10| 00 80 00 00 25 88 00 00 | 40 74 f3 07 94 62 c9 ff |....%...|@t...b..|
|00003f20| 74 91 c9 ff 20 22 00 00 | 72 6f 75 74 69 6e 65 73 |t... "..|routines|
|00003f30| 20 74 68 61 74 20 6d 61 | 6b 65 20 75 70 20 74 68 | that ma|ke up th|
|00003f40| 65 20 65 78 74 65 6e 73 | 69 6f 6e 2e 20 20 54 68 |e extens|ion. Th|
|00003f50| 65 20 2e 70 6d 20 66 69 | 6c 65 20 63 6f 6e 74 61 |e .pm fi|le conta|
|00003f60| 69 6e 73 20 72 6f 75 74 | 69 6e 65 73 20 74 68 61 |ins rout|ines tha|
|00003f70| 74 20 74 65 6c 6c 20 50 | 65 72 6c 20 68 6f 77 20 |t tell P|erl how |
|00003f80| 74 6f 20 6c 6f 61 64 20 | 79 6f 75 72 20 65 78 74 |to load |your ext|
|00003f90| 65 6e 73 69 6f 6e 2e 0d | 00 88 00 00 05 80 00 00 |ension..|........|
|00003fa0| 00 30 7a 07 bd f3 c8 ff | 9d 22 c9 ff 20 22 00 00 |.0z.....|.".. "..|
|00003fb0| 47 65 6e 65 72 61 74 69 | 6e 67 20 61 6e 64 20 69 |Generati|ng and i|
|00003fc0| 6e 76 6f 6b 69 6e 67 20 | 74 68 65 20 4d 61 6b 65 |nvoking |the Make|
|00003fd0| 66 69 6c 65 20 63 72 65 | 61 74 65 64 20 61 20 64 |file cre|ated a d|
|00003fe0| 69 72 65 63 74 6f 72 79 | 20 62 6c 69 62 20 28 77 |irectory| blib (w|
|00003ff0| 68 69 63 68 20 73 74 61 | 6e 64 73 20 66 6f 72 20 |hich sta|nds for |
|00004000| 22 62 75 69 6c 64 20 6c | 69 62 72 61 72 79 22 29 |"build l|ibrary")|
|00004010| 20 69 6e 20 74 68 65 20 | 00 80 00 00 05 88 00 00 | in the |........|
|00004020| 00 20 c9 07 96 bb c8 ff | 76 ea c8 ff 20 22 00 00 |. ......|v... "..|
|00004030| 63 75 72 72 65 6e 74 20 | 77 6f 72 6b 69 6e 67 20 |current |working |
|00004040| 64 69 72 65 63 74 6f 72 | 79 2e 20 20 54 68 69 73 |director|y. This|
|00004050| 20 64 69 72 65 63 74 6f | 72 79 20 77 69 6c 6c 20 | directo|ry will |
|00004060| 63 6f 6e 74 61 69 6e 20 | 74 68 65 20 73 68 61 72 |contain |the shar|
|00004070| 65 64 20 6c 69 62 72 61 | 72 79 20 74 68 61 74 20 |ed libra|ry that |
|00004080| 77 65 20 77 69 6c 6c 20 | 62 75 69 6c 64 2e 20 20 |we will |build. |
|00004090| 4f 6e 63 65 20 77 65 20 | 68 61 76 65 20 00 00 00 |Once we |have ...|
|000040a0| 00 88 00 00 25 50 00 00 | 40 e8 6e 03 6f 83 c8 ff |....%P..|@.n.o...|
|000040b0| 4f b2 c8 ff 20 22 00 00 | 74 65 73 74 65 64 20 69 |O... "..|tested i|
|000040c0| 74 2c 20 77 65 20 63 61 | 6e 20 69 6e 73 74 61 6c |t, we ca|n instal|
|000040d0| 6c 20 69 74 20 69 6e 74 | 6f 20 69 74 73 20 66 69 |l it int|o its fi|
|000040e0| 6e 61 6c 20 6c 6f 63 61 | 74 69 6f 6e 2e 0d 00 00 |nal loca|tion....|
|000040f0| 00 50 00 00 85 9c 00 00 | 00 74 93 07 98 14 c8 ff |.P......|.t......|
|00004100| 78 43 c8 ff 20 22 00 00 | 49 6e 76 6f 6b 69 6e 67 |xC.. "..|Invoking|
|00004110| 20 74 68 65 20 74 65 73 | 74 20 73 63 72 69 70 74 | the tes|t script|
|00004120| 20 76 69 61 20 22 6d 61 | 6b 65 20 74 65 73 74 22 | via "ma|ke test"|
|00004130| 20 64 69 64 20 73 6f 6d | 65 74 68 69 6e 67 20 76 | did som|ething v|
|00004140| 65 72 79 20 69 6d 70 6f | 72 74 61 6e 74 2e 20 20 |ery impo|rtant. |
|00004150| 49 74 20 69 6e 76 6f 6b | 65 64 20 70 65 72 6c 20 |It invok|ed perl |
|00004160| 77 69 74 68 20 61 6c 6c | 20 74 68 6f 73 65 20 07 |with all| those .|
|00004170| 0e e3 a4 00 0e e3 a4 00 | 00 00 00 00 2d 49 08 00 |........|....-I..|
|00004180| 0e e4 a4 00 00 00 00 00 | 20 00 00 00 00 9c 00 00 |........| .......|
|00004190| 25 6c 00 00 40 60 a0 05 | 71 dc c7 ff 51 0b c8 ff |%l..@`..|q...Q...|
|000041a0| 20 22 00 00 61 72 67 75 | 6d 65 6e 74 73 20 73 6f | "..argu|ments so|
|000041b0| 20 74 68 61 74 20 69 74 | 20 63 6f 75 6c 64 20 66 | that it| could f|
|000041c0| 69 6e 64 20 74 68 65 20 | 76 61 72 69 6f 75 73 20 |ind the |various |
|000041d0| 66 69 6c 65 73 20 74 68 | 61 74 20 61 72 65 20 70 |files th|at are p|
|000041e0| 61 72 74 20 6f 66 20 74 | 68 65 20 65 78 74 65 6e |art of t|he exten|
|000041f0| 73 69 6f 6e 2e 0d 00 00 | 00 6c 00 00 85 a4 00 00 |sion....|.l......|
|00004200| 00 8c d5 07 9a 6d c7 ff | 7a 9c c7 ff 20 22 00 00 |.....m..|z... "..|
|00004210| 49 74 20 69 73 20 07 23 | 11 e5 a4 00 11 e5 a4 00 |It is .#|........|
|00004220| 00 00 00 00 76 65 72 79 | 08 22 0d 23 11 00 00 00 |....very|.".#....|
|00004230| 00 00 00 00 20 69 6d 70 | 6f 72 74 61 6e 74 20 74 |.... imp|ortant t|
|00004240| 68 61 74 20 77 68 69 6c | 65 20 79 6f 75 20 61 72 |hat whil|e you ar|
|00004250| 65 20 73 74 69 6c 6c 20 | 74 65 73 74 69 6e 67 20 |e still |testing |
|00004260| 65 78 74 65 6e 73 69 6f | 6e 73 20 74 68 61 74 20 |extensio|ns that |
|00004270| 79 6f 75 20 75 73 65 20 | 22 6d 61 6b 65 20 74 65 |you use |"make te|
|00004280| 73 74 22 2e 20 20 49 66 | 20 79 6f 75 20 74 72 79 |st". If| you try|
|00004290| 20 74 6f 20 72 75 6e 20 | 74 68 65 20 00 a4 00 00 | to run |the ....|
|000042a0| 25 50 00 00 40 88 7a 03 | 73 35 c7 ff 53 64 c7 ff |%P..@.z.|s5..Sd..|
|000042b0| 20 22 00 00 74 65 73 74 | 20 73 63 72 69 70 74 20 | "..test| script |
|000042c0| 61 6c 6c 20 62 79 20 69 | 74 73 65 6c 66 2c 20 79 |all by i|tself, y|
|000042d0| 6f 75 20 77 69 6c 6c 20 | 67 65 74 20 61 20 66 61 |ou will |get a fa|
|000042e0| 74 61 6c 20 65 72 72 6f | 72 2e 0d 00 00 50 00 00 |tal erro|r....P..|
|000042f0| 05 88 00 00 00 ac cd 07 | 9c c6 c6 ff 7c f5 c6 ff |........|....|...|
|00004300| 20 22 00 00 41 6e 6f 74 | 68 65 72 20 72 65 61 73 | "..Anot|her reas|
|00004310| 6f 6e 20 69 74 20 69 73 | 20 69 6d 70 6f 72 74 61 |on it is| importa|
|00004320| 6e 74 20 74 6f 20 75 73 | 65 20 22 6d 61 6b 65 20 |nt to us|e "make |
|00004330| 74 65 73 74 22 20 74 6f | 20 72 75 6e 20 79 6f 75 |test" to| run you|
|00004340| 72 20 74 65 73 74 20 73 | 63 72 69 70 74 20 69 73 |r test s|cript is|
|00004350| 20 74 68 61 74 20 69 66 | 20 79 6f 75 20 61 72 65 | that if| you are|
|00004360| 20 74 65 73 74 69 6e 67 | 20 61 6e 20 75 70 67 72 | testing| an upgr|
|00004370| 61 64 65 20 00 88 00 00 | 05 84 00 00 00 7c c4 07 |ade ....|.....|..|
|00004380| 75 8e c6 ff 55 bd c6 ff | 20 22 00 00 74 6f 20 61 |u...U...| "..to a|
|00004390| 6e 20 61 6c 72 65 61 64 | 79 2d 65 78 69 73 74 69 |n alread|y-existi|
|000043a0| 6e 67 20 76 65 72 73 69 | 6f 6e 2c 20 75 73 69 6e |ng versi|on, usin|
|000043b0| 67 20 22 6d 61 6b 65 20 | 74 65 73 74 22 20 69 6e |g "make |test" in|
|000043c0| 73 75 72 65 73 20 74 68 | 61 74 20 79 6f 75 20 75 |sures th|at you u|
|000043d0| 73 65 20 79 6f 75 72 20 | 6e 65 77 20 65 78 74 65 |se your |new exte|
|000043e0| 6e 73 69 6f 6e 2c 20 6e | 6f 74 20 74 68 65 20 61 |nsion, n|ot the a|
|000043f0| 6c 72 65 61 64 79 2d 00 | 00 84 00 00 25 2c 00 00 |lready-.|....%,..|
|00004400| 40 e4 35 01 4e 56 c6 ff | 2e 85 c6 ff 20 22 00 00 |@.5.NV..|.... "..|
|00004410| 65 78 69 73 74 69 6e 67 | 20 76 65 72 73 69 6f 6e |existing| version|
|00004420| 2e 0d 00 00 00 2c 00 00 | 85 98 00 00 00 b4 d4 07 |.....,..|........|
|00004430| 77 e7 c5 ff 57 16 c6 ff | 20 22 00 00 57 68 65 6e |w...W...| "..When|
|00004440| 20 50 65 72 6c 20 73 65 | 65 73 20 61 20 07 08 05 | Perl se|es a ...|
|00004450| 0e e6 a4 00 0e e6 a4 00 | 00 00 00 00 75 73 65 20 |........|....use |
|00004460| 65 78 74 65 6e 73 69 6f | 6e 3b 08 05 0e e7 a4 00 |extensio|n;......|
|00004470| 00 00 00 00 2c 20 69 74 | 20 73 65 61 72 63 68 65 |...., it| searche|
|00004480| 73 20 66 6f 72 20 61 20 | 66 69 6c 65 20 77 69 74 |s for a |file wit|
|00004490| 68 20 74 68 65 20 73 61 | 6d 65 20 6e 61 6d 65 20 |h the sa|me name |
|000044a0| 61 73 20 74 68 65 20 75 | 73 65 27 64 20 65 78 74 |as the u|se'd ext|
|000044b0| 65 6e 73 69 6f 6e 20 74 | 68 61 74 20 00 98 00 00 |ension t|hat ....|
|000044c0| 05 84 00 00 00 e8 43 07 | 50 af c5 ff 30 de c5 ff |......C.|P...0...|
|000044d0| 20 22 00 00 68 61 73 20 | 61 20 2e 70 6d 20 73 75 | "..has |a .pm su|
|000044e0| 66 66 69 78 2e 20 20 49 | 66 20 74 68 61 74 20 66 |ffix. I|f that f|
|000044f0| 69 6c 65 20 63 61 6e 6e | 6f 74 20 62 65 20 66 6f |ile cann|ot be fo|
|00004500| 75 6e 64 2c 20 50 65 72 | 6c 20 64 69 65 73 20 77 |und, Per|l dies w|
|00004510| 69 74 68 20 61 20 66 61 | 74 61 6c 20 65 72 72 6f |ith a fa|tal erro|
|00004520| 72 2e 20 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 |r. The |default |
|00004530| 73 65 61 72 63 68 20 70 | 61 74 68 20 69 73 20 00 |search p|ath is .|
|00004540| 00 84 00 00 25 38 00 00 | 40 b8 27 02 29 77 c5 ff |....%8..|@.'.)w..|
|00004550| 09 a6 c5 ff 20 22 00 00 | 63 6f 6e 74 61 69 6e 65 |.... "..|containe|
|00004560| 64 20 69 6e 20 74 68 65 | 20 40 49 4e 43 20 61 72 |d in the| @INC ar|
|00004570| 72 61 79 2e 0d 00 00 00 | 00 38 00 00 05 88 00 00 |ray.....|.8......|
|00004580| 00 24 da 07 52 08 c5 ff | 32 37 c5 ff 20 22 00 00 |.$..R...|27.. "..|
|00004590| 49 6e 20 6f 75 72 20 63 | 61 73 65 2c 20 4d 79 74 |In our c|ase, Myt|
|000045a0| 65 73 74 2e 70 6d 20 74 | 65 6c 6c 73 20 70 65 72 |est.pm t|ells per|
|000045b0| 6c 20 74 68 61 74 20 69 | 74 20 77 69 6c 6c 20 6e |l that i|t will n|
|000045c0| 65 65 64 20 74 68 65 20 | 45 78 70 6f 72 74 65 72 |eed the |Exporter|
|000045d0| 20 61 6e 64 20 44 79 6e | 61 6d 69 63 20 4c 6f 61 | and Dyn|amic Loa|
|000045e0| 64 65 72 20 65 78 74 65 | 6e 73 69 6f 6e 73 2e 20 |der exte|nsions. |
|000045f0| 20 49 74 20 74 68 65 6e | 20 73 65 74 73 20 00 00 | It then| sets ..|
|00004600| 00 88 00 00 05 80 00 00 | 00 d0 a6 07 2b d0 c4 ff |........|....+...|
|00004610| 0b ff c4 ff 20 22 00 00 | 74 68 65 20 40 49 53 41 |.... "..|the @ISA|
|00004620| 20 61 6e 64 20 40 45 58 | 50 4f 52 54 20 61 72 72 | and @EX|PORT arr|
|00004630| 61 79 73 20 61 6e 64 20 | 74 68 65 20 24 56 45 52 |ays and |the $VER|
|00004640| 53 49 4f 4e 20 73 63 61 | 6c 61 72 3b 20 66 69 6e |SION sca|lar; fin|
|00004650| 61 6c 6c 79 20 69 74 20 | 74 65 6c 6c 73 20 70 65 |ally it |tells pe|
|00004660| 72 6c 20 74 6f 20 62 6f | 6f 74 73 74 72 61 70 20 |rl to bo|otstrap |
|00004670| 74 68 65 20 6d 6f 64 75 | 6c 65 2e 20 20 00 00 00 |the modu|le. ...|
|00004680| 00 80 00 00 25 74 00 00 | 40 c8 19 06 04 98 c4 ff |....%t..|@.......|
|00004690| e4 c6 c4 ff 20 22 00 00 | 50 65 72 6c 20 77 69 6c |.... "..|Perl wil|
|000046a0| 6c 20 63 61 6c 6c 20 69 | 74 73 20 64 79 6e 61 6d |l call i|ts dynam|
|000046b0| 69 63 20 6c 6f 61 64 65 | 72 20 72 6f 75 74 69 6e |ic loade|r routin|
|000046c0| 65 20 28 69 66 20 74 68 | 65 72 65 20 69 73 20 6f |e (if th|ere is o|
|000046d0| 6e 65 29 20 61 6e 64 20 | 6c 6f 61 64 20 74 68 65 |ne) and |load the|
|000046e0| 20 73 68 61 72 65 64 20 | 6c 69 62 72 61 72 79 2e | shared |library.|
|000046f0| 0d 00 00 00 00 74 00 00 | 05 84 00 00 00 08 6c 07 |.....t..|......l.|
|00004700| 2d 29 c4 ff 0d 58 c4 ff | 20 22 00 00 54 68 65 20 |-)...X..| "..The |
|00004710| 74 77 6f 20 61 72 72 61 | 79 73 20 74 68 61 74 20 |two arra|ys that |
|00004720| 61 72 65 20 73 65 74 20 | 69 6e 20 74 68 65 20 2e |are set |in the .|
|00004730| 70 6d 20 66 69 6c 65 20 | 61 72 65 20 76 65 72 79 |pm file |are very|
|00004740| 20 69 6d 70 6f 72 74 61 | 6e 74 2e 20 20 54 68 65 | importa|nt. The|
|00004750| 20 40 49 53 41 20 61 72 | 72 61 79 20 63 6f 6e 74 | @ISA ar|ray cont|
|00004760| 61 69 6e 73 20 61 20 6c | 69 73 74 20 6f 66 20 6f |ains a l|ist of o|
|00004770| 74 68 65 72 20 00 00 00 | 00 84 00 00 05 80 00 00 |ther ...|........|
|00004780| 00 58 7f 07 06 f1 c3 ff | e6 1f c4 ff 20 22 00 00 |.X......|.... "..|
|00004790| 70 61 63 6b 61 67 65 73 | 20 69 6e 20 77 68 69 63 |packages| in whic|
|000047a0| 68 20 74 6f 20 73 65 61 | 72 63 68 20 66 6f 72 20 |h to sea|rch for |
|000047b0| 6d 65 74 68 6f 64 73 20 | 28 6f 72 20 73 75 62 72 |methods |(or subr|
|000047c0| 6f 75 74 69 6e 65 73 29 | 20 74 68 61 74 20 64 6f |outines)| that do|
|000047d0| 20 6e 6f 74 20 65 78 69 | 73 74 20 69 6e 20 74 68 | not exi|st in th|
|000047e0| 65 20 63 75 72 72 65 6e | 74 20 70 61 63 6b 61 67 |e curren|t packag|
|000047f0| 65 2e 20 20 54 68 65 20 | 00 80 00 00 05 80 00 00 |e. The |........|
|00004800| 00 74 99 07 df b8 c3 ff | bf e7 c3 ff 20 22 00 00 |.t......|.... "..|
|00004810| 40 45 58 50 4f 52 54 20 | 61 72 72 61 79 20 74 65 |@EXPORT |array te|
|00004820| 6c 6c 73 20 50 65 72 6c | 20 77 68 69 63 68 20 6f |lls Perl| which o|
|00004830| 66 20 74 68 65 20 65 78 | 74 65 6e 73 69 6f 6e 27 |f the ex|tension'|
|00004840| 73 20 72 6f 75 74 69 6e | 65 73 20 73 68 6f 75 6c |s routin|es shoul|
|00004850| 64 20 62 65 20 70 6c 61 | 63 65 64 20 69 6e 74 6f |d be pla|ced into|
|00004860| 20 74 68 65 20 63 61 6c | 6c 69 6e 67 20 70 61 63 | the cal|ling pac|
|00004870| 6b 61 67 65 27 73 20 00 | 00 80 00 00 25 24 00 00 |kage's .|....%$..|
|00004880| 40 5c d9 00 b8 80 c3 ff | 98 af c3 ff 20 22 00 00 |@\......|.... "..|
|00004890| 6e 61 6d 65 73 70 61 63 | 65 2e 0d 00 00 24 00 00 |namespac|e....$..|
|000048a0| 05 7c 00 00 00 64 49 07 | e1 11 c3 ff c1 40 c3 ff |.|...dI.|.....@..|
|000048b0| 20 22 00 00 49 74 27 73 | 20 69 6d 70 6f 72 74 61 | "..It's| importa|
|000048c0| 6e 74 20 74 6f 20 73 65 | 6c 65 63 74 20 77 68 61 |nt to se|lect wha|
|000048d0| 74 20 74 6f 20 65 78 70 | 6f 72 74 20 63 61 72 65 |t to exp|ort care|
|000048e0| 66 75 6c 6c 79 2e 20 20 | 44 6f 20 4e 4f 54 20 65 |fully. |Do NOT e|
|000048f0| 78 70 6f 72 74 20 6d 65 | 74 68 6f 64 20 6e 61 6d |xport me|thod nam|
|00004900| 65 73 20 61 6e 64 20 64 | 6f 20 4e 4f 54 20 65 78 |es and d|o NOT ex|
|00004910| 70 6f 72 74 20 00 00 00 | 00 7c 00 00 a5 60 00 00 |port ...|.|...`..|
|00004920| 40 54 75 03 ba d9 c2 ff | 9a 08 c3 ff 20 22 00 00 |@Tu.....|.... "..|
|00004930| 61 6e 79 74 68 69 6e 67 | 20 65 6c 73 65 20 07 00 |anything| else ..|
|00004940| 11 e8 a4 00 11 e8 a4 00 | 00 00 00 00 62 79 20 64 |........|....by d|
|00004950| 65 66 61 75 6c 74 08 65 | 11 00 00 00 00 00 00 00 |efault.e|........|
|00004960| 20 77 69 74 68 6f 75 74 | 20 61 20 67 6f 6f 64 20 | without| a good |
|00004970| 72 65 61 73 6f 6e 2e 0d | 00 60 00 00 05 88 00 00 |reason..|.`......|
|00004980| 00 ac 70 07 e3 6a c2 ff | c3 99 c2 ff 20 22 00 00 |..p..j..|.... "..|
|00004990| 41 73 20 61 20 67 65 6e | 65 72 61 6c 20 72 75 6c |As a gen|eral rul|
|000049a0| 65 2c 20 69 66 20 74 68 | 65 20 6d 6f 64 75 6c 65 |e, if th|e module|
|000049b0| 20 69 73 20 74 72 79 69 | 6e 67 20 74 6f 20 62 65 | is tryi|ng to be|
|000049c0| 20 6f 62 6a 65 63 74 2d | 6f 72 69 65 6e 74 65 64 | object-|oriented|
|000049d0| 20 74 68 65 6e 20 64 6f | 6e 27 74 20 65 78 70 6f | then do|n't expo|
|000049e0| 72 74 20 61 6e 79 74 68 | 69 6e 67 2e 20 20 49 66 |rt anyth|ing. If|
|000049f0| 20 69 74 27 73 20 6a 75 | 73 74 20 61 20 00 00 00 | it's ju|st a ...|
|00004a00| 00 88 00 00 25 80 00 00 | 40 c4 c4 07 bc 32 c2 ff |....%...|@....2..|
|00004a10| 9c 61 c2 ff 20 22 00 00 | 63 6f 6c 6c 65 63 74 69 |.a.. "..|collecti|
|00004a20| 6f 6e 20 6f 66 20 66 75 | 6e 63 74 69 6f 6e 73 20 |on of fu|nctions |
|00004a30| 74 68 65 6e 20 79 6f 75 | 20 63 61 6e 20 65 78 70 |then you| can exp|
|00004a40| 6f 72 74 20 61 6e 79 20 | 6f 66 20 74 68 65 20 66 |ort any |of the f|
|00004a50| 75 6e 63 74 69 6f 6e 73 | 20 76 69 61 20 61 6e 6f |unctions| via ano|
|00004a60| 74 68 65 72 20 61 72 72 | 61 79 2c 20 63 61 6c 6c |ther arr|ay, call|
|00004a70| 65 64 20 40 45 58 50 4f | 52 54 5f 4f 4b 2e 0d 00 |ed @EXPO|RT_OK...|
|00004a80| 00 80 00 00 a5 60 00 00 | 40 8c 76 03 e5 c3 c1 ff |.....`..|@.v.....|
|00004a90| c5 f2 c1 ff 20 22 00 00 | 53 65 65 20 74 68 65 20 |.... "..|See the |
|00004aa0| 63 68 61 70 74 65 72 20 | 07 00 00 00 10 e9 a4 00 |chapter |........|
|00004ab0| 10 e9 a4 00 00 00 00 00 | 70 65 72 6c 6d 6f 64 08 |........|perlmod.|
|00004ac0| 10 00 00 00 00 00 00 00 | 20 66 6f 72 20 6d 6f 72 |........| for mor|
|00004ad0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 0d 00 |e inform|ation...|
|00004ae0| 00 60 00 00 05 84 00 00 | 00 28 b2 07 0e 55 c1 ff |.`......|.(...U..|
|00004af0| ee 83 c1 ff 20 22 00 00 | 54 68 65 20 24 56 45 52 |.... "..|The $VER|
|00004b00| 53 49 4f 4e 20 76 61 72 | 69 61 62 6c 65 20 69 73 |SION var|iable is|
|00004b10| 20 75 73 65 64 20 74 6f | 20 65 6e 73 75 72 65 20 | used to| ensure |
|00004b20| 74 68 61 74 20 74 68 65 | 20 2e 70 6d 20 66 69 6c |that the| .pm fil|
|00004b30| 65 20 61 6e 64 20 74 68 | 65 20 73 68 61 72 65 64 |e and th|e shared|
|00004b40| 20 6c 69 62 72 61 72 79 | 20 61 72 65 20 22 69 6e | library| are "in|
|00004b50| 20 73 79 6e 63 22 20 77 | 69 74 68 20 65 61 63 68 | sync" w|ith each|
|00004b60| 20 00 00 00 00 84 00 00 | a5 94 00 00 40 7c c1 07 | .......|....@|..|
|00004b70| e7 1c c1 ff c7 4b c1 ff | 20 22 00 00 6f 74 68 65 |.....K..| "..othe|
|00004b80| 72 2e 20 20 41 6e 79 20 | 74 69 6d 65 20 79 6f 75 |r. Any |time you|
|00004b90| 20 6d 61 6b 65 20 63 68 | 61 6e 67 65 73 20 74 6f | make ch|anges to|
|00004ba0| 20 74 68 65 20 2e 70 6d | 20 6f 72 20 2e 78 73 20 | the .pm| or .xs |
|00004bb0| 66 69 6c 65 73 2c 20 79 | 6f 75 20 73 68 6f 75 6c |files, y|ou shoul|
|00004bc0| 64 20 69 6e 63 72 65 6d | 65 6e 74 20 74 68 65 20 |d increm|ent the |
|00004bd0| 76 61 6c 75 65 20 6f 66 | 20 74 68 69 73 20 76 61 |value of| this va|
|00004be0| 72 69 61 62 6c 65 2e 0d | 07 73 75 62 0a ea a4 00 |riable..|.sub....|
|00004bf0| 0a ea a4 00 00 00 00 00 | 00 94 00 00 a5 3c 00 00 |........|.....<..|
|00004c00| 40 f6 66 02 40 a6 c0 ff | f0 dc c0 ff 18 2b 00 00 |@.f.@...|.....+..|
|00004c10| 57 72 69 74 69 6e 67 20 | 47 6f 6f 64 20 54 65 73 |Writing |Good Tes|
|00004c20| 74 20 53 63 72 69 70 74 | 73 0d 08 67 0a eb a4 00 |t Script|s..g....|
|00004c30| 00 00 00 00 00 3c 00 00 | 05 84 00 00 00 58 d3 07 |.....<..|.....X..|
|00004c40| 0b 51 c0 ff eb 7f c0 ff | 20 22 00 00 54 68 65 20 |.Q......| "..The |
|00004c50| 69 6d 70 6f 72 74 61 6e | 63 65 20 6f 66 20 77 72 |importan|ce of wr|
|00004c60| 69 74 69 6e 67 20 67 6f | 6f 64 20 74 65 73 74 20 |iting go|od test |
|00004c70| 73 63 72 69 70 74 73 20 | 63 61 6e 6e 6f 74 20 62 |scripts |cannot b|
|00004c80| 65 20 6f 76 65 72 65 6d | 70 68 61 73 69 7a 65 64 |e overem|phasized|
|00004c90| 2e 20 20 59 6f 75 20 73 | 68 6f 75 6c 64 20 63 6c |. You s|hould cl|
|00004ca0| 6f 73 65 6c 79 20 66 6f | 6c 6c 6f 77 20 74 68 65 |osely fo|llow the|
|00004cb0| 20 22 6f 6b 2f 00 00 00 | 00 84 00 00 05 88 00 00 | "ok/...|........|
|00004cc0| 00 9c d4 07 e4 18 c0 ff | c4 47 c0 ff 20 22 00 00 |........|.G.. "..|
|00004cd0| 6e 6f 74 20 6f 6b 22 20 | 73 74 79 6c 65 20 74 68 |not ok" |style th|
|00004ce0| 61 74 20 50 65 72 6c 20 | 69 74 73 65 6c 66 20 75 |at Perl |itself u|
|00004cf0| 73 65 73 2c 20 73 6f 20 | 74 68 61 74 20 69 74 20 |ses, so |that it |
|00004d00| 69 73 20 76 65 72 79 20 | 65 61 73 79 20 61 6e 64 |is very |easy and|
|00004d10| 20 75 6e 61 6d 62 69 67 | 75 6f 75 73 20 74 6f 20 | unambig|uous to |
|00004d20| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 6f 75 |determin|e the ou|
|00004d30| 74 63 6f 6d 65 20 6f 66 | 20 65 61 63 68 20 00 00 |tcome of| each ..|
|00004d40| 00 88 00 00 01 10 00 00 | 40 e8 84 05 00 00 00 00 |........|@.......|
|00004d50| 00 10 00 00 02 14 00 00 | d4 08 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 14 00 00 | 25 74 00 00 40 e8 84 05 |........|%t..@...|
|00004d70| 0b 46 be ff eb 74 be ff | 20 22 00 00 16 00 00 00 |.F...t..| "......|
|00004d80| b0 fc 07 00 00 00 00 00 | 74 65 73 74 20 63 61 73 |........|test cas|
|00004d90| 65 2e 20 57 68 65 6e 20 | 79 6f 75 20 66 69 6e 64 |e. When |you find|
|00004da0| 20 61 6e 64 20 66 69 78 | 20 61 20 62 75 67 2c 20 | and fix| a bug, |
|00004db0| 6d 61 6b 65 20 73 75 72 | 65 20 79 6f 75 20 61 64 |make sur|e you ad|
|00004dc0| 64 20 61 20 74 65 73 74 | 20 63 61 73 65 20 66 6f |d a test| case fo|
|00004dd0| 72 20 69 74 2e 0d 00 00 | 00 74 00 00 05 80 00 00 |r it....|.t......|
|00004de0| 00 34 46 07 34 d7 bd ff | 14 06 be ff 20 22 00 00 |.4F.4...|.... "..|
|00004df0| 42 79 20 72 75 6e 6e 69 | 6e 67 20 22 6d 61 6b 65 |By runni|ng "make|
|00004e00| 20 74 65 73 74 22 2c 20 | 79 6f 75 20 65 6e 73 75 | test", |you ensu|
|00004e10| 72 65 20 74 68 61 74 20 | 79 6f 75 72 20 74 65 73 |re that |your tes|
|00004e20| 74 2e 70 6c 20 73 63 72 | 69 70 74 20 72 75 6e 73 |t.pl scr|ipt runs|
|00004e30| 20 61 6e 64 20 75 73 65 | 73 20 74 68 65 20 63 6f | and use|s the co|
|00004e40| 72 72 65 63 74 20 76 65 | 72 73 69 6f 6e 20 6f 66 |rrect ve|rsion of|
|00004e50| 20 79 6f 75 72 20 00 00 | 00 80 00 00 05 88 00 00 | your ..|........|
|00004e60| 00 08 cf 07 0d 9f bd ff | ed cd bd ff 20 22 00 00 |........|.... "..|
|00004e70| 65 78 74 65 6e 73 69 6f | 6e 2e 20 20 49 66 20 79 |extensio|n. If y|
|00004e80| 6f 75 20 68 61 76 65 20 | 6d 61 6e 79 20 74 65 73 |ou have |many tes|
|00004e90| 74 20 63 61 73 65 73 2c | 20 79 6f 75 20 6d 69 67 |t cases,| you mig|
|00004ea0| 68 74 20 77 61 6e 74 20 | 74 6f 20 63 6f 70 79 20 |ht want |to copy |
|00004eb0| 50 65 72 6c 27 73 20 74 | 65 73 74 20 73 74 79 6c |Perl's t|est styl|
|00004ec0| 65 2e 20 20 43 72 65 61 | 74 65 20 61 20 64 69 72 |e. Crea|te a dir|
|00004ed0| 65 63 74 6f 72 79 20 6e | 61 6d 65 64 20 00 00 00 |ectory n|amed ...|
|00004ee0| 00 88 00 00 a5 9c 00 00 | 40 8c d5 07 e6 66 bd ff |........|@....f..|
|00004ef0| c6 95 bd ff 20 22 00 00 | 22 74 22 2c 20 61 6e 64 |.... "..|"t", and|
|00004f00| 20 65 6e 73 75 72 65 20 | 61 6c 6c 20 79 6f 75 72 | ensure |all your|
|00004f10| 20 74 65 73 74 20 66 69 | 6c 65 73 20 65 6e 64 20 | test fi|les end |
|00004f20| 77 69 74 68 20 74 68 65 | 20 73 75 66 66 69 78 20 |with the| suffix |
|00004f30| 22 2e 74 22 2e 20 20 54 | 68 65 20 4d 61 6b 65 66 |".t". T|he Makef|
|00004f40| 69 6c 65 20 77 69 6c 6c | 20 70 72 6f 70 65 72 6c |ile will| properl|
|00004f50| 79 20 72 75 6e 20 61 6c | 6c 20 74 68 65 73 65 20 |y run al|l these |
|00004f60| 74 65 73 74 20 66 69 6c | 65 73 2e 0d 07 67 65 6e |test fil|es...gen|
|00004f70| 0a ec a4 00 0a ec a4 00 | 00 00 00 00 00 9c 00 00 |........|........|
|00004f80| a5 2c 00 00 40 58 02 01 | 3f f0 bc ff ef 26 bd ff |.,..@X..|?....&..|
|00004f90| 18 2b 00 00 45 78 61 6d | 70 6c 65 20 33 0d 08 6e |.+..Exam|ple 3..n|
|00004fa0| 0a ed a4 00 00 00 00 00 | 00 2c 00 00 85 9c 00 00 |........|.,......|
|00004fb0| 00 98 99 07 0a 9b bc ff | ea c9 bc ff 20 22 00 00 |........|.... "..|
|00004fc0| 4f 75 72 20 74 68 69 72 | 64 20 65 78 74 65 6e 73 |Our thir|d extens|
|00004fd0| 69 6f 6e 20 77 69 6c 6c | 20 74 61 6b 65 20 6f 6e |ion will| take on|
|00004fe0| 65 20 61 72 67 75 6d 65 | 6e 74 20 61 73 20 69 74 |e argume|nt as it|
|00004ff0| 73 20 69 6e 70 75 74 2c | 20 72 6f 75 6e 64 20 6f |s input,| round o|
|00005000| 66 66 20 74 68 61 74 20 | 76 61 6c 75 65 2c 20 61 |ff that |value, a|
|00005010| 6e 64 20 73 65 74 20 74 | 68 65 20 07 11 ee a4 00 |nd set t|he .....|
|00005020| 11 ee a4 00 00 00 00 00 | 61 72 67 75 6d 65 6e 74 |........|argument|
|00005030| 08 6d 65 20 11 00 00 00 | 00 00 00 00 20 74 6f 20 |.me ....|.... to |
|00005040| 74 68 65 20 00 9c 00 00 | a5 34 00 00 40 94 16 01 |the ....|.4..@...|
|00005050| e3 62 bc ff c3 91 bc ff | 20 22 00 00 72 6f 75 6e |.b......| "..roun|
|00005060| 64 65 64 20 76 61 6c 75 | 65 2e 0d 07 14 ef a4 00 |ded valu|e.......|
|00005070| 14 ef a4 00 00 00 00 00 | 00 34 00 00 a5 70 00 00 |........|.4...p..|
|00005080| 40 74 1f 03 0c f4 bb ff | ec 22 bc ff 20 22 00 00 |@t......|.".. "..|
|00005090| 41 64 64 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |Add the |followin|
|000050a0| 67 20 74 6f 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |g to the| end of |
|000050b0| 4d 79 74 65 73 74 2e 78 | 73 3a 0d 08 14 00 00 00 |Mytest.x|s:......|
|000050c0| 00 00 00 00 07 70 72 69 | 12 f0 a4 00 12 f0 a4 00 |.....pri|........|
|000050d0| 00 00 00 00 07 65 6e 20 | 0c f1 a4 00 12 f0 a4 00 |.....en |........|
|000050e0| 0c f1 a4 00 00 00 00 00 | 00 70 00 00 25 20 00 00 |........|.p..% ..|
|000050f0| 40 c0 5d 00 05 8d bb ff | 15 b4 bb ff 70 1a 00 00 |@.].....|....p...|
|00005100| 76 6f 69 64 0d 00 00 00 | 00 20 00 00 25 24 00 00 |void....|. ..%$..|
|00005110| 40 60 ea 00 25 5e bb ff | 35 85 bb ff 70 1a 00 00 |@`..%^..|5...p...|
|00005120| 72 6f 75 6e 64 28 61 72 | 67 29 0d 00 00 24 00 00 |round(ar|g)...$..|
|00005130| 25 2c 00 00 40 50 bd 01 | 45 2f bb ff 55 56 bb ff |%,..@P..|E/..UV..|
|00005140| 70 1a 00 00 20 20 20 20 | 20 20 20 20 64 6f 75 62 |p... | doub|
|00005150| 6c 65 20 20 61 72 67 0d | 00 2c 00 00 25 28 00 00 |le arg.|.,..%(..|
|00005160| 40 b0 30 01 65 00 bb ff | 75 27 bb ff 70 1a 00 00 |@.0.e...|u'..p...|
|00005170| 20 20 20 20 20 20 20 20 | 43 4f 44 45 3a 0d 00 00 | |CODE:...|
|00005180| 00 28 00 00 25 34 00 00 | 40 80 32 02 85 d1 ba ff |.(..%4..|@.2.....|
|00005190| 95 f8 ba ff 70 1a 00 00 | 20 20 20 20 20 20 20 20 |....p...| |
|000051a0| 69 66 20 28 61 72 67 20 | 3e 20 30 2e 30 29 20 7b |if (arg |> 0.0) {|
|000051b0| 0d 00 00 00 00 34 00 00 | 25 40 00 00 40 10 92 03 |.....4..|%@..@...|
|000051c0| a5 a2 ba ff b5 c9 ba ff | 70 1a 00 00 20 20 20 20 |........|p... |
|000051d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 72 67 20 | | arg |
|000051e0| 3d 20 66 6c 6f 6f 72 28 | 61 72 67 20 2b 20 30 2e |= floor(|arg + 0.|
|000051f0| 35 29 3b 0d 00 40 00 00 | 25 38 00 00 40 90 d6 02 |5);..@..|%8..@...|
|00005200| c5 73 ba ff d5 9a ba ff | 70 1a 00 00 20 20 20 20 |.s......|p... |
|00005210| 20 20 20 20 7d 20 65 6c | 73 65 20 69 66 20 28 61 | } el|se if (a|
|00005220| 72 67 20 3c 20 30 2e 30 | 29 20 7b 0d 00 38 00 00 |rg < 0.0|) {..8..|
|00005230| 25 40 00 00 40 a0 7a 03 | e5 44 ba ff f5 6b ba ff |%@..@.z.|.D...k..|
|00005240| 70 1a 00 00 20 20 20 20 | 20 20 20 20 20 20 20 20 |p... | |
|00005250| 20 20 20 20 61 72 67 20 | 3d 20 63 65 69 6c 28 61 | arg |= ceil(a|
|00005260| 72 67 20 2d 20 30 2e 35 | 29 3b 0d 00 00 40 00 00 |rg - 0.5|);...@..|
|00005270| 25 2c 00 00 40 00 77 01 | 05 16 ba ff 15 3d ba ff |%,..@.w.|.....=..|
|00005280| 70 1a 00 00 20 20 20 20 | 20 20 20 20 7d 20 65 6c |p... | } el|
|00005290| 73 65 20 7b 0d 00 00 00 | 00 2c 00 00 25 34 00 00 |se {....|.,..%4..|
|000052a0| 40 60 61 02 25 e7 b9 ff | 35 0e ba ff 70 1a 00 00 |@`a.%...|5...p...|
|000052b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052c0| 61 72 67 20 3d 20 30 2e | 30 3b 0d 00 00 34 00 00 |arg = 0.|0;...4..|
|000052d0| 25 24 00 00 40 f0 d2 00 | 45 b8 b9 ff 55 df b9 ff |%$..@...|E...U...|
|000052e0| 70 1a 00 00 20 20 20 20 | 20 20 20 20 7d 0d 00 00 |p... | }...|
|000052f0| 00 24 00 00 25 28 00 00 | 40 90 5f 01 65 89 b9 ff |.$..%(..|@._.e...|
|00005300| 75 b0 b9 ff 70 1a 00 00 | 20 20 20 20 20 20 20 20 |u...p...| |
|00005310| 4f 55 54 50 55 54 3a 0d | 00 28 00 00 a5 50 00 00 |OUTPUT:.|.(...P..|
|00005320| 40 d0 01 01 85 5a b9 ff | 95 81 b9 ff 70 1a 00 00 |@....Z..|....p...|
|00005330| 20 20 20 20 20 20 20 20 | 61 72 67 0d 08 dd a4 00 | |arg.....|
|00005340| 0c f2 a4 00 12 f0 a4 00 | 00 00 00 00 08 20 6d 61 |........|..... ma|
|00005350| 12 00 00 00 00 00 00 00 | 07 45 52 4c 18 f3 a4 00 |........|.ERL....|
|00005360| 18 f3 a4 00 00 00 00 00 | 00 50 00 00 a5 34 00 00 |........|.P...4..|
|00005370| 40 00 00 00 f5 45 b9 ff | b5 52 b9 ff 00 00 00 00 |@....E..|.R......|
|00005380| 0d 08 6c 20 18 f4 a4 00 | 00 00 00 00 07 2d 49 20 |..l ....|.....-I |
|00005390| 14 f5 a4 00 14 f5 a4 00 | 00 00 00 00 00 34 00 00 |........|.....4..|
|000053a0| a5 90 00 00 40 20 29 05 | 25 ed b8 ff 05 1c b9 ff |....@ ).|%.......|
|000053b0| 20 22 00 00 45 64 69 74 | 20 74 68 65 20 4d 61 6b | "..Edit| the Mak|
|000053c0| 65 66 69 6c 65 2e 50 4c | 20 66 69 6c 65 20 73 6f |efile.PL| file so|
|000053d0| 20 74 68 61 74 20 74 68 | 65 20 63 6f 72 72 65 73 | that th|e corres|
|000053e0| 70 6f 6e 64 69 6e 67 20 | 6c 69 6e 65 20 6c 6f 6f |ponding |line loo|
|000053f0| 6b 73 20 6c 69 6b 65 20 | 74 68 69 73 3a 0d 08 00 |ks like |this:...|
|00005400| 14 00 00 00 00 00 00 00 | 07 48 61 73 12 f6 a4 00 |........|.Has....|
|00005410| 12 f6 a4 00 00 00 00 00 | 07 e2 a4 00 0c f7 a4 00 |........|........|
|00005420| 12 f6 a4 00 0c f7 a4 00 | 00 00 00 00 00 90 00 00 |........|........|
|00005430| a5 6c 00 00 40 10 92 03 | 1e 86 b8 ff 2e ad b8 ff |.l..@...|........|
|00005440| 70 1a 00 00 27 4c 49 42 | 53 27 20 20 20 20 20 20 |p...'LIB|S' |
|00005450| 3d 3e 20 5b 27 2d 6c 6d | 27 5d 2c 20 20 20 23 20 |=> ['-lm|'], # |
|00005460| 65 2e 67 2e 2c 20 27 2d | 6c 6d 27 0d 08 6d 70 6c |e.g., '-|lm'..mpl|
|00005470| 0c f8 a4 00 12 f6 a4 00 | 00 00 00 00 08 68 6f 77 |........|.....how|
|00005480| 12 00 00 00 00 00 00 00 | 07 73 65 20 18 f9 a4 00 |........|.se ....|
|00005490| 18 f9 a4 00 00 00 00 00 | 00 6c 00 00 a5 34 00 00 |........|.l...4..|
|000054a0| 40 00 00 00 8e 71 b8 ff | 4e 7e b8 ff 00 00 00 00 |@....q..|N~......|
|000054b0| 0d 08 20 74 18 fa a4 00 | 00 00 00 00 07 74 6f 20 |.. t....|.....to |
|000054c0| 14 fb a4 00 14 fb a4 00 | 00 00 00 00 00 34 00 00 |........|.....4..|
|000054d0| 05 84 00 00 00 80 de 07 | be 18 b8 ff 9e 47 b8 ff |........|.....G..|
|000054e0| 20 22 00 00 47 65 6e 65 | 72 61 74 65 20 74 68 65 | "..Gene|rate the|
|000054f0| 20 4d 61 6b 65 66 69 6c | 65 20 61 6e 64 20 72 75 | Makefil|e and ru|
|00005500| 6e 20 6d 61 6b 65 2e 20 | 20 43 68 61 6e 67 65 20 |n make. | Change |
|00005510| 74 68 65 20 42 45 47 49 | 4e 20 62 6c 6f 63 6b 20 |the BEGI|N block |
|00005520| 74 6f 20 70 72 69 6e 74 | 20 6f 75 74 20 22 31 2e |to print| out "1.|
|00005530| 2e 39 22 20 61 6e 64 20 | 61 64 64 20 74 68 65 20 |.9" and |add the |
|00005540| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 6f 20 00 00 00 |followin|g to ...|
|00005550| 00 84 00 00 a5 50 00 00 | 40 54 7e 00 97 e0 b7 ff |.....P..|@T~.....|
|00005560| 77 0f b8 ff 20 22 00 00 | 74 65 73 74 2e 70 6c 3a |w... "..|test.pl:|
|00005570| 0d 08 6e 2e 14 00 00 00 | 00 00 00 00 07 61 6b 65 |..n.....|.....ake|
|00005580| 12 fc a4 00 12 fc a4 00 | 00 00 00 00 07 6b 20 61 |........|.....k a|
|00005590| 0c fd a4 00 12 fc a4 00 | 0c fd a4 00 00 00 00 00 |........|........|
|000055a0| 00 50 00 00 25 68 00 00 | 40 40 f5 06 90 79 b7 ff |.P..%h..|@@...y..|
|000055b0| a0 a0 b7 ff 70 1a 00 00 | 24 69 20 3d 20 2d 31 2e |....p...|$i = -1.|
|000055c0| 35 3b 20 26 4d 79 74 65 | 73 74 3a 3a 72 6f 75 6e |5; &Myte|st::roun|
|000055d0| 64 28 24 69 29 3b 20 70 | 72 69 6e 74 20 24 69 20 |d($i); p|rint $i |
|000055e0| 3d 3d 20 2d 32 2e 30 20 | 3f 20 22 6f 6b 20 35 22 |== -2.0 |? "ok 5"|
|000055f0| 20 3a 20 22 6e 6f 74 20 | 6f 6b 20 35 22 2c 20 22 | : "not |ok 5", "|
|00005600| 5c 6e 22 3b 0d 00 00 00 | 00 68 00 00 25 68 00 00 |\n";....|.h..%h..|
|00005610| 40 40 f5 06 b0 4a b7 ff | c0 71 b7 ff 70 1a 00 00 |@@...J..|.q..p...|
|00005620| 24 69 20 3d 20 2d 31 2e | 31 3b 20 26 4d 79 74 65 |$i = -1.|1; &Myte|
|00005630| 73 74 3a 3a 72 6f 75 6e | 64 28 24 69 29 3b 20 70 |st::roun|d($i); p|
|00005640| 72 69 6e 74 20 24 69 20 | 3d 3d 20 2d 31 2e 30 20 |rint $i |== -1.0 |
|00005650| 3f 20 22 6f 6b 20 36 22 | 20 3a 20 22 6e 6f 74 20 |? "ok 6"| : "not |
|00005660| 6f 6b 20 36 22 2c 20 22 | 5c 6e 22 3b 0d 00 00 00 |ok 6", "|\n";....|
|00005670| 00 68 00 00 25 64 00 00 | 40 60 c6 06 d0 1b b7 ff |.h..%d..|@`......|
|00005680| e0 42 b7 ff 70 1a 00 00 | 24 69 20 3d 20 30 2e 30 |.B..p...|$i = 0.0|
|00005690| 3b 20 26 4d 79 74 65 73 | 74 3a 3a 72 6f 75 6e 64 |; &Mytes|t::round|
|000056a0| 28 24 69 29 3b 20 70 72 | 69 6e 74 20 24 69 20 3d |($i); pr|int $i =|
|000056b0| 3d 20 30 2e 30 20 3f 20 | 22 6f 6b 20 37 22 20 3a |= 0.0 ? |"ok 7" :|
|000056c0| 20 22 6e 6f 74 20 6f 6b | 20 37 22 2c 20 22 5c 6e | "not ok| 7", "\n|
|000056d0| 22 3b 0d 00 00 64 00 00 | 25 64 00 00 40 60 c6 06 |";...d..|%d..@`..|
|000056e0| f0 ec b6 ff 00 14 b7 ff | 70 1a 00 00 24 69 20 3d |........|p...$i =|
|000056f0| 20 30 2e 35 3b 20 26 4d | 79 74 65 73 74 3a 3a 72 | 0.5; &M|ytest::r|
|00005700| 6f 75 6e 64 28 24 69 29 | 3b 20 70 72 69 6e 74 20 |ound($i)|; print |
|00005710| 24 69 20 3d 3d 20 31 2e | 30 20 3f 20 22 6f 6b 20 |$i == 1.|0 ? "ok |
|00005720| 38 22 20 3a 20 22 6e 6f | 74 20 6f 6b 20 38 22 2c |8" : "no|t ok 8",|
|00005730| 20 22 5c 6e 22 3b 0d 00 | 00 64 00 00 a5 8c 00 00 | "\n";..|.d......|
|00005740| 40 60 c6 06 10 be b6 ff | 20 e5 b6 ff 70 1a 00 00 |@`......| ...p...|
|00005750| 24 69 20 3d 20 31 2e 32 | 3b 20 26 4d 79 74 65 73 |$i = 1.2|; &Mytes|
|00005760| 74 3a 3a 72 6f 75 6e 64 | 28 24 69 29 3b 20 70 72 |t::round|($i); pr|
|00005770| 69 6e 74 20 24 69 20 3d | 3d 20 31 2e 30 20 3f 20 |int $i =|= 1.0 ? |
|00005780| 22 6f 6b 20 39 22 20 3a | 20 22 6e 6f 74 20 6f 6b |"ok 9" :| "not ok|
|00005790| 20 39 22 2c 20 22 5c 6e | 22 3b 0d 08 0c fe a4 00 | 9", "\n|";......|
|000057a0| 12 fc a4 00 00 00 00 00 | 08 69 64 20 12 00 00 00 |........|.id ....|
|000057b0| 00 00 00 00 07 20 76 65 | 18 ff a4 00 18 ff a4 00 |..... ve|........|
|000057c0| 00 00 00 00 00 8c 00 00 | a5 24 00 00 40 00 00 00 |........|.$..@...|
|000057d0| 80 a9 b6 ff 40 b6 b6 ff | 00 00 00 00 0d 08 6c 20 |....@...|......l |
|000057e0| 18 00 a5 00 00 00 00 00 | 00 24 00 00 a5 6c 00 00 |........|.$...l..|
|000057f0| 40 78 13 05 b0 50 b6 ff | 90 7f b6 ff 20 22 00 00 |@x...P..|.... "..|
|00005800| 52 75 6e 6e 69 6e 67 20 | 22 6d 61 6b 65 20 74 65 |Running |"make te|
|00005810| 73 74 22 20 73 68 6f 75 | 6c 64 20 6e 6f 77 20 70 |st" shou|ld now p|
|00005820| 72 69 6e 74 20 6f 75 74 | 20 74 68 61 74 20 61 6c |rint out| that al|
|00005830| 6c 20 6e 69 6e 65 20 74 | 65 73 74 73 20 61 72 65 |l nine t|ests are|
|00005840| 20 6f 6b 61 79 2e 0d 07 | 14 01 a5 00 14 01 a5 00 | okay...|........|
|00005850| 00 00 00 00 00 6c 00 00 | 05 84 00 00 00 4c e2 07 |.....l..|.....L..|
|00005860| d9 e1 b5 ff b9 10 b6 ff | 20 22 00 00 59 6f 75 20 |........| "..You |
|00005870| 6d 69 67 68 74 20 62 65 | 20 77 6f 6e 64 65 72 69 |might be| wonderi|
|00005880| 6e 67 20 69 66 20 79 6f | 75 20 63 61 6e 20 72 6f |ng if yo|u can ro|
|00005890| 75 6e 64 20 61 20 63 6f | 6e 73 74 61 6e 74 2e 20 |und a co|nstant. |
|000058a0| 20 54 6f 20 73 65 65 20 | 77 68 61 74 20 68 61 70 | To see |what hap|
|000058b0| 70 65 6e 73 2c 20 61 64 | 64 20 74 68 65 20 66 6f |pens, ad|d the fo|
|000058c0| 6c 6c 6f 77 69 6e 67 20 | 6c 69 6e 65 20 74 6f 20 |llowing |line to |
|000058d0| 74 65 73 74 2e 70 6c 20 | 00 84 00 00 a5 54 00 00 |test.pl |.....T..|
|000058e0| 40 c0 e7 00 b2 a9 b5 ff | 92 d8 b5 ff 20 22 00 00 |@.......|.... "..|
|000058f0| 74 65 6d 70 6f 72 61 72 | 69 6c 79 3a 0d 08 20 77 |temporar|ily:.. w|
|00005900| 14 00 00 00 00 00 00 00 | 07 20 66 61 12 02 a5 00 |........|. fa....|
|00005910| 12 02 a5 00 00 00 00 00 | 07 6f 74 68 0c 03 a5 00 |........|.oth....|
|00005920| 12 02 a5 00 0c 03 a5 00 | 00 00 00 00 00 54 00 00 |........|.....T..|
|00005930| a5 54 00 00 40 e0 a5 01 | ab 42 b5 ff bb 69 b5 ff |.T..@...|.B...i..|
|00005940| 70 1a 00 00 26 4d 79 74 | 65 73 74 3a 3a 72 6f 75 |p...&Myt|est::rou|
|00005950| 6e 64 28 33 29 3b 0d 08 | 0c 04 a5 00 12 02 a5 00 |nd(3);..|........|
|00005960| 00 00 00 00 08 68 61 74 | 12 00 00 00 00 00 00 00 |.....hat|........|
|00005970| 07 72 65 20 18 05 a5 00 | 18 05 a5 00 00 00 00 00 |.re ....|........|
|00005980| 00 54 00 00 a5 24 00 00 | 40 00 00 00 1b 2e b5 ff |.T...$..|@.......|
|00005990| db 3a b5 ff 00 00 00 00 | 0d 08 69 6e 18 06 a5 00 |.:......|..in....|
|000059a0| 00 00 00 00 00 24 00 00 | a5 98 00 00 40 f8 f3 07 |.....$..|....@...|
|000059b0| 4b d5 b4 ff 2b 04 b5 ff | 20 22 00 00 52 75 6e 20 |K...+...| "..Run |
|000059c0| 22 6d 61 6b 65 20 74 65 | 73 74 22 20 61 6e 64 20 |"make te|st" and |
|000059d0| 6e 6f 74 69 63 65 20 74 | 68 61 74 20 50 65 72 6c |notice t|hat Perl|
|000059e0| 20 64 69 65 73 20 77 69 | 74 68 20 61 20 66 61 74 | dies wi|th a fat|
|000059f0| 61 6c 20 65 72 72 6f 72 | 2e 20 20 50 65 72 6c 20 |al error|. Perl |
|00005a00| 77 6f 6e 27 74 20 6c 65 | 74 20 79 6f 75 20 63 68 |won't le|t you ch|
|00005a10| 61 6e 67 65 20 74 68 65 | 20 76 61 6c 75 65 20 6f |ange the| value o|
|00005a20| 66 20 63 6f 6e 73 74 61 | 6e 74 73 21 0d 07 69 6f |f consta|nts!..io|
|00005a30| 0a 07 a5 00 0a 07 a5 00 | 00 00 00 00 00 98 00 00 |........|........|
|00005a40| a5 34 00 00 40 20 c6 01 | a4 5e b4 ff 54 95 b4 ff |.4..@ ..|.^..T...|
|00005a50| 18 2b 00 00 57 68 61 74 | 27 73 20 4e 65 77 20 48 |.+..What|'s New H|
|00005a60| 65 72 65 3f 0d 08 65 20 | 0a 08 a5 00 00 00 00 00 |ere?..e |........|
|00005a70| 00 34 00 00 05 84 00 00 | 00 38 cc 07 6f 09 b4 ff |.4......|.8..o...|
|00005a80| 4f 38 b4 ff 20 22 00 00 | 54 77 6f 20 74 68 69 6e |O8.. "..|Two thin|
|00005a90| 67 73 20 61 72 65 20 6e | 65 77 20 68 65 72 65 2e |gs are n|ew here.|
|00005aa0| 20 20 46 69 72 73 74 2c | 20 77 65 27 76 65 20 6d | First,| we've m|
|00005ab0| 61 64 65 20 73 6f 6d 65 | 20 63 68 61 6e 67 65 73 |ade some| changes|
|00005ac0| 20 74 6f 20 4d 61 6b 65 | 66 69 6c 65 2e 50 4c 2e | to Make|file.PL.|
|00005ad0| 20 49 6e 20 74 68 69 73 | 20 63 61 73 65 2c 20 77 | In this| case, w|
|00005ae0| 65 27 76 65 20 73 70 65 | 63 69 66 69 65 64 20 61 |e've spe|cified a|
|00005af0| 6e 20 00 00 00 84 00 00 | 05 88 00 00 00 b8 dc 07 |n ......|........|
|00005b00| 48 d1 b3 ff 28 00 b4 ff | 20 22 00 00 65 78 74 72 |H...(...| "..extr|
|00005b10| 61 20 6c 69 62 72 61 72 | 79 20 74 6f 20 6c 69 6e |a librar|y to lin|
|00005b20| 6b 20 69 6e 2c 20 74 68 | 65 20 6d 61 74 68 20 6c |k in, th|e math l|
|00005b30| 69 62 72 61 72 79 20 6c | 69 62 6d 2e 20 20 57 65 |ibrary l|ibm. We|
|00005b40| 27 6c 6c 20 74 61 6c 6b | 20 6c 61 74 65 72 20 61 |'ll talk| later a|
|00005b50| 62 6f 75 74 20 68 6f 77 | 20 74 6f 20 77 72 69 74 |bout how| to writ|
|00005b60| 65 20 58 53 55 42 73 20 | 74 68 61 74 20 63 61 6e |e XSUBs |that can|
|00005b70| 20 63 61 6c 6c 20 65 76 | 65 72 79 20 00 88 00 00 | call ev|ery ....|
|00005b80| 25 30 00 00 40 e0 66 01 | 21 99 b3 ff 01 c8 b3 ff |%0..@.f.|!.......|
|00005b90| 20 22 00 00 72 6f 75 74 | 69 6e 65 20 69 6e 20 61 | "..rout|ine in a|
|00005ba0| 20 6c 69 62 72 61 72 79 | 2e 0d 00 00 00 30 00 00 | library|.....0..|
|00005bb0| 05 84 00 00 00 44 9c 07 | 4a 2a b3 ff 2a 59 b3 ff |.....D..|J*..*Y..|
|00005bc0| 20 22 00 00 53 65 63 6f | 6e 64 2c 20 74 68 65 20 | "..Seco|nd, the |
|00005bd0| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 66 75 6e |value of| the fun|
|00005be0| 63 74 69 6f 6e 20 69 73 | 20 62 65 69 6e 67 20 70 |ction is| being p|
|00005bf0| 61 73 73 65 64 20 62 61 | 63 6b 20 6e 6f 74 20 61 |assed ba|ck not a|
|00005c00| 73 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 27 73 |s the fu|nction's|
|00005c10| 20 72 65 74 75 72 6e 20 | 76 61 6c 75 65 2c 20 62 | return |value, b|
|00005c20| 75 74 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 00 |ut throu|gh the .|
|00005c30| 00 84 00 00 01 10 00 00 | 40 b0 7f 03 00 00 00 00 |........|@.......|
|00005c40| 00 10 00 00 02 14 00 00 | 70 0a 00 00 00 00 00 00 |........|p.......|
|00005c50| 00 00 00 00 00 14 00 00 | a5 64 00 00 40 b0 7f 03 |........|.d..@...|
|00005c60| 5a 46 b1 ff 3a 75 b1 ff | 20 22 00 00 16 00 00 00 |ZF..:u..| "......|
|00005c70| b0 fc 07 00 00 00 00 00 | 73 61 6d 65 20 76 61 72 |........|same var|
|00005c80| 69 61 62 6c 65 20 74 68 | 61 74 20 77 61 73 20 70 |iable th|at was p|
|00005c90| 61 73 73 65 64 20 69 6e | 74 6f 20 74 68 65 20 66 |assed in|to the f|
|00005ca0| 75 6e 63 74 69 6f 6e 2e | 0d 07 69 6e 0a 09 a5 00 |unction.|..in....|
|00005cb0| 0a 09 a5 00 00 00 00 00 | 00 64 00 00 a5 40 00 00 |........|.d...@..|
|00005cc0| 40 50 c4 02 b3 cf b0 ff | 63 06 b1 ff 18 2b 00 00 |@P......|c....+..|
|00005cd0| 49 6e 70 75 74 20 41 6e | 64 20 4f 75 74 70 75 74 |Input An|d Output|
|00005ce0| 20 50 61 72 61 6d 65 74 | 65 72 73 0d 08 6e 20 74 | Paramet|ers..n t|
|00005cf0| 0a 0a a5 00 00 00 00 00 | 00 40 00 00 05 80 00 00 |........|.@......|
|00005d00| 00 f4 85 07 7e 7a b0 ff | 5e a9 b0 ff 20 22 00 00 |....~z..|^... "..|
|00005d10| 59 6f 75 20 73 70 65 63 | 69 66 79 20 74 68 65 20 |You spec|ify the |
|00005d20| 70 61 72 61 6d 65 74 65 | 72 73 20 74 68 61 74 20 |paramete|rs that |
|00005d30| 77 69 6c 6c 20 62 65 20 | 70 61 73 73 65 64 20 69 |will be |passed i|
|00005d40| 6e 74 6f 20 74 68 65 20 | 58 53 55 42 20 6a 75 73 |nto the |XSUB jus|
|00005d50| 74 20 61 66 74 65 72 20 | 79 6f 75 20 64 65 63 6c |t after |you decl|
|00005d60| 61 72 65 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |are the |function|
|00005d70| 20 72 65 74 75 72 6e 20 | 00 80 00 00 05 78 00 00 | return |.....x..|
|00005d80| 00 24 14 07 57 42 b0 ff | 37 71 b0 ff 20 22 00 00 |.$..WB..|7q.. "..|
|00005d90| 76 61 6c 75 65 20 61 6e | 64 20 6e 61 6d 65 2e 20 |value an|d name. |
|00005da0| 20 45 61 63 68 20 70 61 | 72 61 6d 65 74 65 72 20 | Each pa|rameter |
|00005db0| 6c 69 6e 65 20 73 74 61 | 72 74 73 20 77 69 74 68 |line sta|rts with|
|00005dc0| 20 6f 70 74 69 6f 6e 61 | 6c 20 77 68 69 74 65 20 | optiona|l white |
|00005dd0| 73 70 61 63 65 2c 20 61 | 6e 64 20 6d 61 79 20 68 |space, a|nd may h|
|00005de0| 61 76 65 20 61 6e 20 6f | 70 74 69 6f 6e 61 6c 20 |ave an o|ptional |
|00005df0| 00 78 00 00 25 30 00 00 | 40 48 b0 01 30 0a b0 ff |.x..%0..|@H..0...|
|00005e00| 10 39 b0 ff 20 22 00 00 | 74 65 72 6d 69 6e 61 74 |.9.. "..|terminat|
|00005e10| 69 6e 67 20 73 65 6d 69 | 63 6f 6c 6f 6e 2e 0d 00 |ing semi|colon...|
|00005e20| 00 30 00 00 05 84 00 00 | 00 68 c3 07 59 9b af ff |.0......|.h..Y...|
|00005e30| 39 ca af ff 20 22 00 00 | 54 68 65 20 6c 69 73 74 |9... "..|The list|
|00005e40| 20 6f 66 20 6f 75 74 70 | 75 74 20 70 61 72 61 6d | of outp|ut param|
|00005e50| 65 74 65 72 73 20 6f 63 | 63 75 72 73 20 61 66 74 |eters oc|curs aft|
|00005e60| 65 72 20 74 68 65 20 4f | 55 54 50 55 54 3a 20 64 |er the O|UTPUT: d|
|00005e70| 69 72 65 63 74 69 76 65 | 2e 20 20 54 68 65 20 75 |irective|. The u|
|00005e80| 73 65 20 6f 66 20 52 45 | 54 56 41 4c 20 74 65 6c |se of RE|TVAL tel|
|00005e90| 6c 73 20 50 65 72 6c 20 | 74 68 61 74 20 79 6f 75 |ls Perl |that you|
|00005ea0| 20 00 00 00 00 84 00 00 | 05 84 00 00 00 94 d3 07 | .......|........|
|00005eb0| 32 63 af ff 12 92 af ff | 20 22 00 00 77 69 73 68 |2c......| "..wish|
|00005ec0| 20 74 6f 20 73 65 6e 64 | 20 74 68 69 73 20 76 61 | to send| this va|
|00005ed0| 6c 75 65 20 62 61 63 6b | 20 61 73 20 74 68 65 20 |lue back| as the |
|00005ee0| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 20 6f 66 20 |return v|alue of |
|00005ef0| 74 68 65 20 58 53 55 42 | 20 66 75 6e 63 74 69 6f |the XSUB| functio|
|00005f00| 6e 2e 20 20 49 6e 20 45 | 78 61 6d 70 6c 65 20 33 |n. In E|xample 3|
|00005f10| 2c 20 74 68 65 20 76 61 | 6c 75 65 20 77 65 20 77 |, the va|lue we w|
|00005f20| 61 6e 74 65 64 20 00 00 | 00 84 00 00 05 7c 00 00 |anted ..|.....|..|
|00005f30| 00 80 36 07 0b 2b af ff | eb 59 af ff 20 22 00 00 |..6..+..|.Y.. "..|
|00005f40| 72 65 74 75 72 6e 65 64 | 20 77 61 73 20 63 6f 6e |returned| was con|
|00005f50| 74 61 69 6e 65 64 20 69 | 6e 20 74 68 65 20 73 61 |tained i|n the sa|
|00005f60| 6d 65 20 76 61 72 69 61 | 62 6c 65 20 77 65 20 70 |me varia|ble we p|
|00005f70| 61 73 73 65 64 20 69 6e | 2c 20 73 6f 20 77 65 20 |assed in|, so we |
|00005f80| 6c 69 73 74 65 64 20 69 | 74 20 28 61 6e 64 20 6e |listed i|t (and n|
|00005f90| 6f 74 20 52 45 54 56 41 | 4c 29 20 69 6e 20 74 68 |ot RETVA|L) in th|
|00005fa0| 65 20 00 00 00 7c 00 00 | a5 38 00 00 40 cc 5f 01 |e ...|..|.8..@._.|
|00005fb0| e4 f2 ae ff c4 21 af ff | 20 22 00 00 4f 55 54 50 |.....!..| "..OUTP|
|00005fc0| 55 54 3a 20 73 65 63 74 | 69 6f 6e 2e 0d 07 68 65 |UT: sect|ion...he|
|00005fd0| 0a 0b a5 00 0a 0b a5 00 | 00 00 00 00 00 38 00 00 |........|.....8..|
|00005fe0| a5 38 00 00 40 d4 10 02 | 3d 7c ae ff ed b2 ae ff |.8..@...|=|......|
|00005ff0| 18 2b 00 00 54 68 65 20 | 58 73 75 62 70 70 20 43 |.+..The |Xsubpp C|
|00006000| 6f 6d 70 69 6c 65 72 0d | 08 20 76 61 0a 0c a5 00 |ompiler.|. va....|
|00006010| 00 00 00 00 00 38 00 00 | 05 88 00 00 00 fc d4 07 |.....8..|........|
|00006020| 08 27 ae ff e8 55 ae ff | 20 22 00 00 54 68 65 20 |.'...U..| "..The |
|00006030| 63 6f 6d 70 69 6c 65 72 | 20 78 73 75 62 70 70 20 |compiler| xsubpp |
|00006040| 74 61 6b 65 73 20 74 68 | 65 20 58 53 20 63 6f 64 |takes th|e XS cod|
|00006050| 65 20 69 6e 20 74 68 65 | 20 2e 78 73 20 66 69 6c |e in the| .xs fil|
|00006060| 65 20 61 6e 64 20 63 6f | 6e 76 65 72 74 73 20 69 |e and co|nverts i|
|00006070| 74 20 69 6e 74 6f 20 43 | 20 63 6f 64 65 2c 20 70 |t into C| code, p|
|00006080| 6c 61 63 69 6e 67 20 69 | 74 20 69 6e 20 61 20 66 |lacing i|t in a f|
|00006090| 69 6c 65 20 77 68 6f 73 | 65 20 00 00 00 88 00 00 |ile whos|e ......|
|000060a0| a5 78 00 00 40 f8 dd 05 | e1 ee ad ff c1 1d ae ff |.x..@...|........|
|000060b0| 20 22 00 00 73 75 66 66 | 69 78 20 69 73 20 2e 63 | "..suff|ix is .c|
|000060c0| 2e 20 20 54 68 65 20 43 | 20 63 6f 64 65 20 63 72 |. The C| code cr|
|000060d0| 65 61 74 65 64 20 6d 61 | 6b 65 73 20 68 65 61 76 |eated ma|kes heav|
|000060e0| 79 20 75 73 65 20 6f 66 | 20 74 68 65 20 43 20 66 |y use of| the C f|
|000060f0| 75 6e 63 74 69 6f 6e 73 | 20 77 69 74 68 69 6e 20 |unctions| within |
|00006100| 50 65 72 6c 2e 0d 07 69 | 0a 0d a5 00 0a 0d a5 00 |Perl...i|........|
|00006110| 00 00 00 00 00 78 00 00 | a5 34 00 00 40 ae b4 01 |.....x..|.4..@...|
|00006120| 3a 78 ad ff ea ae ad ff | 18 2b 00 00 54 68 65 20 |:x......|.+..The |
|00006130| 54 79 70 65 6d 61 70 20 | 46 69 6c 65 0d 08 78 20 |Typemap |File..x |
|00006140| 0a 0e a5 00 00 00 00 00 | 00 34 00 00 05 88 00 00 |........|.4......|
|00006150| 00 20 b7 07 05 23 ad ff | e5 51 ad ff 20 22 00 00 |. ...#..|.Q.. "..|
|00006160| 54 68 65 20 78 73 75 62 | 70 70 20 63 6f 6d 70 69 |The xsub|pp compi|
|00006170| 6c 65 72 20 75 73 65 73 | 20 72 75 6c 65 73 20 74 |ler uses| rules t|
|00006180| 6f 20 63 6f 6e 76 65 72 | 74 20 66 72 6f 6d 20 50 |o conver|t from P|
|00006190| 65 72 6c 27 73 20 64 61 | 74 61 20 74 79 70 65 73 |erl's da|ta types|
|000061a0| 20 28 73 63 61 6c 61 72 | 2c 20 61 72 72 61 79 2c | (scalar|, array,|
|000061b0| 20 65 74 63 2e 29 20 74 | 6f 20 43 27 73 20 64 61 | etc.) t|o C's da|
|000061c0| 74 61 20 74 79 70 65 73 | 20 28 69 6e 74 2c 20 00 |ta types| (int, .|
|000061d0| 00 88 00 00 05 84 00 00 | 00 bc a5 07 de ea ac ff |........|........|
|000061e0| be 19 ad ff 20 22 00 00 | 63 68 61 72 20 2a 2c 20 |.... "..|char *, |
|000061f0| 65 74 63 2e 29 2e 20 20 | 54 68 65 73 65 20 72 75 |etc.). |These ru|
|00006200| 6c 65 73 20 61 72 65 20 | 73 74 6f 72 65 64 20 69 |les are |stored i|
|00006210| 6e 20 74 68 65 20 74 79 | 70 65 6d 61 70 20 66 69 |n the ty|pemap fi|
|00006220| 6c 65 20 28 24 50 45 52 | 4c 4c 49 42 2f 45 78 74 |le ($PER|LLIB/Ext|
|00006230| 55 74 69 6c 73 2f 74 79 | 70 65 6d 61 70 29 2e 20 |Utils/ty|pemap). |
|00006240| 20 54 68 69 73 20 66 69 | 6c 65 20 69 73 20 73 70 | This fi|le is sp|
|00006250| 6c 69 74 20 00 84 00 00 | 25 2c 00 00 40 ec 24 01 |lit ....|%,..@.$.|
|00006260| b7 b2 ac ff 97 e1 ac ff | 20 22 00 00 69 6e 74 6f |........| "..into|
|00006270| 20 74 68 72 65 65 20 70 | 61 72 74 73 2e 0d 00 00 | three p|arts....|
|00006280| 00 2c 00 00 05 84 00 00 | 00 e8 ee 07 e0 43 ac ff |.,......|.....C..|
|00006290| c0 72 ac ff 20 22 00 00 | 54 68 65 20 66 69 72 73 |.r.. "..|The firs|
|000062a0| 74 20 70 61 72 74 20 61 | 74 74 65 6d 70 74 73 20 |t part a|ttempts |
|000062b0| 74 6f 20 6d 61 70 20 76 | 61 72 69 6f 75 73 20 43 |to map v|arious C|
|000062c0| 20 64 61 74 61 20 74 79 | 70 65 73 20 74 6f 20 61 | data ty|pes to a|
|000062d0| 20 63 6f 64 65 64 20 66 | 6c 61 67 2c 20 77 68 69 | coded f|lag, whi|
|000062e0| 63 68 20 68 61 73 20 73 | 6f 6d 65 20 63 6f 72 72 |ch has s|ome corr|
|000062f0| 65 73 70 6f 6e 64 65 6e | 63 65 20 77 69 74 68 20 |esponden|ce with |
|00006300| 74 68 65 20 00 84 00 00 | 05 88 00 00 00 88 ee 07 |the ....|........|
|00006310| b9 0b ac ff 99 3a ac ff | 20 22 00 00 76 61 72 69 |.....:..| "..vari|
|00006320| 6f 75 73 20 50 65 72 6c | 20 74 79 70 65 73 2e 20 |ous Perl| types. |
|00006330| 20 54 68 65 20 73 65 63 | 6f 6e 64 20 70 61 72 74 | The sec|ond part|
|00006340| 20 63 6f 6e 74 61 69 6e | 73 20 43 20 63 6f 64 65 | contain|s C code|
|00006350| 20 77 68 69 63 68 20 78 | 73 75 62 70 70 20 75 73 | which x|subpp us|
|00006360| 65 73 20 66 6f 72 20 69 | 6e 70 75 74 20 70 61 72 |es for i|nput par|
|00006370| 61 6d 65 74 65 72 73 2e | 20 20 54 68 65 20 74 68 |ameters.| The th|
|00006380| 69 72 64 20 70 61 72 74 | 20 00 00 00 00 88 00 00 |ird part| .......|
|00006390| 25 7c 00 00 40 00 29 07 | 92 d3 ab ff 72 02 ac ff |%|..@.).|....r...|
|000063a0| 20 22 00 00 63 6f 6e 74 | 61 69 6e 73 20 43 20 63 | "..cont|ains C c|
|000063b0| 6f 64 65 20 77 68 69 63 | 68 20 78 73 75 62 70 70 |ode whic|h xsubpp|
|000063c0| 20 75 73 65 73 20 66 6f | 72 20 6f 75 74 70 75 74 | uses fo|r output|
|000063d0| 20 70 61 72 61 6d 65 74 | 65 72 73 2e 20 20 57 65 | paramet|ers. We|
|000063e0| 27 6c 6c 20 74 61 6c 6b | 20 6d 6f 72 65 20 61 62 |'ll talk| more ab|
|000063f0| 6f 75 74 20 74 68 65 20 | 43 20 63 6f 64 65 20 6c |out the |C code l|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.