home *** CD-ROM | disk | FTP | other *** search
Unknown | 1997-07-17 | 28.9 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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| e0 72 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |.r......|........|
|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 2d c1 00 00 00 00 00 | 00 18 00 00 a5 6c 00 00 |.-......|.....l..|
|00000040| 43 d0 04 03 40 25 ff ff | 60 73 ff ff d8 3b 00 00 |C...@%..|`s...;..|
|00000050| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 07 2d c1 00 |........|.....-..|
|00000060| 07 2d c1 00 07 2d c1 00 | 00 00 00 00 70 65 72 6c |.-...-..|....perl|
|00000070| 6f 62 6a 20 2d 20 50 65 | 72 6c 20 6f 62 6a 65 63 |obj - Pe|rl objec|
|00000080| 74 73 05 05 0d 08 05 05 | 07 2d c1 00 00 00 00 00 |ts......|.-......|
|00000090| 07 00 50 13 08 86 7d 00 | 08 86 7d 00 00 00 00 00 |..P...}.|..}.....|
|000000a0| 05 00 00 00 00 6c 00 00 | a5 30 00 00 40 a2 5f 01 |.....l..|.0..@._.|
|000000b0| a0 98 fe ff f0 de fe ff | 68 37 00 00 44 65 73 63 |........|h7..Desc|
|000000c0| 72 69 70 74 69 6f 6e 0d | 08 69 70 74 08 87 7d 00 |ription.|.ipt..}.|
|000000d0| 00 00 00 00 00 30 00 00 | 85 a0 00 00 00 a8 ce 07 |.....0..|........|
|000000e0| 3f 40 fe ff 1f 6f fe ff | 20 22 00 00 46 69 72 73 |?@...o..| "..Firs|
|000000f0| 74 20 6f 66 20 61 6c 6c | 2c 20 79 6f 75 20 6e 65 |t of all|, you ne|
|00000100| 65 64 20 74 6f 20 75 6e | 64 65 72 73 74 61 6e 64 |ed to un|derstand|
|00000110| 20 77 68 61 74 20 72 65 | 66 65 72 65 6e 63 65 73 | what re|ferences|
|00000120| 20 61 72 65 20 69 6e 20 | 50 65 72 6c 2e 20 53 65 | are in |Perl. Se|
|00000130| 65 20 74 68 65 20 63 68 | 61 70 74 65 72 20 07 00 |e the ch|apter ..|
|00000140| 10 88 7d 00 10 88 7d 00 | 00 00 00 00 70 65 72 6c |..}...}.|....perl|
|00000150| 72 65 66 08 10 00 00 00 | 00 00 00 00 20 66 6f 72 |ref.....|.... for|
|00000160| 20 74 68 61 74 2e 20 20 | 53 65 63 6f 6e 64 2c 20 | that. |Second, |
|00000170| 69 66 20 00 00 a0 00 00 | 05 84 00 00 00 c8 b1 07 |if .....|........|
|00000180| 18 08 fe ff f8 36 fe ff | 20 22 00 00 79 6f 75 20 |.....6..| "..you |
|00000190| 73 74 69 6c 6c 20 66 69 | 6e 64 20 74 68 65 20 66 |still fi|nd the f|
|000001a0| 6f 6c 6c 6f 77 69 6e 67 | 20 72 65 66 65 72 65 6e |ollowing| referen|
|000001b0| 63 65 20 77 6f 72 6b 20 | 74 6f 6f 20 63 6f 6d 70 |ce work |too comp|
|000001c0| 6c 69 63 61 74 65 64 2c | 20 61 20 74 75 74 6f 72 |licated,| a tutor|
|000001d0| 69 61 6c 20 6f 6e 20 6f | 62 6a 65 63 74 2d 6f 72 |ial on o|bject-or|
|000001e0| 69 65 6e 74 65 64 20 70 | 72 6f 67 72 61 6d 6d 69 |iented p|rogrammi|
|000001f0| 6e 67 20 69 6e 20 00 00 | 00 84 00 00 a5 60 00 00 |ng in ..|.....`..|
|00000200| 40 74 0a 03 f1 cf fd ff | d1 fe fd ff 20 22 00 00 |@t......|.... "..|
|00000210| 50 65 72 6c 20 63 61 6e | 20 62 65 20 66 6f 75 6e |Perl can| be foun|
|00000220| 64 20 69 6e 20 74 68 65 | 20 63 68 61 70 74 65 72 |d in the| chapter|
|00000230| 20 07 69 6e 10 89 7d 00 | 10 89 7d 00 00 00 00 00 | .in..}.|..}.....|
|00000240| 70 65 72 6c 74 6f 6f 74 | 08 64 20 66 10 00 00 00 |perltoot|.d f....|
|00000250| 00 00 00 00 2e 0d 00 00 | 00 60 00 00 a5 8c 00 00 |........|.`......|
|00000260| 40 b0 0f 07 1a 61 fd ff | fa 8f fd ff 20 22 00 00 |@....a..|.... "..|
|00000270| 49 66 20 79 6f 75 27 72 | 65 20 73 74 69 6c 6c 20 |If you'r|e still |
|00000280| 77 69 74 68 20 75 73 2c | 20 74 68 65 6e 20 68 65 |with us,| then he|
|00000290| 72 65 20 61 72 65 20 74 | 68 72 65 65 20 76 65 72 |re are t|hree ver|
|000002a0| 79 20 73 69 6d 70 6c 65 | 20 64 65 66 69 6e 69 74 |y simple| definit|
|000002b0| 69 6f 6e 73 20 74 68 61 | 74 20 79 6f 75 20 73 68 |ions tha|t you sh|
|000002c0| 6f 75 6c 64 20 66 69 6e | 64 20 72 65 61 73 73 75 |ould fin|d reassu|
|000002d0| 72 69 6e 67 2e 0d 07 61 | 13 8a 7d 00 13 8a 7d 00 |ring...a|..}...}.|
|000002e0| 00 00 00 00 00 8c 00 00 | 25 80 00 00 44 04 26 06 |........|%...D.&.|
|000002f0| 43 f2 fc ff 23 21 fd ff | 20 22 00 00 12 20 74 6f |C...#!..| "... to|
|00000300| e0 2e 00 00 00 00 00 00 | 31 12 20 6f 70 17 00 00 |........|1. op...|
|00000310| 00 00 00 00 41 6e 20 6f | 62 6a 65 63 74 20 69 73 |....An o|bject is|
|00000320| 20 73 69 6d 70 6c 79 20 | 61 20 72 65 66 65 72 65 | simply |a refere|
|00000330| 6e 63 65 20 74 68 61 74 | 20 68 61 70 70 65 6e 73 |nce that| happens|
|00000340| 20 74 6f 20 6b 6e 6f 77 | 20 77 68 69 63 68 20 63 | to know| which c|
|00000350| 6c 61 73 73 20 69 74 20 | 62 65 6c 6f 6e 67 73 20 |lass it |belongs |
|00000360| 74 6f 2e 0d 00 80 00 00 | 25 8c 00 00 44 68 0c 07 |to......|%...Dh..|
|00000370| 6c 83 fc ff 4c b2 fc ff | 20 22 00 00 12 73 73 20 |l...L...| "...ss |
|00000380| e0 2e 00 00 00 00 00 00 | 32 12 73 20 70 17 00 00 |........|2.s p...|
|00000390| 00 00 00 00 41 20 63 6c | 61 73 73 20 69 73 20 73 |....A cl|ass is s|
|000003a0| 69 6d 70 6c 79 20 61 20 | 70 61 63 6b 61 67 65 20 |imply a |package |
|000003b0| 74 68 61 74 20 68 61 70 | 70 65 6e 73 20 74 6f 20 |that hap|pens to |
|000003c0| 70 72 6f 76 69 64 65 20 | 6d 65 74 68 6f 64 73 20 |provide |methods |
|000003d0| 74 6f 20 64 65 61 6c 20 | 77 69 74 68 20 6f 62 6a |to deal |with obj|
|000003e0| 65 63 74 20 72 65 66 65 | 72 65 6e 63 65 73 2e 0d |ect refe|rences..|
|000003f0| 00 8c 00 00 05 90 00 00 | 04 dc 46 07 95 14 fc ff |........|..F.....|
|00000400| 75 43 fc ff 20 22 00 00 | 12 05 05 05 e0 2e 00 00 |uC.. "..|........|
|00000410| 00 00 00 00 33 12 05 05 | 70 17 00 00 00 00 00 00 |....3...|p.......|
|00000420| 41 20 6d 65 74 68 6f 64 | 20 69 73 20 73 69 6d 70 |A method| is simp|
|00000430| 6c 79 20 61 20 73 75 62 | 72 6f 75 74 69 6e 65 20 |ly a sub|routine |
|00000440| 74 68 61 74 20 65 78 70 | 65 63 74 73 20 61 6e 20 |that exp|ects an |
|00000450| 6f 62 6a 65 63 74 20 72 | 65 66 65 72 65 6e 63 65 |object r|eference|
|00000460| 20 28 6f 72 20 61 20 70 | 61 63 6b 61 67 65 20 6e | (or a p|ackage n|
|00000470| 61 6d 65 2c 20 66 6f 72 | 20 63 6c 61 73 73 20 00 |ame, for| class .|
|00000480| 00 90 00 00 a5 44 00 00 | 40 1c 45 02 6e dc fb ff |.....D..|@.E.n...|
|00000490| 4e 0b fc ff 20 22 00 00 | 6d 65 74 68 6f 64 73 29 |N... "..|methods)|
|000004a0| 20 61 73 20 74 68 65 20 | 66 69 72 73 74 20 61 72 | as the |first ar|
|000004b0| 67 75 6d 65 6e 74 2e 0d | 08 20 22 62 13 8b 7d 00 |gument..|. "b..}.|
|000004c0| 00 00 00 00 00 44 00 00 | a5 54 00 00 40 48 36 03 |.....D..|.T..@H6.|
|000004d0| 97 6d fb ff 77 9c fb ff | 20 22 00 00 57 65 27 6c |.m..w...| "..We'l|
|000004e0| 6c 20 63 6f 76 65 72 20 | 74 68 65 73 65 20 70 6f |l cover |these po|
|000004f0| 69 6e 74 73 20 6e 6f 77 | 20 69 6e 20 6d 6f 72 65 |ints now| in more|
|00000500| 20 64 65 70 74 68 2e 0d | 07 20 48 65 0a 8c 7d 00 | depth..|. He..}.|
|00000510| 0a 8c 7d 00 00 00 00 00 | 00 54 00 00 a5 54 00 00 |..}.....|.T...T..|
|00000520| 40 2c 13 03 f0 f6 fa ff | a0 2d fb ff 18 2b 00 00 |@,......|.-...+..|
|00000530| 41 6e 20 4f 62 6a 65 63 | 74 20 69 73 20 53 69 6d |An Objec|t is Sim|
|00000540| 70 6c 79 20 61 20 52 65 | 66 65 72 65 6e 63 65 0d |ply a Re|ference.|
|00000550| 08 63 6c 61 0a 8d 7d 00 | 00 00 00 00 07 44 00 00 |.cla..}.|.....D..|
|00000560| 14 8e 7d 00 14 8e 7d 00 | 00 00 00 00 00 54 00 00 |..}...}.|.....T..|
|00000570| 05 80 00 00 00 90 44 07 | bb a1 fa ff 9b d0 fa ff |......D.|........|
|00000580| 20 22 00 00 55 6e 6c 69 | 6b 65 20 73 61 79 20 43 | "..Unli|ke say C|
|00000590| 2b 2b 2c 20 50 65 72 6c | 20 64 6f 65 73 6e 27 74 |++, Perl| doesn't|
|000005a0| 20 70 72 6f 76 69 64 65 | 20 61 6e 79 20 73 70 65 | provide| any spe|
|000005b0| 63 69 61 6c 20 73 79 6e | 74 61 78 20 66 6f 72 20 |cial syn|tax for |
|000005c0| 63 6f 6e 73 74 72 75 63 | 74 6f 72 73 2e 20 20 41 |construc|tors. A|
|000005d0| 20 63 6f 6e 73 74 72 75 | 63 74 6f 72 20 69 73 20 | constru|ctor is |
|000005e0| 6d 65 72 65 6c 79 20 61 | 20 00 00 00 00 80 00 00 |merely a| .......|
|000005f0| 05 8c 00 00 00 00 f2 07 | 94 69 fa ff 74 98 fa ff |........|.i..t...|
|00000600| 20 22 00 00 73 75 62 72 | 6f 75 74 69 6e 65 20 74 | "..subr|outine t|
|00000610| 68 61 74 20 72 65 74 75 | 72 6e 73 20 61 20 72 65 |hat retu|rns a re|
|00000620| 66 65 72 65 6e 63 65 20 | 74 6f 20 73 6f 6d 65 74 |ference |to somet|
|00000630| 68 69 6e 67 20 22 62 6c | 65 73 73 65 64 22 20 69 |hing "bl|essed" i|
|00000640| 6e 74 6f 20 61 20 63 6c | 61 73 73 2c 20 67 65 6e |nto a cl|ass, gen|
|00000650| 65 72 61 6c 6c 79 20 74 | 68 65 20 63 6c 61 73 73 |erally t|he class|
|00000660| 20 74 68 61 74 20 74 68 | 65 20 73 75 62 72 6f 75 | that th|e subrou|
|00000670| 74 69 6e 65 20 00 00 00 | 00 8c 00 00 a5 74 00 00 |tine ...|.....t..|
|00000680| 40 74 28 03 6d 31 fa ff | 4d 60 fa ff 20 22 00 00 |@t(.m1..|M`.. "..|
|00000690| 69 73 20 64 65 66 69 6e | 65 64 20 69 6e 2e 20 20 |is defin|ed in. |
|000006a0| 48 65 72 65 20 69 73 20 | 61 20 74 79 70 69 63 61 |Here is |a typica|
|000006b0| 6c 20 63 6f 6e 73 74 72 | 75 63 74 6f 72 3a 0d 08 |l constr|uctor:..|
|000006c0| 14 00 00 00 00 00 00 00 | 07 20 62 65 12 8f 7d 00 |........|. be..}.|
|000006d0| 12 8f 7d 00 00 00 00 00 | 07 65 72 65 0c 90 7d 00 |..}.....|.ere..}.|
|000006e0| 12 8f 7d 00 0c 90 7d 00 | 00 00 00 00 00 74 00 00 |..}...}.|.....t..|
|000006f0| 25 2c 00 00 40 00 77 01 | 66 ca f9 ff 76 f1 f9 ff |%,..@.w.|f...v...|
|00000700| 70 1a 00 00 70 61 63 6b | 61 67 65 20 43 72 69 74 |p...pack|age Crit|
|00000710| 74 65 72 3b 0d 00 00 00 | 00 2c 00 00 a5 58 00 00 |ter;....|.,...X..|
|00000720| 40 c0 d4 01 86 9b f9 ff | 96 c2 f9 ff 70 1a 00 00 |@.......|....p...|
|00000730| 73 75 62 20 6e 65 77 20 | 7b 20 62 6c 65 73 73 20 |sub new |{ bless |
|00000740| 7b 7d 20 7d 0d 08 6c 79 | 0c 91 7d 00 12 8f 7d 00 |{} }..ly|..}...}.|
|00000750| 00 00 00 00 08 08 05 05 | 12 00 00 00 00 00 00 00 |........|........|
|00000760| 07 05 05 05 18 92 7d 00 | 18 92 7d 00 00 00 00 00 |......}.|..}.....|
|00000770| 00 58 00 00 a5 34 00 00 | 40 00 00 00 f6 86 f9 ff |.X...4..|@.......|
|00000780| b6 93 f9 ff 00 00 00 00 | 0d 08 77 20 18 93 7d 00 |........|..w ..}.|
|00000790| 00 00 00 00 07 24 73 65 | 14 94 7d 00 14 94 7d 00 |.....$se|..}...}.|
|000007a0| 00 00 00 00 00 34 00 00 | 85 a4 00 00 00 e4 c5 07 |.....4..|........|
|000007b0| 26 2e f9 ff 06 5d f9 ff | 20 22 00 00 54 68 65 20 |&....]..| "..The |
|000007c0| 07 66 3b 0d 0e 95 7d 00 | 14 94 7d 00 0e 95 7d 00 |.f;...}.|..}...}.|
|000007d0| 00 00 00 00 7b 7d 08 05 | 0e 96 7d 00 14 94 7d 00 |....{}..|..}...}.|
|000007e0| 00 00 00 00 20 63 6f 6e | 73 74 72 75 63 74 73 20 |.... con|structs |
|000007f0| 61 20 72 65 66 65 72 65 | 6e 63 65 20 74 6f 20 61 |a refere|nce to a|
|00000800| 6e 20 61 6e 6f 6e 79 6d | 6f 75 73 20 68 61 73 68 |n anonym|ous hash|
|00000810| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 6e 6f 20 6b | contain|ing no k|
|00000820| 65 79 2f 76 61 6c 75 65 | 20 70 61 69 72 73 2e 20 |ey/value| pairs. |
|00000830| 20 54 68 65 20 62 6c 65 | 73 73 28 29 20 74 61 6b | The ble|ss() tak|
|00000840| 65 73 20 74 68 61 74 20 | 00 a4 00 00 05 88 00 00 |es that |........|
|00000850| 00 fc 5f 07 ff f5 f8 ff | df 24 f9 ff 20 22 00 00 |.._.....|.$.. "..|
|00000860| 72 65 66 65 72 65 6e 63 | 65 20 61 6e 64 20 74 65 |referenc|e and te|
|00000870| 6c 6c 73 20 74 68 65 20 | 6f 62 6a 65 63 74 20 69 |lls the |object i|
|00000880| 74 20 05 72 65 66 65 72 | 65 6e 63 65 73 20 74 68 |t .refer|ences th|
|00000890| 61 74 20 69 74 27 73 20 | 6e 6f 77 20 61 20 43 72 |at it's |now a Cr|
|000008a0| 69 74 74 65 72 2c 20 61 | 6e 64 20 72 65 74 75 72 |itter, a|nd retur|
|000008b0| 6e 73 20 74 68 65 20 72 | 65 66 65 72 65 6e 63 65 |ns the r|eference|
|000008c0| 2e 20 54 68 69 73 20 69 | 73 20 66 6f 72 20 00 00 |. This i|s for ..|
|000008d0| 00 88 00 00 05 84 00 00 | 00 84 86 07 d8 bd f8 ff |........|........|
|000008e0| b8 ec f8 ff 20 22 00 00 | 63 6f 6e 76 65 6e 69 65 |.... "..|convenie|
|000008f0| 6e 63 65 2c 20 62 65 63 | 61 75 73 65 20 74 68 65 |nce, bec|ause the|
|00000900| 20 72 65 66 65 72 65 6e | 63 65 64 20 6f 62 6a 65 | referen|ced obje|
|00000910| 63 74 20 69 74 73 65 6c | 66 20 6b 6e 6f 77 73 20 |ct itsel|f knows |
|00000920| 74 68 61 74 20 69 74 20 | 68 61 73 20 62 65 65 6e |that it |has been|
|00000930| 20 62 6c 65 73 73 65 64 | 2c 20 61 6e 64 20 74 68 | blessed|, and th|
|00000940| 65 20 72 65 66 65 72 65 | 6e 63 65 20 74 6f 20 69 |e refere|nce to i|
|00000950| 74 20 00 00 00 84 00 00 | a5 74 00 00 40 9c 2a 03 |t ......|.t..@.*.|
|00000960| b1 85 f8 ff 91 b4 f8 ff | 20 22 00 00 63 6f 75 6c |........| "..coul|
|00000970| 64 20 68 61 76 65 20 62 | 65 65 6e 20 72 65 74 75 |d have b|een retu|
|00000980| 72 6e 65 64 20 64 69 72 | 65 63 74 6c 79 2c 20 6c |rned dir|ectly, l|
|00000990| 69 6b 65 20 74 68 69 73 | 3a 0d 08 73 14 00 00 00 |ike this|:..s....|
|000009a0| 00 00 00 00 07 20 22 4d | 12 97 7d 00 12 97 7d 00 |..... "M|..}...}.|
|000009b0| 00 00 00 00 07 69 6f 6e | 0c 98 7d 00 12 97 7d 00 |.....ion|..}...}.|
|000009c0| 0c 98 7d 00 00 00 00 00 | 00 74 00 00 25 24 00 00 |..}.....|.t..%$..|
|000009d0| 40 f0 d2 00 aa 1e f8 ff | ba 45 f8 ff 70 1a 00 00 |@.......|.E..p...|
|000009e0| 73 75 62 20 6e 65 77 20 | 7b 0d 00 00 00 24 00 00 |sub new |{....$..|
|000009f0| 25 2c 00 00 40 e0 a5 01 | ca ef f7 ff da 16 f8 ff |%,..@...|........|
|00000a00| 70 1a 00 00 20 20 20 20 | 6d 79 20 24 73 65 6c 66 |p... |my $self|
|00000a10| 20 3d 20 7b 7d 3b 0d 00 | 00 2c 00 00 25 2c 00 00 | = {};..|.,..%,..|
|00000a20| 40 00 77 01 ea c0 f7 ff | fa e7 f7 ff 70 1a 00 00 |@.w.....|....p...|
|00000a30| 20 20 20 20 62 6c 65 73 | 73 20 24 73 65 6c 66 3b | bles|s $self;|
|00000a40| 0d 00 00 00 00 2c 00 00 | 25 2c 00 00 40 70 8e 01 |.....,..|%,..@p..|
|00000a50| 0a 92 f7 ff 1a b9 f7 ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00000a60| 72 65 74 75 72 6e 20 24 | 73 65 6c 66 3b 0d 00 00 |return $|self;...|
|00000a70| 00 2c 00 00 a5 44 00 00 | 40 70 17 00 2a 63 f7 ff |.,...D..|@p..*c..|
|00000a80| 3a 8a f7 ff 70 1a 00 00 | 7d 0d 08 00 0c 99 7d 00 |:...p...|}.....}.|
|00000a90| 12 97 7d 00 00 00 00 00 | 08 20 6d 79 12 00 00 00 |..}.....|. my....|
|00000aa0| 00 00 00 00 07 20 73 68 | 18 9a 7d 00 18 9a 7d 00 |..... sh|..}...}.|
|00000ab0| 00 00 00 00 00 44 00 00 | a5 34 00 00 40 00 00 00 |.....D..|.4..@...|
|00000ac0| 9a 4e f7 ff 5a 5b f7 ff | 00 00 00 00 0d 08 66 2c |.N..Z[..|......f,|
|00000ad0| 18 9b 7d 00 00 00 00 00 | 07 20 20 20 14 9c 7d 00 |..}.....|. ..}.|
|00000ae0| 14 9c 7d 00 00 00 00 00 | 00 34 00 00 05 88 00 00 |..}.....|.4......|
|00000af0| 00 dc e5 07 ca f5 f6 ff | aa 24 f7 ff 20 22 00 00 |........|.$.. "..|
|00000b00| 49 6e 20 66 61 63 74 2c | 20 79 6f 75 20 6f 66 74 |In fact,| you oft|
|00000b10| 65 6e 20 73 65 65 20 73 | 75 63 68 20 61 20 74 68 |en see s|uch a th|
|00000b20| 69 6e 67 20 69 6e 20 6d | 6f 72 65 20 63 6f 6d 70 |ing in m|ore comp|
|00000b30| 6c 69 63 61 74 65 64 20 | 63 6f 6e 73 74 72 75 63 |licated |construc|
|00000b40| 74 6f 72 73 20 74 68 61 | 74 20 77 69 73 68 20 74 |tors tha|t wish t|
|00000b50| 6f 20 63 61 6c 6c 20 6d | 65 74 68 6f 64 73 20 69 |o call m|ethods i|
|00000b60| 6e 20 74 68 65 20 63 6c | 61 73 73 20 61 73 20 00 |n the cl|ass as .|
|00000b70| 00 88 00 00 a5 60 00 00 | 40 28 c1 01 a3 bd f6 ff |.....`..|@(......|
|00000b80| 83 ec f6 ff 20 22 00 00 | 70 61 72 74 20 6f 66 20 |.... "..|part of |
|00000b90| 74 68 65 20 63 6f 6e 73 | 74 72 75 63 74 69 6f 6e |the cons|truction|
|00000ba0| 3a 0d 08 00 14 00 00 00 | 00 00 00 00 07 20 07 05 |:.......|..... ..|
|00000bb0| 12 9d 7d 00 12 9d 7d 00 | 00 00 00 00 07 00 00 00 |..}...}.|........|
|00000bc0| 0c 9e 7d 00 12 9d 7d 00 | 0c 9e 7d 00 00 00 00 00 |..}...}.|..}.....|
|00000bd0| 00 60 00 00 25 24 00 00 | 40 f0 d2 00 9c 56 f6 ff |.`..%$..|@....V..|
|00000be0| ac 7d f6 ff 70 1a 00 00 | 73 75 62 20 6e 65 77 20 |.}..p...|sub new |
|00000bf0| 7b 0d 00 00 00 24 00 00 | 25 2c 00 00 40 70 8e 01 |{....$..|%,..@p..|
|00000c00| bc 27 f6 ff cc 4e f6 ff | 70 1a 00 00 20 20 20 20 |.'...N..|p... |
|00000c10| 6d 79 20 24 73 65 6c 66 | 20 3d 20 7b 7d 0d 00 00 |my $self| = {}...|
|00000c20| 00 2c 00 00 25 2c 00 00 | 40 00 77 01 dc f8 f5 ff |.,..%,..|@.w.....|
|00000c30| ec 1f f6 ff 70 1a 00 00 | 20 20 20 20 62 6c 65 73 |....p...| bles|
|00000c40| 73 20 24 73 65 6c 66 3b | 0d 00 00 00 00 2c 00 00 |s $self;|.....,..|
|00000c50| 25 34 00 00 40 80 32 02 | fc c9 f5 ff 0c f1 f5 ff |%4..@.2.|........|
|00000c60| 70 1a 00 00 20 20 20 20 | 24 73 65 6c 66 2d 3e 69 |p... |$self->i|
|00000c70| 6e 69 74 69 61 6c 69 7a | 65 28 29 3b 0d 00 00 00 |nitializ|e();....|
|00000c80| 00 34 00 00 25 2c 00 00 | 40 70 8e 01 1c 9b f5 ff |.4..%,..|@p......|
|00000c90| 2c c2 f5 ff 70 1a 00 00 | 20 20 20 20 72 65 74 75 |,...p...| retu|
|00000ca0| 72 6e 20 24 73 65 6c 66 | 3b 0d 00 00 00 2c 00 00 |rn $self|;....,..|
|00000cb0| a5 44 00 00 40 70 17 00 | 3c 6c f5 ff 4c 93 f5 ff |.D..@p..|<l..L...|
|00000cc0| 70 1a 00 00 7d 0d 08 20 | 0c 9f 7d 00 12 9d 7d 00 |p...}.. |..}...}.|
|00000cd0| 00 00 00 00 08 20 20 20 | 12 00 00 00 00 00 00 00 |..... |........|
|00000ce0| 07 6c 66 2c 18 a0 7d 00 | 18 a0 7d 00 00 00 00 00 |.lf,..}.|..}.....|
|00000cf0| 00 44 00 00 a5 34 00 00 | 40 00 00 00 ac 57 f5 ff |.D...4..|@....W..|
|00000d00| 6c 64 f5 ff 00 00 00 00 | 0d 08 1d f3 18 a1 7d 00 |ld......|......}.|
|00000d10| 00 00 00 00 07 6c 65 73 | 14 a2 7d 00 14 a2 7d 00 |.....les|..}...}.|
|00000d20| 00 00 00 00 00 34 00 00 | 01 10 00 00 01 24 b6 07 |.....4..|.....$..|
|00000d30| 00 00 00 00 00 10 00 00 | 02 18 00 00 64 02 00 00 |........|....d...|
|00000d40| 00 00 00 00 14 a2 7d 00 | 00 00 00 00 00 18 00 00 |......}.|........|
|00000d50| 05 90 00 00 00 24 b6 07 | cf 44 f2 ff af 73 f2 ff |.....$..|.D...s..|
|00000d60| 20 22 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00000d70| 49 66 20 79 6f 75 20 63 | 61 72 65 20 61 62 6f 75 |If you c|are abou|
|00000d80| 74 20 69 6e 68 65 72 69 | 74 61 6e 63 65 20 28 61 |t inheri|tance (a|
|00000d90| 6e 64 20 79 6f 75 20 73 | 68 6f 75 6c 64 3b 20 73 |nd you s|hould; s|
|00000da0| 65 65 20 74 68 65 20 73 | 65 63 74 69 6f 6e 20 6f |ee the s|ection o|
|00000db0| 6e 20 22 4d 6f 64 75 6c | 65 73 3a 20 43 72 65 61 |n "Modul|es: Crea|
|00000dc0| 74 69 6f 6e 2c 20 55 73 | 65 2c 20 61 6e 64 20 41 |tion, Us|e, and A|
|00000dd0| 62 75 73 65 22 20 69 6e | 20 00 00 00 00 90 00 00 |buse" in| .......|
|00000de0| 85 a0 00 00 01 04 82 07 | a8 0c f2 ff 88 3b f2 ff |........|.....;..|
|00000df0| 20 22 00 00 74 68 65 20 | 63 68 61 70 74 65 72 20 | "..the |chapter |
|00000e00| 07 6b 61 67 10 a3 7d 00 | 14 a2 7d 00 10 a3 7d 00 |.kag..}.|..}...}.|
|00000e10| 00 00 00 00 70 65 72 6c | 6d 6f 64 08 10 00 00 00 |....perl|mod.....|
|00000e20| 14 a2 7d 00 00 00 00 00 | 29 2c 20 74 68 65 6e 20 |..}.....|), then |
|00000e30| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 |you want| to use |
|00000e40| 74 68 65 20 74 77 6f 2d | 61 72 67 20 66 6f 72 6d |the two-|arg form|
|00000e50| 20 6f 66 20 62 6c 65 73 | 73 20 73 6f 20 74 68 61 | of bles|s so tha|
|00000e60| 74 20 79 6f 75 72 20 63 | 6f 6e 73 74 72 75 63 74 |t your c|onstruct|
|00000e70| 6f 72 73 20 6d 61 79 20 | 62 65 20 00 00 a0 00 00 |ors may |be .....|
|00000e80| a5 50 00 00 40 ac b3 00 | 81 d4 f1 ff 61 03 f2 ff |.P..@...|....a...|
|00000e90| 20 22 00 00 69 6e 68 65 | 72 69 74 65 64 3a 0d 08 | "..inhe|rited:..|
|00000ea0| 14 00 00 00 00 00 00 00 | 07 00 00 00 12 a4 7d 00 |........|......}.|
|00000eb0| 12 a4 7d 00 00 00 00 00 | 07 0d 00 00 0c a5 7d 00 |..}.....|......}.|
|00000ec0| 12 a4 7d 00 0c a5 7d 00 | 00 00 00 00 00 50 00 00 |..}...}.|.....P..|
|00000ed0| 25 24 00 00 40 f0 d2 00 | 7a 6d f1 ff 8a 94 f1 ff |%$..@...|zm......|
|00000ee0| 70 1a 00 00 73 75 62 20 | 6e 65 77 20 7b 0d 00 00 |p...sub |new {...|
|00000ef0| 00 24 00 00 25 30 00 00 | 40 a0 03 02 9a 3e f1 ff |.$..%0..|@....>..|
|00000f00| aa 65 f1 ff 70 1a 00 00 | 20 20 20 20 6d 79 20 24 |.e..p...| my $|
|00000f10| 63 6c 61 73 73 20 3d 20 | 73 68 69 66 74 3b 0d 00 |class = |shift;..|
|00000f20| 00 30 00 00 25 2c 00 00 | 40 e0 a5 01 ba 0f f1 ff |.0..%,..|@.......|
|00000f30| ca 36 f1 ff 70 1a 00 00 | 20 20 20 20 6d 79 20 24 |.6..p...| my $|
|00000f40| 73 65 6c 66 20 3d 20 7b | 7d 3b 0d 00 00 2c 00 00 |self = {|};...,..|
|00000f50| 25 30 00 00 40 10 1b 02 | da e0 f0 ff ea 07 f1 ff |%0..@...|........|
|00000f60| 70 1a 00 00 20 20 20 20 | 62 6c 65 73 73 20 24 73 |p... |bless $s|
|00000f70| 65 6c 66 2c 20 24 63 6c | 61 73 73 0d 00 30 00 00 |elf, $cl|ass..0..|
|00000f80| 25 34 00 00 40 80 32 02 | fa b1 f0 ff 0a d9 f0 ff |%4..@.2.|........|
|00000f90| 70 1a 00 00 20 20 20 20 | 24 73 65 6c 66 2d 3e 69 |p... |$self->i|
|00000fa0| 6e 69 74 69 61 6c 69 7a | 65 28 29 3b 0d 00 00 00 |nitializ|e();....|
|00000fb0| 00 34 00 00 25 2c 00 00 | 40 70 8e 01 1a 83 f0 ff |.4..%,..|@p......|
|00000fc0| 2a aa f0 ff 70 1a 00 00 | 20 20 20 20 72 65 74 75 |*...p...| retu|
|00000fd0| 72 6e 20 24 73 65 6c 66 | 3b 0d 00 00 00 2c 00 00 |rn $self|;....,..|
|00000fe0| a5 44 00 00 40 70 17 00 | 3a 54 f0 ff 4a 7b f0 ff |.D..@p..|:T..J{..|
|00000ff0| 70 1a 00 00 7d 0d 08 73 | 0c a6 7d 00 12 a4 7d 00 |p...}..s|..}...}.|
|00001000| 00 00 00 00 08 20 62 6c | 12 00 00 00 00 00 00 00 |..... bl|........|
|00001010| 07 63 74 69 18 a7 7d 00 | 18 a7 7d 00 00 00 00 00 |.cti..}.|..}.....|
|00001020| 00 44 00 00 a5 34 00 00 | 40 00 00 00 aa 3f f0 ff |.D...4..|@....?..|
|00001030| 6a 4c f0 ff 00 00 00 00 | 0d 08 63 74 18 a8 7d 00 |jL......|..ct..}.|
|00001040| 00 00 00 00 07 65 72 20 | 14 a9 7d 00 14 a9 7d 00 |.....er |..}...}.|
|00001050| 00 00 00 00 00 34 00 00 | 85 c0 00 00 00 e0 e1 07 |.....4..|........|
|00001060| da e6 ef ff ba 15 f0 ff | 20 22 00 00 4f 72 20 69 |........| "..Or i|
|00001070| 66 20 79 6f 75 20 65 78 | 70 65 63 74 20 70 65 6f |f you ex|pect peo|
|00001080| 70 6c 65 20 74 6f 20 63 | 61 6c 6c 20 6e 6f 74 20 |ple to c|all not |
|00001090| 6a 75 73 74 20 07 62 20 | 0e aa 7d 00 14 a9 7d 00 |just .b |..}...}.|
|000010a0| 0e aa 7d 00 00 00 00 00 | 43 4c 41 53 53 2d 3e 6e |..}.....|CLASS->n|
|000010b0| 65 77 28 29 08 5c 24 62 | 0e ab 7d 00 14 a9 7d 00 |ew().\$b|..}...}.|
|000010c0| 00 00 00 00 20 62 75 74 | 20 61 6c 73 6f 20 07 0d |.... but| also ..|
|000010d0| 0e ac 7d 00 14 a9 7d 00 | 0e ac 7d 00 00 00 00 00 |..}...}.|..}.....|
|000010e0| 24 6f 62 6a 2d 3e 6e 65 | 77 28 29 08 0e ad 7d 00 |$obj->ne|w()...}.|
|000010f0| 14 a9 7d 00 00 00 00 00 | 2c 20 74 68 65 6e 20 75 |..}.....|, then u|
|00001100| 73 65 20 73 6f 6d 65 74 | 68 69 6e 67 20 6c 69 6b |se somet|hing lik|
|00001110| 65 20 00 00 00 c0 00 00 | a5 a0 00 00 40 2c 6a 06 |e ......|....@,j.|
|00001120| b3 ae ef ff 93 dd ef ff | 20 22 00 00 74 68 69 73 |........| "..this|
|00001130| 2e 20 20 54 68 65 20 69 | 6e 69 74 69 61 6c 69 7a |. The i|nitializ|
|00001140| 65 28 29 20 6d 65 74 68 | 6f 64 20 75 73 65 64 20 |e() meth|od used |
|00001150| 77 69 6c 6c 20 62 65 20 | 6f 66 20 77 68 61 74 65 |will be |of whate|
|00001160| 76 65 72 20 24 63 6c 61 | 73 73 20 77 65 20 62 6c |ver $cla|ss we bl|
|00001170| 65 73 73 65 64 20 74 68 | 65 20 6f 62 6a 65 63 74 |essed th|e object|
|00001180| 20 69 6e 74 6f 3a 0d 08 | 14 00 00 00 00 00 00 00 | into:..|........|
|00001190| 07 61 63 6b 12 ae 7d 00 | 12 ae 7d 00 00 00 00 00 |.ack..}.|..}.....|
|000011a0| 07 00 00 00 0c af 7d 00 | 12 ae 7d 00 0c af 7d 00 |......}.|..}...}.|
|000011b0| 00 00 00 00 00 a0 00 00 | 25 24 00 00 40 f0 d2 00 |........|%$..@...|
|000011c0| ac 47 ef ff bc 6e ef ff | 70 1a 00 00 73 75 62 20 |.G...n..|p...sub |
|000011d0| 6e 65 77 20 7b 0d 00 00 | 00 24 00 00 25 30 00 00 |new {...|.$..%0..|
|000011e0| 40 30 ec 01 cc 18 ef ff | dc 3f ef ff 70 1a 00 00 |@0......|.?..p...|
|000011f0| 20 20 20 20 6d 79 20 24 | 74 68 69 73 20 3d 20 73 | my $|this = s|
|00001200| 68 69 66 74 3b 0d 00 00 | 00 30 00 00 25 40 00 00 |hift;...|.0..%@..|
|00001210| 40 c0 4b 03 ec e9 ee ff | fc 10 ef ff 70 1a 00 00 |@.K.....|....p...|
|00001220| 20 20 20 20 6d 79 20 24 | 63 6c 61 73 73 20 3d 20 | my $|class = |
|00001230| 72 65 66 28 24 74 68 69 | 73 29 20 7c 7c 20 24 74 |ref($thi|s) || $t|
|00001240| 68 69 73 3b 0d 00 00 00 | 00 40 00 00 25 2c 00 00 |his;....|.@..%,..|
|00001250| 40 e0 a5 01 0c bb ee ff | 1c e2 ee ff 70 1a 00 00 |@.......|....p...|
|00001260| 20 20 20 20 6d 79 20 24 | 73 65 6c 66 20 3d 20 7b | my $|self = {|
|00001270| 7d 3b 0d 00 00 2c 00 00 | 25 30 00 00 40 10 1b 02 |};...,..|%0..@...|
|00001280| 2c 8c ee ff 3c b3 ee ff | 70 1a 00 00 20 20 20 20 |,...<...|p... |
|00001290| 62 6c 65 73 73 20 24 73 | 65 6c 66 2c 20 24 63 6c |bless $s|elf, $cl|
|000012a0| 61 73 73 0d 00 30 00 00 | 25 34 00 00 40 80 32 02 |ass..0..|%4..@.2.|
|000012b0| 4c 5d ee ff 5c 84 ee ff | 70 1a 00 00 20 20 20 20 |L]..\...|p... |
|000012c0| 24 73 65 6c 66 2d 3e 69 | 6e 69 74 69 61 6c 69 7a |$self->i|nitializ|
|000012d0| 65 28 29 3b 0d 00 00 00 | 00 34 00 00 25 2c 00 00 |e();....|.4..%,..|
|000012e0| 40 70 8e 01 6c 2e ee ff | 7c 55 ee ff 70 1a 00 00 |@p..l...||U..p...|
|000012f0| 20 20 20 20 72 65 74 75 | 72 6e 20 24 73 65 6c 66 | retu|rn $self|
|00001300| 3b 0d 00 00 00 2c 00 00 | a5 44 00 00 40 70 17 00 |;....,..|.D..@p..|
|00001310| 8c ff ed ff 9c 26 ee ff | 70 1a 00 00 7d 0d 08 73 |.....&..|p...}..s|
|00001320| 0c b0 7d 00 12 ae 7d 00 | 00 00 00 00 08 20 61 6e |..}...}.|..... an|
|00001330| 12 00 00 00 00 00 00 00 | 07 6b 61 67 18 b1 7d 00 |........|.kag..}.|
|00001340| 18 b1 7d 00 00 00 00 00 | 00 44 00 00 a5 24 00 00 |..}.....|.D...$..|
|00001350| 40 00 00 00 fc ea ed ff | bc f7 ed ff 00 00 00 00 |@.......|........|
|00001360| 0d 08 20 54 18 b2 7d 00 | 00 00 00 00 00 24 00 00 |.. T..}.|.....$..|
|00001370| 05 80 00 00 00 28 64 07 | 2c 92 ed ff 0c c1 ed ff |.....(d.|,.......|
|00001380| 20 22 00 00 57 69 74 68 | 69 6e 20 74 68 65 20 63 | "..With|in the c|
|00001390| 6c 61 73 73 20 70 61 63 | 6b 61 67 65 2c 20 74 68 |lass pac|kage, th|
|000013a0| 65 20 6d 65 74 68 6f 64 | 73 20 77 69 6c 6c 20 74 |e method|s will t|
|000013b0| 79 70 69 63 61 6c 6c 79 | 20 64 65 61 6c 20 77 69 |ypically| deal wi|
|000013c0| 74 68 20 74 68 65 20 72 | 65 66 65 72 65 6e 63 65 |th the r|eference|
|000013d0| 20 61 73 20 61 6e 20 6f | 72 64 69 6e 61 72 79 20 | as an o|rdinary |
|000013e0| 72 65 66 65 72 65 6e 63 | 65 2e 20 20 00 80 00 00 |referenc|e. ....|
|000013f0| 05 84 00 00 00 60 c2 07 | 05 5a ed ff e5 88 ed ff |.....`..|.Z......|
|00001400| 20 22 00 00 4f 75 74 73 | 69 64 65 20 74 68 65 20 | "..Outs|ide the |
|00001410| 63 6c 61 73 73 20 70 61 | 63 6b 61 67 65 2c 20 74 |class pa|ckage, t|
|00001420| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 69 73 20 |he refer|ence is |
|00001430| 67 65 6e 65 72 61 6c 6c | 79 20 74 72 65 61 74 65 |generall|y treate|
|00001440| 64 20 61 73 20 61 6e 20 | 6f 70 61 71 75 65 20 76 |d as an |opaque v|
|00001450| 61 6c 75 65 20 74 68 61 | 74 20 6d 61 79 20 62 65 |alue tha|t may be|
|00001460| 20 61 63 63 65 73 73 65 | 64 20 6f 6e 6c 79 20 00 | accesse|d only .|
|00001470| 00 84 00 00 25 38 00 00 | 40 a4 0e 02 de 21 ed ff |....%8..|@....!..|
|00001480| be 50 ed ff 20 22 00 00 | 74 68 72 6f 75 67 68 20 |.P.. "..|through |
|00001490| 74 68 65 20 63 6c 61 73 | 73 27 73 20 6d 65 74 68 |the clas|s's meth|
|000014a0| 6f 64 73 2e 0d 00 00 00 | 00 38 00 00 05 88 00 00 |ods.....|.8......|
|000014b0| 00 04 f4 07 07 b3 ec ff | e7 e1 ec ff 20 22 00 00 |........|.... "..|
|000014c0| 41 20 63 6f 6e 73 74 72 | 75 63 74 6f 72 20 6d 61 |A constr|uctor ma|
|000014d0| 79 20 72 65 2d 62 6c 65 | 73 73 20 61 20 72 65 66 |y re-ble|ss a ref|
|000014e0| 65 72 65 6e 63 65 64 20 | 6f 62 6a 65 63 74 20 63 |erenced |object c|
|000014f0| 75 72 72 65 6e 74 6c 79 | 20 62 65 6c 6f 6e 67 69 |urrently| belongi|
|00001500| 6e 67 20 74 6f 20 61 6e | 6f 74 68 65 72 20 63 6c |ng to an|other cl|
|00001510| 61 73 73 2c 20 62 75 74 | 20 74 68 65 6e 20 74 68 |ass, but| then th|
|00001520| 65 20 6e 65 77 20 63 6c | 61 73 73 20 69 73 20 00 |e new cl|ass is .|
|00001530| 00 88 00 00 05 84 00 00 | 00 00 a7 07 e0 7a ec ff |........|.....z..|
|00001540| c0 a9 ec ff 20 22 00 00 | 72 65 73 70 6f 6e 73 69 |.... "..|responsi|
|00001550| 62 6c 65 20 66 6f 72 20 | 61 6c 6c 20 63 6c 65 61 |ble for |all clea|
|00001560| 6e 75 70 20 6c 61 74 65 | 72 2e 20 20 54 68 65 20 |nup late|r. The |
|00001570| 70 72 65 76 69 6f 75 73 | 20 62 6c 65 73 73 69 6e |previous| blessin|
|00001580| 67 20 69 73 20 66 6f 72 | 67 6f 74 74 65 6e 2c 20 |g is for|gotten, |
|00001590| 61 73 20 61 6e 20 6f 62 | 6a 65 63 74 20 6d 61 79 |as an ob|ject may|
|000015a0| 20 62 65 6c 6f 6e 67 20 | 74 6f 20 6f 6e 6c 79 20 | belong |to only |
|000015b0| 6f 6e 65 20 00 84 00 00 | a5 7c 00 00 40 cc 1e 06 |one ....|.|..@...|
|000015c0| b9 42 ec ff 99 71 ec ff | 20 22 00 00 63 6c 61 73 |.B...q..| "..clas|
|000015d0| 73 20 61 74 20 61 20 74 | 69 6d 65 2e 20 20 28 41 |s at a t|ime. (A|
|000015e0| 6c 74 68 6f 75 67 68 20 | 6f 66 20 63 6f 75 72 73 |lthough |of cours|
|000015f0| 65 20 69 74 27 73 20 66 | 72 65 65 20 74 6f 20 69 |e it's f|ree to i|
|00001600| 6e 68 65 72 69 74 20 6d | 65 74 68 6f 64 73 20 66 |nherit m|ethods f|
|00001610| 72 6f 6d 20 6d 61 6e 79 | 20 63 6c 61 73 73 65 73 |rom many| classes|
|00001620| 2e 29 0d 07 14 b3 7d 00 | 14 b3 7d 00 00 00 00 00 |.)....}.|..}.....|
|00001630| 00 7c 00 00 05 88 00 00 | 00 10 d6 07 e2 d3 eb ff |.|......|........|
|00001640| c2 02 ec ff 20 22 00 00 | 41 20 63 6c 61 72 69 66 |.... "..|A clarif|
|00001650| 69 63 61 74 69 6f 6e 3a | 20 20 50 65 72 6c 20 6f |ication:| Perl o|
|00001660| 62 6a 65 63 74 73 20 61 | 72 65 20 62 6c 65 73 73 |bjects a|re bless|
|00001670| 65 64 2e 20 20 52 65 66 | 65 72 65 6e 63 65 73 20 |ed. Ref|erences |
|00001680| 61 72 65 20 6e 6f 74 2e | 20 20 4f 62 6a 65 63 74 |are not.| Object|
|00001690| 73 20 6b 6e 6f 77 20 77 | 68 69 63 68 20 70 61 63 |s know w|hich pac|
|000016a0| 6b 61 67 65 20 74 68 65 | 79 20 62 65 6c 6f 6e 67 |kage the|y belong|
|000016b0| 20 74 6f 2e 20 20 00 00 | 00 88 00 00 05 80 00 00 | to. ..|........|
|000016c0| 00 e8 67 07 bb 9b eb ff | 9b ca eb ff 20 22 00 00 |..g.....|.... "..|
|000016d0| 52 65 66 65 72 65 6e 63 | 65 73 20 64 6f 20 6e 6f |Referenc|es do no|
|000016e0| 74 2e 20 20 54 68 65 20 | 62 6c 65 73 73 28 29 20 |t. The |bless() |
|000016f0| 66 75 6e 63 74 69 6f 6e | 20 75 73 65 73 20 74 68 |function| uses th|
|00001700| 65 20 72 65 66 65 72 65 | 6e 63 65 20 74 6f 20 66 |e refere|nce to f|
|00001710| 69 6e 64 20 74 68 65 20 | 6f 62 6a 65 63 74 2e 20 |ind the |object. |
|00001720| 20 43 6f 6e 73 69 64 65 | 72 20 74 68 65 20 66 6f | Conside|r the fo|
|00001730| 6c 6c 6f 77 69 6e 67 20 | 00 80 00 00 a5 50 00 00 |llowing |.....P..|
|00001740| 40 d8 ab 00 94 63 eb ff | 74 92 eb ff 20 22 00 00 |@....c..|t... "..|
|00001750| 65 78 61 6d 70 6c 65 3a | 0d 08 65 20 14 00 00 00 |example:|..e ....|
|00001760| 00 00 00 00 07 73 65 73 | 12 b4 7d 00 12 b4 7d 00 |.....ses|..}...}.|
|00001770| 00 00 00 00 07 74 72 69 | 0c b5 7d 00 12 b4 7d 00 |.....tri|..}...}.|
|00001780| 0c b5 7d 00 00 00 00 00 | 00 50 00 00 25 24 00 00 |..}.....|.P..%$..|
|00001790| 40 80 bb 00 8d fc ea ff | 9d 23 eb ff 70 1a 00 00 |@.......|.#..p...|
|000017a0| 24 61 20 3d 20 7b 7d 3b | 0d 00 00 00 00 24 00 00 |$a = {};|.....$..|
|000017b0| 25 24 00 00 40 80 bb 00 | ad cd ea ff bd f4 ea ff |%$..@...|........|
|000017c0| 70 1a 00 00 24 62 20 3d | 20 24 61 3b 0d 00 00 00 |p...$b =| $a;....|
|000017d0| 00 24 00 00 25 28 00 00 | 40 90 5f 01 cd 9e ea ff |.$..%(..|@._.....|
|000017e0| dd c5 ea ff 70 1a 00 00 | 62 6c 65 73 73 20 24 61 |....p...|bless $a|
|000017f0| 2c 20 42 4c 41 48 3b 0d | 00 28 00 00 a5 64 00 00 |, BLAH;.|.(...d..|
|00001800| 40 70 05 03 ed 6f ea ff | fd 96 ea ff 70 1a 00 00 |@p...o..|....p...|
|00001810| 70 72 69 6e 74 20 22 5c | 24 62 20 69 73 20 61 20 |print "\|$b is a |
|00001820| 22 2c 20 72 65 66 28 24 | 62 29 2c 20 22 5c 6e 22 |", ref($|b), "\n"|
|00001830| 3b 0d 08 00 0c b6 7d 00 | 12 b4 7d 00 00 00 00 00 |;.....}.|..}.....|
|00001840| 08 69 73 20 12 00 00 00 | 00 00 00 00 07 53 75 62 |.is ....|.....Sub|
|00001850| 18 b7 7d 00 18 b7 7d 00 | 00 00 00 00 00 64 00 00 |..}...}.|.....d..|
|00001860| a5 24 00 00 40 00 00 00 | 5d 5b ea ff 1d 68 ea ff |.$..@...|][...h..|
|00001870| 00 00 00 00 0d 08 72 6c | 18 b8 7d 00 00 00 00 00 |......rl|..}.....|
|00001880| 00 24 00 00 a5 8c 00 00 | 40 20 84 07 8d 02 ea ff |.$......|@ ......|
|00001890| 6d 31 ea ff 20 22 00 00 | 54 68 69 73 20 72 65 70 |m1.. "..|This rep|
|000018a0| 6f 72 74 73 20 24 62 20 | 61 73 20 62 65 69 6e 67 |orts $b |as being|
|000018b0| 20 61 20 42 4c 41 48 2c | 20 73 6f 20 6f 62 76 69 | a BLAH,| so obvi|
|000018c0| 6f 75 73 6c 79 20 62 6c | 65 73 73 28 29 20 6f 70 |ously bl|ess() op|
|000018d0| 65 72 61 74 65 64 20 6f | 6e 20 74 68 65 20 6f 62 |erated o|n the ob|
|000018e0| 6a 65 63 74 20 61 6e 64 | 20 6e 6f 74 20 6f 6e 20 |ject and| not on |
|000018f0| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 2e 0d 07 |the refe|rence...|
|00001900| 0a b9 7d 00 0a b9 7d 00 | 00 00 00 00 00 8c 00 00 |..}...}.|........|
|00001910| a5 40 00 00 40 f2 b4 02 | e6 8b e9 ff 96 c2 e9 ff |.@..@...|........|
|00001920| 18 2b 00 00 41 20 43 6c | 61 73 73 20 69 73 20 53 |.+..A Cl|ass is S|
|00001930| 69 6d 70 6c 79 20 61 20 | 50 61 63 6b 61 67 65 0d |imply a |Package.|
|00001940| 08 20 70 61 0a ba 7d 00 | 00 00 00 00 00 40 00 00 |. pa..}.|.....@..|
|00001950| 05 88 00 00 00 90 ce 07 | b1 36 e9 ff 91 65 e9 ff |........|.6...e..|
|00001960| 20 22 00 00 55 6e 6c 69 | 6b 65 20 73 61 79 20 43 | "..Unli|ke say C|
|00001970| 2b 2b 2c 20 50 65 72 6c | 20 64 6f 65 73 6e 27 74 |++, Perl| doesn't|
|00001980| 20 70 72 6f 76 69 64 65 | 20 61 6e 79 20 73 70 65 | provide| any spe|
|00001990| 63 69 61 6c 20 73 79 6e | 74 61 78 20 66 6f 72 20 |cial syn|tax for |
|000019a0| 63 6c 61 73 73 20 64 65 | 66 69 6e 69 74 69 6f 6e |class de|finition|
|000019b0| 73 2e 20 20 59 6f 75 20 | 75 73 65 20 61 20 70 61 |s. You |use a pa|
|000019c0| 63 6b 61 67 65 20 61 73 | 20 61 20 63 6c 61 73 73 |ckage as| a class|
|000019d0| 20 00 00 00 00 88 00 00 | 25 48 00 00 40 40 38 03 | .......|%H..@@8.|
|000019e0| 8a fe e8 ff 6a 2d e9 ff | 20 22 00 00 62 79 20 70 |....j-..| "..by p|
|000019f0| 75 74 74 69 6e 67 20 6d | 65 74 68 6f 64 20 64 65 |utting m|ethod de|
|00001a00| 66 69 6e 69 74 69 6f 6e | 73 20 69 6e 74 6f 20 74 |finition|s into t|
|00001a10| 68 65 20 63 6c 61 73 73 | 2e 0d 00 00 00 48 00 00 |he class|.....H..|
|00001a20| 05 84 00 00 00 10 eb 07 | b3 8f e8 ff 93 be e8 ff |........|........|
|00001a30| 20 22 00 00 54 68 65 72 | 65 20 69 73 20 61 20 73 | "..Ther|e is a s|
|00001a40| 70 65 63 69 61 6c 20 61 | 72 72 61 79 20 77 69 74 |pecial a|rray wit|
|00001a50| 68 69 6e 20 65 61 63 68 | 20 70 61 63 6b 61 67 65 |hin each| package|
|00001a60| 20 63 61 6c 6c 65 64 20 | 40 49 53 41 20 77 68 69 | called |@ISA whi|
|00001a70| 63 68 20 73 61 79 73 20 | 77 68 65 72 65 20 65 6c |ch says |where el|
|00001a80| 73 65 20 74 6f 20 6c 6f | 6f 6b 20 66 6f 72 20 61 |se to lo|ok for a|
|00001a90| 20 6d 65 74 68 6f 64 20 | 69 66 20 79 6f 75 20 00 | method |if you .|
|00001aa0| 00 84 00 00 05 84 00 00 | 00 6c b0 07 8c 57 e8 ff |........|.l...W..|
|00001ab0| 6c 86 e8 ff 20 22 00 00 | 63 61 6e 27 74 20 66 69 |l... "..|can't fi|
|00001ac0| 6e 64 20 69 74 20 69 6e | 20 74 68 65 20 63 75 72 |nd it in| the cur|
|00001ad0| 72 65 6e 74 20 70 61 63 | 6b 61 67 65 2e 20 20 54 |rent pac|kage. T|
|00001ae0| 68 69 73 20 69 73 20 68 | 6f 77 20 50 65 72 6c 20 |his is h|ow Perl |
|00001af0| 69 6d 70 6c 65 6d 65 6e | 74 73 20 69 6e 68 65 72 |implemen|ts inher|
|00001b00| 69 74 61 6e 63 65 2e 20 | 20 45 61 63 68 20 65 6c |itance. | Each el|
|00001b10| 65 6d 65 6e 74 20 6f 66 | 20 74 68 65 20 40 49 53 |ement of| the @IS|
|00001b20| 41 20 00 00 00 84 00 00 | 05 80 00 00 00 38 7b 07 |A ......|.....8{.|
|00001b30| 65 1f e8 ff 45 4e e8 ff | 20 22 00 00 61 72 72 61 |e...EN..| "..arra|
|00001b40| 79 20 69 73 20 6a 75 73 | 74 20 74 68 65 20 6e 61 |y is jus|t the na|
|00001b50| 6d 65 20 6f 66 20 61 6e | 6f 74 68 65 72 20 70 61 |me of an|other pa|
|00001b60| 63 6b 61 67 65 20 74 68 | 61 74 20 68 61 70 70 65 |ckage th|at happe|
|00001b70| 6e 73 20 74 6f 20 62 65 | 20 61 20 63 6c 61 73 73 |ns to be| a class|
|00001b80| 20 70 61 63 6b 61 67 65 | 2e 20 20 54 68 65 20 63 | package|. The c|
|00001b90| 6c 61 73 73 65 73 20 61 | 72 65 20 73 65 61 72 63 |lasses a|re searc|
|00001ba0| 68 65 64 20 00 80 00 00 | 05 80 00 00 00 40 82 07 |hed ....|.....@..|
|00001bb0| 3e e7 e7 ff 1e 16 e8 ff | 20 22 00 00 28 64 65 70 |>.......| "..(dep|
|00001bc0| 74 68 20 66 69 72 73 74 | 29 20 66 6f 72 20 6d 69 |th first|) for mi|
|00001bd0| 73 73 69 6e 67 20 6d 65 | 74 68 6f 64 73 20 69 6e |ssing me|thods in|
|00001be0| 20 74 68 65 20 6f 72 64 | 65 72 20 74 68 61 74 20 | the ord|er that |
|00001bf0| 74 68 65 79 20 6f 63 63 | 75 72 20 69 6e 20 40 49 |they occ|ur in @I|
|00001c00| 53 41 2e 20 20 54 68 65 | 20 63 6c 61 73 73 65 73 |SA. The| classes|
|00001c10| 20 61 63 63 65 73 73 69 | 62 6c 65 20 74 68 72 6f | accessi|ble thro|
|00001c20| 75 67 68 20 00 80 00 00 | 25 50 00 00 40 d8 de 03 |ugh ....|%P..@...|
|00001c30| 17 af e7 ff f7 dd e7 ff | 20 22 00 00 40 49 53 41 |........| "..@ISA|
|00001c40| 20 61 72 65 20 6b 6e 6f | 77 6e 20 61 73 20 62 61 | are kno|wn as ba|
|00001c50| 73 65 20 63 6c 61 73 73 | 65 73 20 6f 66 20 74 68 |se class|es of th|
|00001c60| 65 20 63 75 72 72 65 6e | 74 20 63 6c 61 73 73 2e |e curren|t class.|
|00001c70| 0d 00 00 00 00 50 00 00 | 05 84 00 00 00 2c 66 07 |.....P..|.....,f.|
|00001c80| 40 40 e7 ff 20 6f e7 ff | 20 22 00 00 49 66 20 61 |@@.. o..| "..If a|
|00001c90| 20 6d 69 73 73 69 6e 67 | 20 6d 65 74 68 6f 64 20 | missing| method |
|00001ca0| 69 73 20 66 6f 75 6e 64 | 20 69 6e 20 6f 6e 65 20 |is found| in one |
|00001cb0| 6f 66 20 74 68 65 20 62 | 61 73 65 20 63 6c 61 73 |of the b|ase clas|
|00001cc0| 73 65 73 2c 20 69 74 20 | 69 73 20 63 61 63 68 65 |ses, it |is cache|
|00001cd0| 64 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |d in the| current|
|00001ce0| 20 63 6c 61 73 73 20 66 | 6f 72 20 65 66 66 69 63 | class f|or effic|
|00001cf0| 69 65 6e 63 79 2e 20 20 | 00 84 00 00 01 10 00 00 |iency. |........|
|00001d00| 40 24 c8 07 00 00 00 00 | 00 10 00 00 02 14 00 00 |@$......|........|
|00001d10| 00 04 00 00 00 00 00 00 | 00 00 00 00 00 14 00 00 |........|........|
|00001d20| 25 8c 00 00 40 24 c8 07 | 1e 45 e5 ff fe 73 e5 ff |%...@$..|.E...s..|
|00001d30| 20 22 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00001d40| 43 68 61 6e 67 69 6e 67 | 20 40 49 53 41 20 6f 72 |Changing| @ISA or|
|00001d50| 20 64 65 66 69 6e 69 6e | 67 20 6e 65 77 20 73 75 | definin|g new su|
|00001d60| 62 72 6f 75 74 69 6e 65 | 73 20 69 6e 76 61 6c 69 |broutine|s invali|
|00001d70| 64 61 74 65 73 20 74 68 | 65 20 63 61 63 68 65 20 |dates th|e cache |
|00001d80| 61 6e 64 20 63 61 75 73 | 65 73 20 50 65 72 6c 20 |and caus|es Perl |
|00001d90| 74 6f 20 64 6f 20 74 68 | 65 20 6c 6f 6f 6b 75 70 |to do th|e lookup|
|00001da0| 20 61 67 61 69 6e 2e 0d | 00 8c 00 00 05 80 00 00 | again..|........|
|00001db0| 00 3c a7 07 47 d6 e4 ff | 27 05 e5 ff 20 22 00 00 |.<..G...|'... "..|
|00001dc0| 49 66 20 61 20 6d 65 74 | 68 6f 64 20 69 73 6e 27 |If a met|hod isn'|
|00001dd0| 74 20 66 6f 75 6e 64 2c | 20 62 75 74 20 61 6e 20 |t found,| but an |
|00001de0| 41 55 54 4f 4c 4f 41 44 | 20 72 6f 75 74 69 6e 65 |AUTOLOAD| routine|
|00001df0| 20 69 73 20 66 6f 75 6e | 64 2c 20 74 68 65 6e 20 | is foun|d, then |
|00001e00| 74 68 61 74 20 69 73 20 | 63 61 6c 6c 65 64 20 6f |that is |called o|
|00001e10| 6e 20 62 65 68 61 6c 66 | 20 6f 66 20 74 68 65 20 |n behalf| of the |
|00001e20| 6d 69 73 73 69 6e 67 20 | 00 80 00 00 25 20 00 00 |missing |....% ..|
|00001e30| 40 58 98 00 20 9e e4 ff | 00 cd e4 ff 20 22 00 00 |@X.. ...|.... "..|
|00001e40| 6d 65 74 68 6f 64 2e 0d | 00 20 00 00 05 80 00 00 |method..|. ......|
|00001e50| 00 1c dc 07 49 2f e4 ff | 29 5e e4 ff 20 22 00 00 |....I/..|)^.. "..|
|00001e60| 49 66 20 6e 65 69 74 68 | 65 72 20 61 20 6d 65 74 |If neith|er a met|
|00001e70| 68 6f 64 20 6e 6f 72 20 | 61 6e 20 41 55 54 4f 4c |hod nor |an AUTOL|
|00001e80| 4f 41 44 20 72 6f 75 74 | 69 6e 65 20 69 73 20 66 |OAD rout|ine is f|
|00001e90| 6f 75 6e 64 20 69 6e 20 | 40 49 53 41 2c 20 74 68 |ound in |@ISA, th|
|00001ea0| 65 6e 20 6f 6e 65 20 6c | 61 73 74 20 74 72 79 20 |en one l|ast try |
|00001eb0| 69 73 20 6d 61 64 65 20 | 66 6f 72 20 74 68 65 20 |is made |for the |
|00001ec0| 6d 65 74 68 6f 64 20 00 | 00 80 00 00 05 74 00 00 |method .|.....t..|
|00001ed0| 00 b0 48 07 22 f7 e3 ff | 02 26 e4 ff 20 22 00 00 |..H."...|.&.. "..|
|00001ee0| 28 6f 72 20 61 6e 20 41 | 55 54 4f 4c 4f 41 44 20 |(or an A|UTOLOAD |
|00001ef0| 72 6f 75 74 69 6e 65 29 | 20 69 6e 20 61 20 63 6c |routine)| in a cl|
|00001f00| 61 73 73 20 63 61 6c 6c | 65 64 20 55 4e 49 56 45 |ass call|ed UNIVE|
|00001f10| 52 53 41 4c 2e 20 20 28 | 53 65 76 65 72 61 6c 20 |RSAL. (|Several |
|00001f20| 63 6f 6d 6d 6f 6e 6c 79 | 20 75 73 65 64 20 6d 65 |commonly| used me|
|00001f30| 74 68 6f 64 73 20 61 72 | 65 20 00 00 00 74 00 00 |thods ar|e ...t..|
|00001f40| 05 7c 00 00 00 2c bd 07 | fb be e3 ff db ed e3 ff |.|...,..|........|
|00001f50| 20 22 00 00 61 75 74 6f | 6d 61 74 69 63 61 6c 6c | "..auto|maticall|
|00001f60| 79 20 73 75 70 70 6c 69 | 65 64 20 69 6e 20 74 68 |y suppli|ed in th|
|00001f70| 65 20 55 4e 49 56 45 52 | 53 41 4c 20 63 6c 61 73 |e UNIVER|SAL clas|
|00001f80| 73 3b 20 73 65 65 20 74 | 68 65 20 73 65 63 74 69 |s; see t|he secti|
|00001f90| 6f 6e 20 6f 6e 20 22 44 | 65 66 61 75 6c 74 20 55 |on on "D|efault U|
|00001fa0| 4e 49 56 45 52 53 41 4c | 20 6d 65 74 68 6f 64 73 |NIVERSAL| methods|
|00001fb0| 22 20 66 6f 72 20 00 00 | 00 7c 00 00 25 64 00 00 |" for ..|.|..%d..|
|00001fc0| 40 ec 3e 05 d4 86 e3 ff | b4 b5 e3 ff 20 22 00 00 |@.>.....|.... "..|
|00001fd0| 6d 6f 72 65 20 64 65 74 | 61 69 6c 73 2e 29 20 20 |more det|ails.) |
|00001fe0| 49 66 20 74 68 61 74 20 | 64 6f 65 73 6e 27 74 20 |If that |doesn't |
|00001ff0| 77 6f 72 6b 2c 20 50 65 | 72 6c 20 66 69 6e 61 6c |work, Pe|rl final|
|00002000| 6c 79 20 67 69 76 65 73 | 20 75 70 20 61 6e 64 20 |ly gives| up and |
|00002010| 63 6f 6d 70 6c 61 69 6e | 73 2e 0d 00 00 64 00 00 |complain|s....d..|
|00002020| 05 8c 00 00 00 50 cc 07 | fd 17 e3 ff dd 46 e3 ff |.....P..|.....F..|
|00002030| 20 22 00 00 50 65 72 6c | 20 63 6c 61 73 73 65 73 | "..Perl| classes|
|00002040| 20 64 6f 20 6f 6e 6c 79 | 20 6d 65 74 68 6f 64 20 | do only| method |
|00002050| 69 6e 68 65 72 69 74 61 | 6e 63 65 2e 20 20 44 61 |inherita|nce. Da|
|00002060| 74 61 20 69 6e 68 65 72 | 69 74 61 6e 63 65 20 69 |ta inher|itance i|
|00002070| 73 20 6c 65 66 74 20 75 | 70 20 74 6f 20 74 68 65 |s left u|p to the|
|00002080| 20 63 6c 61 73 73 20 69 | 74 73 65 6c 66 2e 20 20 | class i|tself. |
|00002090| 42 79 20 61 6e 64 20 6c | 61 72 67 65 2c 20 74 68 |By and l|arge, th|
|000020a0| 69 73 20 69 73 20 00 00 | 00 8c 00 00 05 84 00 00 |is is ..|........|
|000020b0| 00 a8 b9 07 d6 df e2 ff | b6 0e e3 ff 20 22 00 00 |........|.... "..|
|000020c0| 6e 6f 74 20 61 20 70 72 | 6f 62 6c 65 6d 20 69 6e |not a pr|oblem in|
|000020d0| 20 50 65 72 6c 2c 20 62 | 65 63 61 75 73 65 20 6d | Perl, b|ecause m|
|000020e0| 6f 73 74 20 63 6c 61 73 | 73 65 73 20 6d 6f 64 65 |ost clas|ses mode|
|000020f0| 6c 20 74 68 65 20 61 74 | 74 72 69 62 75 74 65 73 |l the at|tributes|
|00002100| 20 6f 66 20 74 68 65 69 | 72 20 6f 62 6a 65 63 74 | of thei|r object|
|00002110| 20 75 73 69 6e 67 20 61 | 6e 20 61 6e 6f 6e 79 6d | using a|n anonym|
|00002120| 6f 75 73 20 68 61 73 68 | 2c 20 00 00 00 84 00 00 |ous hash|, ......|
|00002130| 05 80 00 00 00 10 61 07 | af a7 e2 ff 8f d6 e2 ff |......a.|........|
|00002140| 20 22 00 00 77 68 69 63 | 68 20 73 65 72 76 65 73 | "..whic|h serves|
|00002150| 20 61 73 20 69 74 73 20 | 6f 77 6e 20 6c 69 74 74 | as its |own litt|
|00002160| 6c 65 20 6e 61 6d 65 73 | 70 61 63 65 20 74 6f 20 |le names|pace to |
|00002170| 62 65 20 63 61 72 76 65 | 64 20 75 70 20 62 79 20 |be carve|d up by |
|00002180| 74 68 65 20 76 61 72 69 | 6f 75 73 20 63 6c 61 73 |the vari|ous clas|
|00002190| 73 65 73 20 74 68 61 74 | 20 6d 69 67 68 74 20 77 |ses that| might w|
|000021a0| 61 6e 74 20 74 6f 20 64 | 6f 20 00 00 00 80 00 00 |ant to d|o ......|
|000021b0| a5 40 00 00 40 64 f1 01 | 88 6f e2 ff 68 9e e2 ff |.@..@d..|.o..h...|
|000021c0| 20 22 00 00 73 6f 6d 65 | 74 68 69 6e 67 20 77 69 | "..some|thing wi|
|000021d0| 74 68 20 74 68 65 20 6f | 62 6a 65 63 74 2e 0d 07 |th the o|bject...|
|000021e0| 0a bb 7d 00 0a bb 7d 00 | 00 00 00 00 00 40 00 00 |..}...}.|.....@..|
|000021f0| a5 44 00 00 40 4a 16 03 | e1 f8 e1 ff 91 2f e2 ff |.D..@J..|...../..|
|00002200| 18 2b 00 00 41 20 4d 65 | 74 68 6f 64 20 69 73 20 |.+..A Me|thod is |
|00002210| 53 69 6d 70 6c 79 20 61 | 20 53 75 62 72 6f 75 74 |Simply a| Subrout|
|00002220| 69 6e 65 0d 08 d6 7d 00 | 0a bc 7d 00 00 00 00 00 |ine...}.|..}.....|
|00002230| 00 44 00 00 05 84 00 00 | 00 68 84 07 ac a3 e1 ff |.D......|.h......|
|00002240| 8c d2 e1 ff 20 22 00 00 | 55 6e 6c 69 6b 65 20 73 |.... "..|Unlike s|
|00002250| 61 79 20 43 2b 2b 2c 20 | 50 65 72 6c 20 64 6f 65 |ay C++, |Perl doe|
|00002260| 73 6e 27 74 20 70 72 6f | 76 69 64 65 20 61 6e 79 |sn't pro|vide any|
|00002270| 20 73 70 65 63 69 61 6c | 20 73 79 6e 74 61 78 20 | special| syntax |
|00002280| 66 6f 72 20 6d 65 74 68 | 6f 64 20 64 65 66 69 6e |for meth|od defin|
|00002290| 69 74 69 6f 6e 2e 20 20 | 28 49 74 20 64 6f 65 73 |ition. |(It does|
|000022a0| 20 70 72 6f 76 69 64 65 | 20 61 20 6c 69 74 74 6c | provide| a littl|
|000022b0| 65 20 00 00 00 84 00 00 | 05 84 00 00 00 d8 9e 07 |e ......|........|
|000022c0| 85 6b e1 ff 65 9a e1 ff | 20 22 00 00 73 79 6e 74 |.k..e...| "..synt|
|000022d0| 61 78 20 66 6f 72 20 6d | 65 74 68 6f 64 20 69 6e |ax for m|ethod in|
|000022e0| 76 6f 63 61 74 69 6f 6e | 20 74 68 6f 75 67 68 2e |vocation| though.|
|000022f0| 20 20 4d 6f 72 65 20 6f | 6e 20 74 68 61 74 20 6c | More o|n that l|
|00002300| 61 74 65 72 2e 29 20 20 | 41 20 6d 65 74 68 6f 64 |ater.) |A method|
|00002310| 20 65 78 70 65 63 74 73 | 20 69 74 73 20 66 69 72 | expects| its fir|
|00002320| 73 74 20 61 72 67 75 6d | 65 6e 74 20 74 6f 20 62 |st argum|ent to b|
|00002330| 65 20 74 68 65 20 00 00 | 00 84 00 00 05 84 00 00 |e the ..|........|
|00002340| 00 34 a3 07 5e 33 e1 ff | 3e 62 e1 ff 20 22 00 00 |.4..^3..|>b.. "..|
|00002350| 6f 62 6a 65 63 74 20 6f | 72 20 70 61 63 6b 61 67 |object o|r packag|
|00002360| 65 20 69 74 20 69 73 20 | 62 65 69 6e 67 20 69 6e |e it is |being in|
|00002370| 76 6f 6b 65 64 20 6f 6e | 2e 20 20 54 68 65 72 65 |voked on|. There|
|00002380| 20 61 72 65 20 6a 75 73 | 74 20 74 77 6f 20 74 79 | are jus|t two ty|
|00002390| 70 65 73 20 6f 66 20 6d | 65 74 68 6f 64 73 2c 20 |pes of m|ethods, |
|000023a0| 77 68 69 63 68 20 77 65 | 27 6c 6c 20 63 61 6c 6c |which we|'ll call|
|000023b0| 20 63 6c 61 73 73 20 61 | 6e 64 20 00 00 84 00 00 | class a|nd .....|
|000023c0| 05 84 00 00 00 ec cf 07 | 37 fb e0 ff 17 2a e1 ff |........|7....*..|
|000023d0| 20 22 00 00 69 6e 73 74 | 61 6e 63 65 2e 20 28 53 | "..inst|ance. (S|
|000023e0| 6f 6d 65 74 69 6d 65 73 | 20 79 6f 75 27 6c 6c 20 |ometimes| you'll |
|000023f0| 68 65 61 72 20 74 68 65 | 73 65 20 63 61 6c 6c 65 |hear the|se calle|
|00002400| 64 20 73 74 61 74 69 63 | 20 61 6e 64 20 76 69 72 |d static| and vir|
|00002410| 74 75 61 6c 2c 20 69 6e | 20 68 6f 6e 6f 72 20 6f |tual, in| honor o|
|00002420| 66 20 74 68 65 20 74 77 | 6f 20 43 2b 2b 20 6d 65 |f the tw|o C++ me|
|00002430| 74 68 6f 64 20 74 79 70 | 65 73 20 74 68 65 79 20 |thod typ|es they |
|00002440| 00 84 00 00 a5 40 00 00 | 40 f4 bb 01 10 c3 e0 ff |.....@..|@.......|
|00002450| f0 f1 e0 ff 20 22 00 00 | 6d 6f 73 74 20 63 6c 6f |.... "..|most clo|
|00002460| 73 65 6c 79 20 72 65 73 | 65 6d 62 6c 65 2e 29 0d |sely res|emble.).|
|00002470| 07 65 73 20 14 bd 7d 00 | 14 bd 7d 00 00 00 00 00 |.es ..}.|..}.....|
|00002480| 00 40 00 00 05 88 00 00 | 00 10 ee 07 39 54 e0 ff |.@......|....9T..|
|00002490| 19 83 e0 ff 20 22 00 00 | 41 20 63 6c 61 73 73 20 |.... "..|A class |
|000024a0| 6d 65 74 68 6f 64 20 65 | 78 70 65 63 74 73 20 61 |method e|xpects a|
|000024b0| 20 63 6c 61 73 73 20 6e | 61 6d 65 20 61 73 20 74 | class n|ame as t|
|000024c0| 68 65 20 66 69 72 73 74 | 20 61 72 67 75 6d 65 6e |he first| argumen|
|000024d0| 74 2e 20 20 49 74 20 70 | 72 6f 76 69 64 65 73 20 |t. It p|rovides |
|000024e0| 66 75 6e 63 74 69 6f 6e | 61 6c 69 74 79 20 66 6f |function|ality fo|
|000024f0| 72 20 74 68 65 20 63 6c | 61 73 73 20 61 73 20 61 |r the cl|ass as a|
|00002500| 20 77 68 6f 6c 65 2c 20 | 00 88 00 00 05 88 00 00 | whole, |........|
|00002510| 00 50 c9 07 12 1c e0 ff | f2 4a e0 ff 20 22 00 00 |.P......|.J.. "..|
|00002520| 6e 6f 74 20 66 6f 72 20 | 61 6e 79 20 69 6e 64 69 |not for |any indi|
|00002530| 76 69 64 75 61 6c 20 6f | 62 6a 65 63 74 20 62 65 |vidual o|bject be|
|00002540| 6c 6f 6e 67 69 6e 67 20 | 74 6f 20 74 68 65 20 63 |longing |to the c|
|00002550| 6c 61 73 73 2e 20 20 43 | 6f 6e 73 74 72 75 63 74 |lass. C|onstruct|
|00002560| 6f 72 73 20 61 72 65 20 | 74 79 70 69 63 61 6c 6c |ors are |typicall|
|00002570| 79 20 63 6c 61 73 73 20 | 6d 65 74 68 6f 64 73 2e |y class |methods.|
|00002580| 20 20 4d 61 6e 79 20 63 | 6c 61 73 73 20 00 00 00 | Many c|lass ...|
|00002590| 00 88 00 00 05 84 00 00 | 00 84 bc 07 eb e3 df ff |........|........|
|000025a0| cb 12 e0 ff 20 22 00 00 | 6d 65 74 68 6f 64 73 20 |.... "..|methods |
|000025b0| 73 69 6d 70 6c 79 20 69 | 67 6e 6f 72 65 20 74 68 |simply i|gnore th|
|000025c0| 65 69 72 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |eir firs|t argume|
|000025d0| 6e 74 2c 20 62 65 63 61 | 75 73 65 20 74 68 65 79 |nt, beca|use they|
|000025e0| 20 61 6c 72 65 61 64 79 | 20 6b 6e 6f 77 20 77 68 | already| know wh|
|000025f0| 61 74 20 70 61 63 6b 61 | 67 65 20 74 68 65 79 27 |at packa|ge they'|
|00002600| 72 65 20 69 6e 2c 20 61 | 6e 64 20 64 6f 6e 27 74 |re in, a|nd don't|
|00002610| 20 00 00 00 00 84 00 00 | 05 84 00 00 00 14 ea 07 | .......|........|
|00002620| c4 ab df ff a4 da df ff | 20 22 00 00 63 61 72 65 |........| "..care|
|00002630| 20 77 68 61 74 20 70 61 | 63 6b 61 67 65 20 74 68 | what pa|ckage th|
|00002640| 65 79 20 77 65 72 65 20 | 69 6e 76 6f 6b 65 64 20 |ey were |invoked |
|00002650| 76 69 61 2e 20 20 28 54 | 68 65 73 65 20 61 72 65 |via. (T|hese are|
|00002660| 6e 27 74 20 6e 65 63 65 | 73 73 61 72 69 6c 79 20 |n't nece|ssarily |
|00002670| 74 68 65 20 73 61 6d 65 | 2c 20 62 65 63 61 75 73 |the same|, becaus|
|00002680| 65 20 63 6c 61 73 73 20 | 6d 65 74 68 6f 64 73 20 |e class |methods |
|00002690| 66 6f 6c 6c 6f 77 20 00 | 00 84 00 00 05 88 00 00 |follow .|........|
|000026a0| 00 1c eb 07 9d 73 df ff | 7d a2 df ff 20 22 00 00 |.....s..|}... "..|
|000026b0| 74 68 65 20 69 6e 68 65 | 72 69 74 61 6e 63 65 20 |the inhe|ritance |
|000026c0| 74 72 65 65 20 6a 75 73 | 74 20 6c 69 6b 65 20 6f |tree jus|t like o|
|000026d0| 72 64 69 6e 61 72 79 20 | 69 6e 73 74 61 6e 63 65 |rdinary |instance|
|000026e0| 20 6d 65 74 68 6f 64 73 | 2e 29 20 20 41 6e 6f 74 | methods|.) Anot|
|000026f0| 68 65 72 20 74 79 70 69 | 63 61 6c 20 75 73 65 20 |her typi|cal use |
|00002700| 66 6f 72 20 63 6c 61 73 | 73 20 6d 65 74 68 6f 64 |for clas|s method|
|00002710| 73 20 69 73 20 74 6f 20 | 6c 6f 6f 6b 20 75 70 20 |s is to |look up |
|00002720| 00 88 00 00 a5 58 00 00 | 40 68 63 01 76 3b df ff |.....X..|@hc.v;..|
|00002730| 56 6a df ff 20 22 00 00 | 61 6e 20 6f 62 6a 65 63 |Vj.. "..|an objec|
|00002740| 74 20 62 79 20 6e 61 6d | 65 3a 0d 08 14 00 00 00 |t by nam|e:......|
|00002750| 00 00 00 00 07 63 6f 6d | 12 be 7d 00 12 be 7d 00 |.....com|..}...}.|
|00002760| 00 00 00 00 07 79 69 6e | 0c bf 7d 00 12 be 7d 00 |.....yin|..}...}.|
|00002770| 0c bf 7d 00 00 00 00 00 | 00 58 00 00 25 24 00 00 |..}.....|.X..%$..|
|00002780| 40 60 ea 00 6f d4 de ff | 7f fb de ff 70 1a 00 00 |@`..o...|....p...|
|00002790| 73 75 62 20 66 69 6e 64 | 20 7b 0d 00 00 24 00 00 |sub find| {...$..|
|000027a0| 25 38 00 00 40 40 90 02 | 8f a5 de ff 9f cc de ff |%8..@@..|........|
|000027b0| 70 1a 00 00 20 20 20 20 | 6d 79 20 28 24 63 6c 61 |p... |my ($cla|
|000027c0| 73 73 2c 20 24 6e 61 6d | 65 29 20 3d 20 40 5f 3b |ss, $nam|e) = @_;|
|000027d0| 0d 00 00 00 00 38 00 00 | 25 30 00 00 40 30 ec 01 |.....8..|%0..@0..|
|000027e0| af 76 de ff bf 9d de ff | 70 1a 00 00 20 20 20 20 |.v......|p... |
|000027f0| 24 6f 62 6a 74 61 62 6c | 65 7b 24 6e 61 6d 65 7d |$objtabl|e{$name}|
|00002800| 3b 0d 00 00 00 30 00 00 | a5 44 00 00 40 70 17 00 |;....0..|.D..@p..|
|00002810| cf 47 de ff df 6e de ff | 70 1a 00 00 7d 0d 08 74 |.G...n..|p...}..t|
|00002820| 0c c0 7d 00 12 be 7d 00 | 00 00 00 00 08 27 20 78 |..}...}.|.....' x|
|00002830| 12 00 00 00 00 00 00 00 | 07 20 34 35 18 c1 7d 00 |........|. 45..}.|
|00002840| 18 c1 7d 00 00 00 00 00 | 00 44 00 00 a5 24 00 00 |..}.....|.D...$..|
|00002850| 40 00 00 00 3f 33 de ff | ff 3f de ff 00 00 00 00 |@...?3..|.?......|
|00002860| 0d 08 7d 00 18 c2 7d 00 | 00 00 00 00 00 24 00 00 |..}...}.|.....$..|
|00002870| 05 88 00 00 00 b4 b3 07 | 6f da dd ff 4f 09 de ff |........|o...O...|
|00002880| 20 22 00 00 41 6e 20 69 | 6e 73 74 61 6e 63 65 20 | "..An i|nstance |
|00002890| 6d 65 74 68 6f 64 20 65 | 78 70 65 63 74 73 20 61 |method e|xpects a|
|000028a0| 6e 20 6f 62 6a 65 63 74 | 20 72 65 66 65 72 65 6e |n object| referen|
|000028b0| 63 65 20 61 73 20 69 74 | 73 20 66 69 72 73 74 20 |ce as it|s first |
|000028c0| 61 72 67 75 6d 65 6e 74 | 2e 20 54 79 70 69 63 61 |argument|. Typica|
|000028d0| 6c 6c 79 20 69 74 20 73 | 68 69 66 74 73 20 74 68 |lly it s|hifts th|
|000028e0| 65 20 66 69 72 73 74 20 | 61 72 67 75 6d 65 6e 74 |e first |argument|
|000028f0| 20 00 00 00 00 88 00 00 | a5 88 00 00 40 5c 6b 05 | .......|....@\k.|
|00002900| 48 a2 dd ff 28 d1 dd ff | 20 22 00 00 69 6e 74 6f |H...(...| "..into|
|00002910| 20 61 20 22 73 65 6c 66 | 22 20 6f 72 20 22 74 68 | a "self|" or "th|
|00002920| 69 73 22 20 76 61 72 69 | 61 62 6c 65 2c 20 61 6e |is" vari|able, an|
|00002930| 64 20 74 68 65 6e 20 75 | 73 65 73 20 74 68 61 74 |d then u|ses that|
|00002940| 20 61 73 20 61 6e 20 6f | 72 64 69 6e 61 72 79 20 | as an o|rdinary |
|00002950| 72 65 66 65 72 65 6e 63 | 65 2e 0d 07 12 c3 7d 00 |referenc|e.....}.|
|00002960| 12 c3 7d 00 00 00 00 00 | 07 69 63 69 0c c4 7d 00 |..}.....|.ici..}.|
|00002970| 12 c3 7d 00 0c c4 7d 00 | 00 00 00 00 00 88 00 00 |..}...}.|........|
|00002980| 25 28 00 00 40 b0 30 01 | 41 3b dd ff 51 62 dd ff |%(..@.0.|A;..Qb..|
|00002990| 70 1a 00 00 73 75 62 20 | 64 69 73 70 6c 61 79 20 |p...sub |display |
|000029a0| 7b 0d 00 00 00 28 00 00 | 25 30 00 00 40 30 ec 01 |{....(..|%0..@0..|
|000029b0| 61 0c dd ff 71 33 dd ff | 70 1a 00 00 20 20 20 20 |a...q3..|p... |
|000029c0| 6d 79 20 24 73 65 6c 66 | 20 3d 20 73 68 69 66 74 |my $self| = shift|
|000029d0| 3b 0d 00 00 00 30 00 00 | 25 44 00 00 40 60 d8 03 |;....0..|%D..@`..|
|000029e0| 81 dd dc ff 91 04 dd ff | 70 1a 00 00 20 20 20 20 |........|p... |
|000029f0| 6d 79 20 40 6b 65 79 73 | 20 3d 20 40 5f 20 3f 20 |my @keys| = @_ ? |
|00002a00| 40 5f 20 3a 20 73 6f 72 | 74 20 6b 65 79 73 20 25 |@_ : sor|t keys %|
|00002a10| 24 73 65 6c 66 3b 0d 00 | 00 44 00 00 25 34 00 00 |$self;..|.D..%4..|
|00002a20| 40 60 61 02 a1 ae dc ff | b1 d5 dc ff 70 1a 00 00 |@`a.....|....p...|
|00002a30| 20 20 20 20 66 6f 72 65 | 61 63 68 20 24 6b 65 79 | fore|ach $key|
|00002a40| 20 28 40 6b 65 79 73 29 | 20 7b 0d 00 00 34 00 00 | (@keys)| {...4..|
|00002a50| 25 44 00 00 40 60 d8 03 | c1 7f dc ff d1 a6 dc ff |%D..@`..|........|
|00002a60| 70 1a 00 00 20 20 20 20 | 20 20 20 20 70 72 69 6e |p... | prin|
|00002a70| 74 20 22 5c 74 24 6b 65 | 79 20 3d 3e 20 24 73 65 |t "\t$ke|y => $se|
|00002a80| 6c 66 2d 3e 7b 24 6b 65 | 79 7d 5c 6e 22 3b 0d 00 |lf->{$ke|y}\n";..|
|00002a90| 00 44 00 00 25 20 00 00 | 40 30 75 00 e1 50 dc ff |.D..% ..|@0u..P..|
|00002aa0| f1 77 dc ff 70 1a 00 00 | 20 20 20 20 7d 0d 00 00 |.w..p...| }...|
|00002ab0| 00 20 00 00 a5 44 00 00 | 40 70 17 00 01 22 dc ff |. ...D..|@p..."..|
|00002ac0| 11 49 dc ff 70 1a 00 00 | 7d 0d 08 00 0c c5 7d 00 |.I..p...|}.....}.|
|00002ad0| 12 c3 7d 00 00 00 00 00 | 08 66 6f 72 12 00 00 00 |..}.....|.for....|
|00002ae0| 00 00 00 00 07 20 69 6e | 18 c6 7d 00 18 c6 7d 00 |..... in|..}...}.|
|00002af0| 00 00 00 00 00 44 00 00 | a5 34 00 00 40 00 00 00 |.....D..|.4..@...|
|00002b00| 71 0d dc ff 31 1a dc ff | 00 00 00 00 0d 08 20 6d |q...1...|...... m|
|00002b10| 18 c7 7d 00 00 00 00 00 | 07 6c 2c 20 0a c8 7d 00 |..}.....|.l, ..}.|
|00002b20| 0a c8 7d 00 00 00 00 00 | 00 34 00 00 a5 34 00 00 |..}.....|.4...4..|
|00002b30| 40 da be 01 d1 ac db ff | 81 e3 db ff 18 2b 00 00 |@.......|.....+..|
|00002b40| 4d 65 74 68 6f 64 20 49 | 6e 76 6f 63 61 74 69 6f |Method I|nvocatio|
|00002b50| 6e 0d 08 0d 0a c9 7d 00 | 00 00 00 00 00 34 00 00 |n.....}.|.....4..|
|00002b60| 05 84 00 00 00 dc c1 07 | 9c 57 db ff 7c 86 db ff |........|.W..|...|
|00002b70| 20 22 00 00 54 68 65 72 | 65 20 61 72 65 20 74 77 | "..Ther|e are tw|
|00002b80| 6f 20 77 61 79 73 20 74 | 6f 20 69 6e 76 6f 6b 65 |o ways t|o invoke|
|00002b90| 20 61 20 6d 65 74 68 6f | 64 2c 20 6f 6e 65 20 6f | a metho|d, one o|
|00002ba0| 66 20 77 68 69 63 68 20 | 79 6f 75 27 72 65 20 61 |f which |you're a|
|00002bb0| 6c 72 65 61 64 79 20 66 | 61 6d 69 6c 69 61 72 20 |lready f|amiliar |
|00002bc0| 77 69 74 68 2c 20 61 6e | 64 20 74 68 65 20 6f 74 |with, an|d the ot|
|00002bd0| 68 65 72 20 6f 66 20 77 | 68 69 63 68 20 00 00 00 |her of w|hich ...|
|00002be0| 00 84 00 00 a5 98 00 00 | 40 bc b5 06 75 1f db ff |........|@...u...|
|00002bf0| 55 4e db ff 20 22 00 00 | 77 69 6c 6c 20 6c 6f 6f |UN.. "..|will loo|
|00002c00| 6b 20 66 61 6d 69 6c 69 | 61 72 2e 20 20 50 65 72 |k famili|ar. Per|
|00002c10| 6c 20 34 20 61 6c 72 65 | 61 64 79 20 68 61 64 20 |l 4 alre|ady had |
|00002c20| 61 6e 20 22 69 6e 64 69 | 72 65 63 74 20 6f 62 6a |an "indi|rect obj|
|00002c30| 65 63 74 22 20 73 79 6e | 74 61 78 20 74 68 61 74 |ect" syn|tax that|
|00002c40| 20 79 6f 75 20 75 73 65 | 20 77 68 65 6e 20 79 6f | you use| when yo|
|00002c50| 75 20 73 61 79 0d 07 20 | 12 ca 7d 00 12 ca 7d 00 |u say.. |..}...}.|
|00002c60| 00 00 00 00 07 00 7e 00 | 0c cb 7d 00 12 ca 7d 00 |......~.|..}...}.|
|00002c70| 0c cb 7d 00 00 00 00 00 | 00 98 00 00 a5 5c 00 00 |..}.....|.....\..|
|00002c80| 40 f0 49 02 6e b8 da ff | 7e df da ff 70 1a 00 00 |@.I.n...|~...p...|
|00002c90| 70 72 69 6e 74 20 53 54 | 44 45 52 52 20 22 68 65 |print ST|DERR "he|
|00002ca0| 6c 70 21 21 21 5c 6e 22 | 3b 0d 08 20 0c cc 7d 00 |lp!!!\n"|;.. ..}.|
|00002cb0| 12 ca 7d 00 00 00 00 00 | 08 68 65 20 12 00 00 00 |..}.....|.he ....|
|00002cc0| 00 00 00 00 07 75 64 6f | 18 cd 7d 00 18 cd 7d 00 |.....udo|..}...}.|
|00002cd0| 00 00 00 00 00 5c 00 00 | a5 24 00 00 40 00 00 00 |.....\..|.$..@...|
|00002ce0| de a3 da ff 9e b0 da ff | 00 00 00 00 0d 08 20 79 |........|...... y|
|00002cf0| 18 ce 7d 00 00 00 00 00 | 00 24 00 00 05 84 00 00 |..}.....|.$......|
|00002d00| 00 f8 a5 07 0e 4b da ff | ee 79 da ff 20 22 00 00 |.....K..|.y.. "..|
|00002d10| 54 68 69 73 20 73 61 6d | 65 20 73 79 6e 74 61 78 |This sam|e syntax|
|00002d20| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 74 6f 20 | can be |used to |
|00002d30| 63 61 6c 6c 20 65 69 74 | 68 65 72 20 63 6c 61 73 |call eit|her clas|
|00002d40| 73 20 6f 72 20 69 6e 73 | 74 61 6e 63 65 20 6d 65 |s or ins|tance me|
|00002d50| 74 68 6f 64 73 2e 20 57 | 65 27 6c 6c 20 75 73 65 |thods. W|e'll use|
|00002d60| 20 74 68 65 20 74 77 6f | 20 6d 65 74 68 6f 64 73 | the two| methods|
|00002d70| 20 64 65 66 69 6e 65 64 | 20 00 00 00 00 84 00 00 | defined| .......|
|00002d80| a5 a4 00 00 40 58 9a 07 | e7 12 da ff c7 41 da ff |....@X..|.....A..|
|00002d90| 20 22 00 00 61 62 6f 76 | 65 2c 20 74 68 65 20 63 | "..abov|e, the c|
|00002da0| 6c 61 73 73 20 6d 65 74 | 68 6f 64 20 74 6f 20 6c |lass met|hod to l|
|00002db0| 6f 6f 6b 75 70 20 61 6e | 20 6f 62 6a 65 63 74 20 |ookup an| object |
|00002dc0| 72 65 66 65 72 65 6e 63 | 65 20 61 6e 64 20 74 68 |referenc|e and th|
|00002dd0| 65 20 69 6e 73 74 61 6e | 63 65 20 6d 65 74 68 6f |e instan|ce metho|
|00002de0| 64 20 74 6f 20 70 72 69 | 6e 74 20 6f 75 74 20 69 |d to pri|nt out i|
|00002df0| 74 73 20 61 74 74 72 69 | 62 75 74 65 73 2e 0d 07 |ts attri|butes...|
|00002e00| 12 cf 7d 00 12 cf 7d 00 | 00 00 00 00 07 07 05 05 |..}...}.|........|
|00002e10| 0c d0 7d 00 12 cf 7d 00 | 0c d0 7d 00 00 00 00 00 |..}...}.|..}.....|
|00002e20| 00 a4 00 00 01 10 00 00 | 41 40 90 02 00 00 00 00 |........|A@......|
|00002e30| 00 10 00 00 02 1c 00 00 | 9c 05 00 00 00 00 00 00 |........|........|
|00002e40| 12 cf 7d 00 0c d0 7d 00 | 00 00 00 00 00 1c 00 00 |..}...}.|........|
|00002e50| 25 44 00 00 40 40 90 02 | 3d 4d d8 ff 4d 74 d8 ff |%D..@@..|=M..Mt..|
|00002e60| 70 1a 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 |p.......|........|
|00002e70| 24 66 72 65 64 20 3d 20 | 66 69 6e 64 20 43 72 69 |$fred = |find Cri|
|00002e80| 74 74 65 72 20 22 46 72 | 65 64 22 3b 0d 00 00 00 |tter "Fr|ed";....|
|00002e90| 00 44 00 00 a5 64 00 00 | 40 70 05 03 5d 1e d8 ff |.D...d..|@p..]...|
|00002ea0| 6d 45 d8 ff 70 1a 00 00 | 64 69 73 70 6c 61 79 20 |mE..p...|display |
|00002eb0| 24 66 72 65 64 20 27 48 | 65 69 67 68 74 27 2c 20 |$fred 'H|eight', |
|00002ec0| 27 57 65 69 67 68 74 27 | 3b 0d 08 73 0c d1 7d 00 |'Weight'|;..s..}.|
|00002ed0| 12 cf 7d 00 00 00 00 00 | 08 20 70 61 12 00 00 00 |..}.....|. pa....|
|00002ee0| 00 00 00 00 07 74 20 68 | 18 d2 7d 00 18 d2 7d 00 |.....t h|..}...}.|
|00002ef0| 00 00 00 00 00 64 00 00 | a5 34 00 00 40 00 00 00 |.....d..|.4..@...|
|00002f00| cd 09 d8 ff 8d 16 d8 ff | 00 00 00 00 0d 08 20 6f |........|...... o|
|00002f10| 18 d3 7d 00 00 00 00 00 | 07 65 72 65 14 d4 7d 00 |..}.....|.ere..}.|
|00002f20| 14 d4 7d 00 00 00 00 00 | 00 34 00 00 a5 a0 00 00 |..}.....|.4......|
|00002f30| 40 b4 a5 06 fd b0 d7 ff | dd df d7 ff 20 22 00 00 |@.......|.... "..|
|00002f40| 54 68 65 73 65 20 63 6f | 75 6c 64 20 62 65 20 63 |These co|uld be c|
|00002f50| 6f 6d 62 69 6e 65 64 20 | 69 6e 74 6f 20 6f 6e 65 |ombined |into one|
|00002f60| 20 73 74 61 74 65 6d 65 | 6e 74 20 62 79 20 75 73 | stateme|nt by us|
|00002f70| 69 6e 67 20 61 20 42 4c | 4f 43 4b 20 69 6e 20 74 |ing a BL|OCK in t|
|00002f80| 68 65 20 69 6e 64 69 72 | 65 63 74 20 6f 62 6a 65 |he indir|ect obje|
|00002f90| 63 74 20 73 6c 6f 74 3a | 0d 08 61 72 14 00 00 00 |ct slot:|..ar....|
|00002fa0| 00 00 00 00 07 05 05 05 | 12 d5 7d 00 12 d5 7d 00 |........|..}...}.|
|00002fb0| 00 00 00 00 07 20 63 6f | 0c d6 7d 00 12 d5 7d 00 |..... co|..}...}.|
|00002fc0| 0c d6 7d 00 00 00 00 00 | 00 a0 00 00 a5 74 00 00 |..}.....|.....t..|
|00002fd0| 40 70 7c 04 f6 49 d7 ff | 06 71 d7 ff 70 1a 00 00 |@p|..I..|.q..p...|
|00002fe0| 64 69 73 70 6c 61 79 20 | 7b 66 69 6e 64 20 43 72 |display |{find Cr|
|00002ff0| 69 74 74 65 72 20 22 46 | 72 65 64 22 7d 20 27 48 |itter "F|red"} 'H|
|00003000| 65 69 67 68 74 27 2c 20 | 27 57 65 69 67 68 74 27 |eight', |'Weight'|
|00003010| 3b 0d 08 00 0c d7 7d 00 | 12 d5 7d 00 00 00 00 00 |;.....}.|..}.....|
|00003020| 08 8e 7d 00 12 00 00 00 | 00 00 00 00 07 65 20 73 |..}.....|.....e s|
|00003030| 18 d8 7d 00 18 d8 7d 00 | 00 00 00 00 00 74 00 00 |..}...}.|.....t..|
|00003040| a5 24 00 00 40 00 00 00 | 66 35 d7 ff 26 42 d7 ff |.$..@...|f5..&B..|
|00003050| 00 00 00 00 0d 08 61 6c | 18 d9 7d 00 00 00 00 00 |......al|..}.....|
|00003060| 00 24 00 00 05 88 00 00 | 00 5c cf 07 96 dc d6 ff |.$......|.\......|
|00003070| 76 0b d7 ff 20 22 00 00 | 46 6f 72 20 43 2b 2b 20 |v... "..|For C++ |
|00003080| 66 61 6e 73 2c 20 74 68 | 65 72 65 27 73 20 61 6c |fans, th|ere's al|
|00003090| 73 6f 20 61 20 73 79 6e | 74 61 78 20 75 73 69 6e |so a syn|tax usin|
|000030a0| 67 20 2d 3e 20 6e 6f 74 | 61 74 69 6f 6e 20 74 68 |g -> not|ation th|
|000030b0| 61 74 20 64 6f 65 73 20 | 65 78 61 63 74 6c 79 20 |at does |exactly |
|000030c0| 74 68 65 20 73 61 6d 65 | 20 74 68 69 6e 67 2e 20 |the same| thing. |
|000030d0| 20 54 68 65 20 70 61 72 | 65 6e 74 68 65 73 65 73 | The par|entheses|
|000030e0| 20 61 72 65 20 00 00 00 | 00 88 00 00 a5 60 00 00 | are ...|.....`..|
|000030f0| 40 34 9c 02 6f a4 d6 ff | 4f d3 d6 ff 20 22 00 00 |@4..o...|O... "..|
|00003100| 72 65 71 75 69 72 65 64 | 20 69 66 20 74 68 65 72 |required| if ther|
|00003110| 65 20 61 72 65 20 61 6e | 79 20 61 72 67 75 6d 65 |e are an|y argume|
|00003120| 6e 74 73 2e 0d 07 75 63 | 12 da 7d 00 12 da 7d 00 |nts...uc|..}...}.|
|00003130| 00 00 00 00 07 00 00 00 | 0c db 7d 00 12 da 7d 00 |........|..}...}.|
|00003140| 0c db 7d 00 00 00 00 00 | 00 60 00 00 25 38 00 00 |..}.....|.`..%8..|
|00003150| 40 20 bf 02 68 3d d6 ff | 78 64 d6 ff 70 1a 00 00 |@ ..h=..|xd..p...|
|00003160| 24 66 72 65 64 20 3d 20 | 43 72 69 74 74 65 72 2d |$fred = |Critter-|
|00003170| 3e 66 69 6e 64 28 22 46 | 72 65 64 22 29 3b 0d 00 |>find("F|red");..|
|00003180| 00 38 00 00 a5 68 00 00 | 40 50 34 03 88 0e d6 ff |.8...h..|@P4.....|
|00003190| 98 35 d6 ff 70 1a 00 00 | 24 66 72 65 64 2d 3e 64 |.5..p...|$fred->d|
|000031a0| 69 73 70 6c 61 79 28 27 | 48 65 69 67 68 74 27 2c |isplay('|Height',|
|000031b0| 20 27 57 65 69 67 68 74 | 27 29 3b 0d 08 94 7d 00 | 'Weight|');...}.|
|000031c0| 0c dc 7d 00 12 da 7d 00 | 00 00 00 00 08 05 05 05 |..}...}.|........|
|000031d0| 12 00 00 00 00 00 00 00 | 07 95 7d 00 18 dd 7d 00 |........|..}...}.|
|000031e0| 18 dd 7d 00 00 00 00 00 | 00 68 00 00 a5 24 00 00 |..}.....|.h...$..|
|000031f0| 40 00 00 00 f8 f9 d5 ff | b8 06 d6 ff 00 00 00 00 |@.......|........|
|00003200| 0d 08 72 65 18 de 7d 00 | 00 00 00 00 00 24 00 00 |..re..}.|.....$..|
|00003210| a5 50 00 00 40 c0 71 01 | 28 a1 d5 ff 08 d0 d5 ff |.P..@.q.|(.......|
|00003220| 20 22 00 00 6f 72 20 69 | 6e 20 6f 6e 65 20 73 74 | "..or i|n one st|
|00003230| 61 74 65 6d 65 6e 74 2c | 0d 07 2e 20 12 df 7d 00 |atement,|... ..}.|
|00003240| 12 df 7d 00 00 00 00 00 | 07 74 61 6b 0c e0 7d 00 |..}.....|.tak..}.|
|00003250| 12 df 7d 00 0c e0 7d 00 | 00 00 00 00 00 50 00 00 |..}...}.|.....P..|
|00003260| a5 78 00 00 40 50 ab 04 | 21 3a d5 ff 31 61 d5 ff |.x..@P..|!:..1a..|
|00003270| 70 1a 00 00 43 72 69 74 | 74 65 72 2d 3e 66 69 6e |p...Crit|ter->fin|
|00003280| 64 28 22 46 72 65 64 22 | 29 2d 3e 64 69 73 70 6c |d("Fred"|)->displ|
|00003290| 61 79 28 27 48 65 69 67 | 68 74 27 2c 20 27 57 65 |ay('Heig|ht', 'We|
|000032a0| 69 67 68 74 27 29 3b 0d | 08 20 72 65 0c e1 7d 00 |ight');.|. re..}.|
|000032b0| 12 df 7d 00 00 00 00 00 | 08 20 69 73 12 00 00 00 |..}.....|. is....|
|000032c0| 00 00 00 00 07 65 6e 69 | 18 e2 7d 00 18 e2 7d 00 |.....eni|..}...}.|
|000032d0| 00 00 00 00 00 78 00 00 | a5 24 00 00 40 00 00 00 |.....x..|.$..@...|
|000032e0| 91 25 d5 ff 51 32 d5 ff | 00 00 00 00 0d 08 73 65 |.%..Q2..|......se|
|000032f0| 18 e3 7d 00 00 00 00 00 | 00 24 00 00 05 84 00 00 |..}.....|.$......|
|00003300| 00 64 cd 07 c1 cc d4 ff | a1 fb d4 ff 20 22 00 00 |.d......|.... "..|
|00003310| 54 68 65 72 65 20 61 72 | 65 20 74 69 6d 65 73 20 |There ar|e times |
|00003320| 77 68 65 6e 20 6f 6e 65 | 20 73 79 6e 74 61 78 20 |when one| syntax |
|00003330| 69 73 20 6d 6f 72 65 20 | 72 65 61 64 61 62 6c 65 |is more |readable|
|00003340| 2c 20 61 6e 64 20 74 69 | 6d 65 73 20 77 68 65 6e |, and ti|mes when|
|00003350| 20 74 68 65 20 6f 74 68 | 65 72 20 73 79 6e 74 61 | the oth|er synta|
|00003360| 78 20 69 73 20 6d 6f 72 | 65 20 72 65 61 64 61 62 |x is mor|e readab|
|00003370| 6c 65 2e 20 20 54 68 65 | 20 00 00 00 00 84 00 00 |le. The| .......|
|00003380| 05 88 00 00 00 44 84 07 | 9a 94 d4 ff 7a c3 d4 ff |.....D..|....z...|
|00003390| 20 22 00 00 69 6e 64 69 | 72 65 63 74 20 6f 62 6a | "..indi|rect obj|
|000033a0| 65 63 74 20 73 79 6e 74 | 61 78 20 69 73 20 6c 65 |ect synt|ax is le|
|000033b0| 73 73 20 63 6c 75 74 74 | 65 72 65 64 2c 20 62 75 |ss clutt|ered, bu|
|000033c0| 74 20 69 74 20 68 61 73 | 20 74 68 65 20 73 61 6d |t it has| the sam|
|000033d0| 65 20 61 6d 62 69 67 75 | 69 74 79 20 61 73 20 6f |e ambigu|ity as o|
|000033e0| 72 64 69 6e 61 72 79 20 | 6c 69 73 74 20 6f 70 65 |rdinary |list ope|
|000033f0| 72 61 74 6f 72 73 2e 20 | 49 6e 64 69 72 65 63 74 |rators. |Indirect|
|00003400| 20 00 00 00 00 88 00 00 | 05 84 00 00 00 2c 5a 07 | .......|.....,Z.|
|00003410| 73 5c d4 ff 53 8b d4 ff | 20 22 00 00 6f 62 6a 65 |s\..S...| "..obje|
|00003420| 63 74 20 6d 65 74 68 6f | 64 20 63 61 6c 6c 73 20 |ct metho|d calls |
|00003430| 61 72 65 20 70 61 72 73 | 65 64 20 75 73 69 6e 67 |are pars|ed using|
|00003440| 20 74 68 65 20 73 61 6d | 65 20 72 75 6c 65 20 61 | the sam|e rule a|
|00003450| 73 20 6c 69 73 74 20 6f | 70 65 72 61 74 6f 72 73 |s list o|perators|
|00003460| 3a 20 22 49 66 20 69 74 | 20 6c 6f 6f 6b 73 20 6c |: "If it| looks l|
|00003470| 69 6b 65 20 61 20 66 75 | 6e 63 74 69 6f 6e 2c 20 |ike a fu|nction, |
|00003480| 69 74 20 69 73 20 61 20 | 00 84 00 00 05 80 00 00 |it is a |........|
|00003490| 00 88 a0 07 4c 24 d4 ff | 2c 53 d4 ff 20 22 00 00 |....L$..|,S.. "..|
|000034a0| 66 75 6e 63 74 69 6f 6e | 22 2e 20 20 28 50 72 65 |function|". (Pre|
|000034b0| 73 75 6d 69 6e 67 20 66 | 6f 72 20 74 68 65 20 6d |suming f|or the m|
|000034c0| 6f 6d 65 6e 74 20 74 68 | 61 74 20 79 6f 75 20 74 |oment th|at you t|
|000034d0| 68 69 6e 6b 20 74 77 6f | 20 77 6f 72 64 73 20 69 |hink two| words i|
|000034e0| 6e 20 61 20 72 6f 77 20 | 63 61 6e 20 6c 6f 6f 6b |n a row |can look|
|000034f0| 20 6c 69 6b 65 20 61 20 | 66 75 6e 63 74 69 6f 6e | like a |function|
|00003500| 20 6e 61 6d 65 2e 20 20 | 00 80 00 00 05 80 00 00 | name. |........|
|00003510| 00 08 b7 07 25 ec d3 ff | 05 1b d4 ff 20 22 00 00 |....%...|.... "..|
|00003520| 43 2b 2b 20 70 72 6f 67 | 72 61 6d 6d 65 72 73 20 |C++ prog|rammers |
|00003530| 73 65 65 6d 20 74 6f 20 | 74 68 69 6e 6b 20 73 6f |seem to |think so|
|00003540| 20 77 69 74 68 20 73 6f | 6d 65 20 72 65 67 75 6c | with so|me regul|
|00003550| 61 72 69 74 79 2c 20 65 | 73 70 65 63 69 61 6c 6c |arity, e|speciall|
|00003560| 79 20 77 68 65 6e 20 74 | 68 65 20 66 69 72 73 74 |y when t|he first|
|00003570| 20 77 6f 72 64 20 69 73 | 20 22 6e 65 77 22 2e 29 | word is| "new".)|
|00003580| 20 20 54 68 75 73 2c 20 | 00 80 00 00 a5 4c 00 00 | Thus, |.....L..|
|00003590| 40 70 52 01 fe b3 d3 ff | de e2 d3 ff 20 22 00 00 |@pR.....|.... "..|
|000035a0| 74 68 65 20 70 61 72 65 | 6e 74 68 65 73 65 73 20 |the pare|ntheses |
|000035b0| 6f 66 0d 07 12 e4 7d 00 | 12 e4 7d 00 00 00 00 00 |of....}.|..}.....|
|000035c0| 07 6f 75 20 0c e5 7d 00 | 12 e4 7d 00 0c e5 7d 00 |.ou ..}.|..}...}.|
|000035d0| 00 00 00 00 00 4c 00 00 | a5 64 00 00 40 90 d6 02 |.....L..|.d..@...|
|000035e0| f7 4c d3 ff 07 74 d3 ff | 70 1a 00 00 6e 65 77 20 |.L...t..|p...new |
|000035f0| 43 72 69 74 74 65 72 20 | 28 27 42 61 72 6e 65 79 |Critter |('Barney|
|00003600| 27 2c 20 31 2e 35 2c 20 | 37 30 29 0d 08 a0 00 00 |', 1.5, |70).....|
|00003610| 0c e6 7d 00 12 e4 7d 00 | 00 00 00 00 08 e0 b7 f3 |..}...}.|........|
|00003620| 12 00 00 00 00 00 00 00 | 07 69 74 65 18 e7 7d 00 |........|.ite..}.|
|00003630| 18 e7 7d 00 00 00 00 00 | 00 64 00 00 a5 24 00 00 |..}.....|.d...$..|
|00003640| 40 00 00 00 67 38 d3 ff | 27 45 d3 ff 00 00 00 00 |@...g8..|'E......|
|00003650| 0d 08 7d 00 18 e8 7d 00 | 00 00 00 00 00 24 00 00 |..}...}.|.....$..|
|00003660| a5 a0 00 00 40 18 95 07 | 97 df d2 ff 77 0e d3 ff |....@...|....w...|
|00003670| 20 22 00 00 61 72 65 20 | 61 73 73 75 6d 65 64 20 | "..are |assumed |
|00003680| 74 6f 20 73 75 72 72 6f | 75 6e 64 20 41 4c 4c 20 |to surro|und ALL |
|00003690| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 6f 66 |the argu|ments of|
|000036a0| 20 74 68 65 20 6d 65 74 | 68 6f 64 20 63 61 6c 6c | the met|hod call|
|000036b0| 2c 20 72 65 67 61 72 64 | 6c 65 73 73 20 6f 66 20 |, regard|less of |
|000036c0| 77 68 61 74 20 63 6f 6d | 65 73 20 61 66 74 65 72 |what com|es after|
|000036d0| 2e 20 20 53 61 79 69 6e | 67 0d 07 0d 12 e9 7d 00 |. Sayin|g.....}.|
|000036e0| 12 e9 7d 00 00 00 00 00 | 07 69 74 69 0c ea 7d 00 |..}.....|.iti..}.|
|000036f0| 12 e9 7d 00 0c ea 7d 00 | 00 00 00 00 00 a0 00 00 |..}...}.|........|
|00003700| a5 64 00 00 40 00 ee 02 | 90 78 d2 ff a0 9f d2 ff |.d..@...|.x......|
|00003710| 70 1a 00 00 6e 65 77 20 | 43 72 69 74 74 65 72 20 |p...new |Critter |
|00003720| 28 27 42 61 6d 27 20 78 | 20 32 29 2c 20 31 2e 34 |('Bam' x| 2), 1.4|
|00003730| 2c 20 34 35 0d 08 05 05 | 0c eb 7d 00 12 e9 7d 00 |, 45....|..}...}.|
|00003740| 00 00 00 00 08 a9 7d 00 | 12 00 00 00 00 00 00 00 |......}.|........|
|00003750| 07 72 20 69 18 ec 7d 00 | 18 ec 7d 00 00 00 00 00 |.r i..}.|..}.....|
|00003760| 00 64 00 00 a5 24 00 00 | 40 00 00 00 00 64 d2 ff |.d...$..|@....d..|
|00003770| c0 70 d2 ff 00 00 00 00 | 0d 08 05 05 18 ed 7d 00 |.p......|......}.|
|00003780| 00 00 00 00 00 24 00 00 | a5 50 00 00 40 58 ac 01 |.....$..|.P..@X..|
|00003790| 30 0b d2 ff 10 3a d2 ff | 20 22 00 00 77 6f 75 6c |0....:..| "..woul|
|000037a0| 64 20 62 65 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |d be equ|ivalent |
|000037b0| 74 6f 0d 07 12 ee 7d 00 | 12 ee 7d 00 00 00 00 00 |to....}.|..}.....|
|000037c0| 07 00 00 00 0c ef 7d 00 | 12 ee 7d 00 0c ef 7d 00 |......}.|..}...}.|
|000037d0| 00 00 00 00 00 50 00 00 | a5 64 00 00 40 00 ee 02 |.....P..|.d..@...|
|000037e0| 29 a4 d1 ff 39 cb d1 ff | 70 1a 00 00 43 72 69 74 |)...9...|p...Crit|
|000037f0| 74 65 72 2d 3e 6e 65 77 | 28 27 42 61 6d 27 20 78 |ter->new|('Bam' x|
|00003800| 20 32 29 2c 20 31 2e 34 | 2c 20 34 35 0d 08 6d 65 | 2), 1.4|, 45..me|
|00003810| 0c f0 7d 00 12 ee 7d 00 | 00 00 00 00 08 6c 20 62 |..}...}.|.....l b|
|00003820| 12 00 00 00 00 00 00 00 | 07 65 76 65 18 f1 7d 00 |........|.eve..}.|
|00003830| 18 f1 7d 00 00 00 00 00 | 00 64 00 00 a5 24 00 00 |..}.....|.d...$..|
|00003840| 40 00 00 00 99 8f d1 ff | 59 9c d1 ff 00 00 00 00 |@.......|Y.......|
|00003850| 0d 08 05 05 18 f2 7d 00 | 00 00 00 00 00 24 00 00 |......}.|.....$..|
|00003860| a5 4c 00 00 40 24 d9 02 | c9 36 d1 ff a9 65 d1 ff |.L..@$..|.6...e..|
|00003870| 20 22 00 00 77 68 69 63 | 68 20 69 73 20 75 6e 6c | "..whic|h is unl|
|00003880| 69 6b 65 6c 79 20 74 6f | 20 64 6f 20 77 68 61 74 |ikely to| do what|
|00003890| 20 79 6f 75 20 77 61 6e | 74 2e 0d 07 14 f3 7d 00 | you wan|t.....}.|
|000038a0| 14 f3 7d 00 00 00 00 00 | 00 4c 00 00 05 80 00 00 |..}.....|.L......|
|000038b0| 00 d4 66 07 f2 c7 d0 ff | d2 f6 d0 ff 20 22 00 00 |..f.....|.... "..|
|000038c0| 54 68 65 72 65 20 61 72 | 65 20 74 69 6d 65 73 20 |There ar|e times |
|000038d0| 77 68 65 6e 20 79 6f 75 | 20 77 69 73 68 20 74 6f |when you| wish to|
|000038e0| 20 73 70 65 63 69 66 79 | 20 77 68 69 63 68 20 63 | specify| which c|
|000038f0| 6c 61 73 73 27 73 20 6d | 65 74 68 6f 64 20 74 6f |lass's m|ethod to|
|00003900| 20 75 73 65 2e 20 49 6e | 20 74 68 69 73 20 63 61 | use. In| this ca|
|00003910| 73 65 2c 20 79 6f 75 20 | 63 61 6e 20 63 61 6c 6c |se, you |can call|
|00003920| 20 79 6f 75 72 20 00 00 | 00 80 00 00 a5 a8 00 00 | your ..|........|
|00003930| 40 1c f8 06 cb 8f d0 ff | ab be d0 ff 20 22 00 00 |@.......|.... "..|
|00003940| 6d 65 74 68 6f 64 20 61 | 73 20 61 6e 20 6f 72 64 |method a|s an ord|
|00003950| 69 6e 61 72 79 20 73 75 | 62 72 6f 75 74 69 6e 65 |inary su|broutine|
|00003960| 20 63 61 6c 6c 2c 20 62 | 65 69 6e 67 20 73 75 72 | call, b|eing sur|
|00003970| 65 20 74 6f 20 70 61 73 | 73 20 74 68 65 20 72 65 |e to pas|s the re|
|00003980| 71 75 69 73 69 74 65 20 | 66 69 72 73 74 20 61 72 |quisite |first ar|
|00003990| 67 75 6d 65 6e 74 20 65 | 78 70 6c 69 63 69 74 6c |gument e|xplicitl|
|000039a0| 79 3a 0d 08 14 00 00 00 | 00 00 00 00 07 72 79 20 |y:......|.....ry |
|000039b0| 12 f4 7d 00 12 f4 7d 00 | 00 00 00 00 07 75 74 73 |..}...}.|.....uts|
|000039c0| 0c f5 7d 00 12 f4 7d 00 | 0c f5 7d 00 00 00 00 00 |..}...}.|..}.....|
|000039d0| 00 a8 00 00 25 48 00 00 | 40 40 07 04 c4 28 d0 ff |....%H..|@@...(..|
|000039e0| d4 4f d0 ff 70 1a 00 00 | 24 66 72 65 64 20 3d 20 |.O..p...|$fred = |
|000039f0| 20 4d 79 43 72 69 74 74 | 65 72 3a 3a 66 69 6e 64 | MyCritt|er::find|
|00003a00| 28 22 43 72 69 74 74 65 | 72 22 2c 20 22 46 72 65 |("Critte|r", "Fre|
|00003a10| 64 22 29 3b 0d 00 00 00 | 00 48 00 00 a5 70 00 00 |d");....|.H...p..|
|00003a20| 40 20 36 04 e4 f9 cf ff | f4 20 d0 ff 70 1a 00 00 |@ 6.....|. ..p...|
|00003a30| 4d 79 43 72 69 74 74 65 | 72 3a 3a 64 69 73 70 6c |MyCritte|r::displ|
|00003a40| 61 79 28 24 66 72 65 64 | 2c 20 27 48 65 69 67 68 |ay($fred|, 'Heigh|
|00003a50| 74 27 2c 20 27 57 65 69 | 67 68 74 27 29 3b 0d 08 |t', 'Wei|ght');..|
|00003a60| 0c f6 7d 00 12 f4 7d 00 | 00 00 00 00 08 62 6a 65 |..}...}.|.....bje|
|00003a70| 12 00 00 00 00 00 00 00 | 07 74 6c 79 18 f7 7d 00 |........|.tly..}.|
|00003a80| 18 f7 7d 00 00 00 00 00 | 00 70 00 00 a5 34 00 00 |..}.....|.p...4..|
|00003a90| 40 00 00 00 54 e5 cf ff | 14 f2 cf ff 00 00 00 00 |@...T...|........|
|00003aa0| 0d 08 74 68 18 f8 7d 00 | 00 00 00 00 07 73 73 20 |..th..}.|.....ss |
|00003ab0| 14 f9 7d 00 14 f9 7d 00 | 00 00 00 00 00 34 00 00 |..}...}.|.....4..|
|00003ac0| 85 a8 00 00 00 c0 cb 07 | 84 8c cf ff 64 bb cf ff |........|....d...|
|00003ad0| 20 22 00 00 4e 6f 74 65 | 20 68 6f 77 65 76 65 72 | "..Note| however|
|00003ae0| 2c 20 74 68 61 74 20 74 | 68 69 73 20 64 6f 65 73 |, that t|his does|
|00003af0| 20 6e 6f 74 20 64 6f 20 | 61 6e 79 20 69 6e 68 65 | not do |any inhe|
|00003b00| 72 69 74 61 6e 63 65 2e | 20 20 49 66 20 79 6f 75 |ritance.| If you|
|00003b10| 20 77 69 73 68 20 6d 65 | 72 65 6c 79 20 74 6f 20 | wish me|rely to |
|00003b20| 73 70 65 63 69 66 79 20 | 74 68 61 74 20 50 65 72 |specify |that Per|
|00003b30| 6c 20 73 68 6f 75 6c 64 | 20 07 20 6f 11 fa 7d 00 |l should| . o..}.|
|00003b40| 14 f9 7d 00 11 fa 7d 00 | 00 00 00 00 53 54 41 52 |..}...}.|....STAR|
|00003b50| 54 08 69 6e 11 00 00 00 | 14 f9 7d 00 00 00 00 00 |T.in....|..}.....|
|00003b60| 20 00 00 00 00 a8 00 00 | 05 84 00 00 00 88 f1 07 | .......|........|
|00003b70| 5d 54 cf ff 3d 83 cf ff | 20 22 00 00 6c 6f 6f 6b |]T..=...| "..look|
|00003b80| 69 6e 67 20 66 6f 72 20 | 61 20 6d 65 74 68 6f 64 |ing for |a method|
|00003b90| 20 69 6e 20 61 20 70 61 | 72 74 69 63 75 6c 61 72 | in a pa|rticular|
|00003ba0| 20 70 61 63 6b 61 67 65 | 2c 20 75 73 65 20 61 6e | package|, use an|
|00003bb0| 20 6f 72 64 69 6e 61 72 | 79 20 6d 65 74 68 6f 64 | ordinar|y method|
|00003bc0| 20 63 61 6c 6c 2c 20 62 | 75 74 20 71 75 61 6c 69 | call, b|ut quali|
|00003bd0| 66 79 20 74 68 65 20 6d | 65 74 68 6f 64 20 6e 61 |fy the m|ethod na|
|00003be0| 6d 65 20 77 69 74 68 20 | 00 84 00 00 a5 5c 00 00 |me with |.....\..|
|00003bf0| 40 14 8d 01 36 1c cf ff | 16 4b cf ff 20 22 00 00 |@...6...|.K.. "..|
|00003c00| 74 68 65 20 70 61 63 6b | 61 67 65 20 6c 69 6b 65 |the pack|age like|
|00003c10| 20 74 68 69 73 3a 0d 08 | 14 00 00 00 00 00 00 00 | this:..|........|
|00003c20| 07 68 65 20 12 fb 7d 00 | 12 fb 7d 00 00 00 00 00 |.he ..}.|..}.....|
|00003c30| 07 66 69 6e 0c fc 7d 00 | 12 fb 7d 00 0c fc 7d 00 |.fin..}.|..}...}.|
|00003c40| 00 00 00 00 00 5c 00 00 | 25 44 00 00 40 f0 c0 03 |.....\..|%D..@...|
|00003c50| 2f b5 ce ff 3f dc ce ff | 70 1a 00 00 24 66 72 65 |/...?...|p...$fre|
|00003c60| 64 20 3d 20 43 72 69 74 | 74 65 72 2d 3e 4d 79 43 |d = Crit|ter->MyC|
|00003c70| 72 69 74 74 65 72 3a 3a | 66 69 6e 64 28 22 46 72 |ritter::|find("Fr|
|00003c80| 65 64 22 29 3b 0d 00 00 | 00 44 00 00 a5 70 00 00 |ed");...|.D...p..|
|00003c90| 40 20 36 04 4f 86 ce ff | 5f ad ce ff 70 1a 00 00 |@ 6.O...|_...p...|
|00003ca0| 24 66 72 65 64 2d 3e 4d | 79 43 72 69 74 74 65 72 |$fred->M|yCritter|
|00003cb0| 3a 3a 64 69 73 70 6c 61 | 79 28 27 48 65 69 67 68 |::displa|y('Heigh|
|00003cc0| 74 27 2c 20 27 57 65 69 | 67 68 74 27 29 3b 0d 08 |t', 'Wei|ght');..|
|00003cd0| 0c fd 7d 00 12 fb 7d 00 | 00 00 00 00 08 b4 7d 00 |..}...}.|......}.|
|00003ce0| 12 00 00 00 00 00 00 00 | 07 00 00 00 18 fe 7d 00 |........|......}.|
|00003cf0| 18 fe 7d 00 00 00 00 00 | 00 70 00 00 a5 34 00 00 |..}.....|.p...4..|
|00003d00| 40 00 00 00 bf 71 ce ff | 7f 7e ce ff 00 00 00 00 |@....q..|.~......|
|00003d10| 0d 08 65 70 18 ff 7d 00 | 00 00 00 00 07 73 20 62 |..ep..}.|.....s b|
|00003d20| 14 00 7e 00 14 00 7e 00 | 00 00 00 00 00 34 00 00 |..~...~.|.....4..|
|00003d30| 85 a4 00 00 00 38 d2 07 | ef 18 ce ff cf 47 ce ff |.....8..|.....G..|
|00003d40| 20 22 00 00 49 66 20 79 | 6f 75 27 72 65 20 74 72 | "..If y|ou're tr|
|00003d50| 79 69 6e 67 20 74 6f 20 | 63 6f 6e 74 72 6f 6c 20 |ying to |control |
|00003d60| 77 68 65 72 65 20 74 68 | 65 20 6d 65 74 68 6f 64 |where th|e method|
|00003d70| 20 73 65 61 72 63 68 20 | 62 65 67 69 6e 73 20 07 | search |begins .|
|00003d80| 11 01 7e 00 14 00 7e 00 | 11 01 7e 00 00 00 00 00 |..~...~.|..~.....|
|00003d90| 61 6e 64 08 11 00 00 00 | 14 00 7e 00 00 00 00 00 |and.....|..~.....|
|00003da0| 20 79 6f 75 27 72 65 20 | 65 78 65 63 75 74 69 6e | you're |executin|
|00003db0| 67 20 69 6e 20 74 68 65 | 20 63 6c 61 73 73 20 69 |g in the| class i|
|00003dc0| 74 73 65 6c 66 2c 20 74 | 68 65 6e 20 79 6f 75 20 |tself, t|hen you |
|00003dd0| 00 a4 00 00 05 84 00 00 | 00 6c e0 07 c8 e0 cd ff |........|.l......|
|00003de0| a8 0f ce ff 20 22 00 00 | 6d 61 79 20 75 73 65 20 |.... "..|may use |
|00003df0| 74 68 65 20 53 55 50 45 | 52 20 70 73 65 75 64 6f |the SUPE|R pseudo|
|00003e00| 20 63 6c 61 73 73 2c 20 | 77 68 69 63 68 20 73 61 | class, |which sa|
|00003e10| 79 73 20 74 6f 20 73 74 | 61 72 74 20 6c 6f 6f 6b |ys to st|art look|
|00003e20| 69 6e 67 20 69 6e 20 79 | 6f 75 72 20 62 61 73 65 |ing in y|our base|
|00003e30| 20 63 6c 61 73 73 27 73 | 20 40 49 53 41 20 6c 69 | class's| @ISA li|
|00003e40| 73 74 20 77 69 74 68 6f | 75 74 20 68 61 76 69 6e |st witho|ut havin|
|00003e50| 67 20 00 00 00 84 00 00 | a5 5c 00 00 40 58 85 01 |g ......|.\..@X..|
|00003e60| a1 a8 cd ff 81 d7 cd ff | 20 22 00 00 74 6f 20 6e |........| "..to n|
|00003e70| 61 6d 65 20 69 74 20 65 | 78 70 6c 69 63 69 74 6c |ame it e|xplicitl|
|00003e80| 79 3a 0d 08 14 00 00 00 | 00 00 00 00 07 65 6c 73 |y:......|.....els|
|00003e90| 12 02 7e 00 12 02 7e 00 | 00 00 00 00 07 20 61 20 |..~...~.|..... a |
|00003ea0| 0c 03 7e 00 12 02 7e 00 | 0c 03 7e 00 00 00 00 00 |..~...~.|..~.....|
|00003eb0| 00 5c 00 00 a5 6c 00 00 | 40 60 d8 03 9a 41 cd ff |.\...l..|@`...A..|
|00003ec0| aa 68 cd ff 70 1a 00 00 | 24 73 65 6c 66 2d 3e 53 |.h..p...|$self->S|
|00003ed0| 55 50 45 52 3a 3a 64 69 | 73 70 6c 61 79 28 27 48 |UPER::di|splay('H|
|00003ee0| 65 69 67 68 74 27 2c 20 | 27 57 65 69 67 68 74 27 |eight', |'Weight'|
|00003ef0| 29 3b 0d 08 0c 04 7e 00 | 12 02 7e 00 00 00 00 00 |);....~.|..~.....|
|00003f00| 08 63 68 20 12 00 00 00 | 00 00 00 00 07 66 20 74 |.ch ....|.....f t|
|00003f10| 18 05 7e 00 18 05 7e 00 | 00 00 00 00 00 6c 00 00 |..~...~.|.....l..|
|00003f20| a5 24 00 00 40 00 00 00 | 0a 2d cd ff ca 39 cd ff |.$..@...|.-...9..|
|00003f30| 00 00 00 00 0d 08 68 65 | 18 06 7e 00 00 00 00 00 |......he|..~.....|
|00003f40| 00 24 00 00 01 10 00 00 | 40 24 97 05 00 00 00 00 |.$......|@$......|
|00003f50| 00 10 00 00 02 14 00 00 | 38 07 00 00 00 00 00 00 |........|8.......|
|00003f60| 00 00 00 00 00 14 00 00 | a5 b0 00 00 40 24 97 05 |........|....@$..|
|00003f70| bc 45 cb ff 9c 74 cb ff | 20 22 00 00 16 00 00 00 |.E...t..| "......|
|00003f80| b0 fc 07 00 00 00 00 00 | 50 6c 65 61 73 65 20 6e |........|Please n|
|00003f90| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 07 69 6e |ote that| the .in|
|00003fa0| 0e 07 7e 00 0e 07 7e 00 | 00 00 00 00 53 55 50 45 |..~...~.|....SUPE|
|00003fb0| 52 3a 3a 08 0e 08 7e 00 | 00 00 00 00 20 63 6f 6e |R::...~.|.... con|
|00003fc0| 73 74 72 75 63 74 20 69 | 73 20 6d 65 61 6e 69 6e |struct i|s meanin|
|00003fd0| 67 66 75 6c 20 07 0d 07 | 11 09 7e 00 11 09 7e 00 |gful ...|..~...~.|
|00003fe0| 00 00 00 00 6f 6e 6c 79 | 08 00 00 00 11 00 00 00 |....only|........|
|00003ff0| 00 00 00 00 20 77 69 74 | 68 69 6e 20 74 68 65 20 |.... wit|hin the |
|00004000| 63 6c 61 73 73 2e 0d 07 | 14 0a 7e 00 14 0a 7e 00 |class...|..~...~.|
|00004010| 00 00 00 00 00 b0 00 00 | 05 7c 00 00 00 40 be 07 |........|.|...@..|
|00004020| e5 d6 ca ff c5 05 cb ff | 20 22 00 00 53 6f 6d 65 |........| "..Some|
|00004030| 74 69 6d 65 73 20 79 6f | 75 20 77 61 6e 74 20 74 |times yo|u want t|
|00004040| 6f 20 63 61 6c 6c 20 61 | 20 6d 65 74 68 6f 64 20 |o call a| method |
|00004050| 77 68 65 6e 20 79 6f 75 | 20 64 6f 6e 27 74 20 6b |when you| don't k|
|00004060| 6e 6f 77 20 74 68 65 20 | 6d 65 74 68 6f 64 20 6e |now the |method n|
|00004070| 61 6d 65 20 61 68 65 61 | 64 20 6f 66 20 74 69 6d |ame ahea|d of tim|
|00004080| 65 2e 20 20 59 6f 75 20 | 63 61 6e 20 75 73 65 20 |e. You |can use |
|00004090| 00 7c 00 00 a5 ac 00 00 | 40 ec 7e 07 be 9e ca ff |.|......|@.~.....|
|000040a0| 9e cd ca ff 20 22 00 00 | 74 68 65 20 61 72 72 6f |.... "..|the arro|
|000040b0| 77 20 66 6f 72 6d 2c 20 | 72 65 70 6c 61 63 69 6e |w form, |replacin|
|000040c0| 67 20 74 68 65 20 6d 65 | 74 68 6f 64 20 6e 61 6d |g the me|thod nam|
|000040d0| 65 20 77 69 74 68 20 61 | 20 73 69 6d 70 6c 65 20 |e with a| simple |
|000040e0| 73 63 61 6c 61 72 20 76 | 61 72 69 61 62 6c 65 20 |scalar v|ariable |
|000040f0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 65 20 6d |containi|ng the m|
|00004100| 65 74 68 6f 64 20 6e 61 | 6d 65 3a 0d 08 20 61 6e |ethod na|me:.. an|
|00004110| 14 00 00 00 00 00 00 00 | 07 20 72 6f 12 0b 7e 00 |........|. ro..~.|
|00004120| 12 0b 7e 00 00 00 00 00 | 07 64 2c 20 0c 0c 7e 00 |..~.....|.d, ..~.|
|00004130| 12 0b 7e 00 0c 0c 7e 00 | 00 00 00 00 00 ac 00 00 |..~...~.|........|
|00004140| 25 44 00 00 40 d0 ef 03 | b7 37 ca ff c7 5e ca ff |%D..@...|.7...^..|
|00004150| 70 1a 00 00 24 6d 65 74 | 68 6f 64 20 3d 20 24 66 |p...$met|hod = $f|
|00004160| 61 73 74 20 3f 20 22 66 | 69 6e 64 66 69 72 73 74 |ast ? "f|indfirst|
|00004170| 22 20 3a 20 22 66 69 6e | 64 62 65 73 74 22 3b 0d |" : "fin|dbest";.|
|00004180| 00 44 00 00 a5 58 00 00 | 40 a0 03 02 d7 08 ca ff |.D...X..|@.......|
|00004190| e7 2f ca ff 70 1a 00 00 | 24 66 72 65 64 2d 3e 24 |./..p...|$fred->$|
|000041a0| 6d 65 74 68 6f 64 28 40 | 61 72 67 73 29 3b 0d 08 |method(@|args);..|
|000041b0| 0c 0d 7e 00 12 0b 7e 00 | 00 00 00 00 08 74 68 65 |..~...~.|.....the|
|000041c0| 12 00 00 00 00 00 00 00 | 07 6f 72 20 18 0e 7e 00 |........|.or ..~.|
|000041d0| 18 0e 7e 00 00 00 00 00 | 00 58 00 00 a5 34 00 00 |..~.....|.X...4..|
|000041e0| 40 00 00 00 47 f4 c9 ff | 07 01 ca ff 00 00 00 00 |@...G...|........|
|000041f0| 0d 08 20 55 18 0f 7e 00 | 00 00 00 00 07 20 20 28 |.. U..~.|..... (|
|00004200| 0a 10 7e 00 0a 10 7e 00 | 00 00 00 00 00 34 00 00 |..~...~.|.....4..|
|00004210| a5 4c 00 00 40 54 d1 02 | a7 93 c9 ff 57 ca c9 ff |.L..@T..|....W...|
|00004220| 18 2b 00 00 44 65 66 61 | 75 6c 74 20 55 4e 49 56 |.+..Defa|ult UNIV|
|00004230| 45 52 53 41 4c 20 6d 65 | 74 68 6f 64 73 0d 08 20 |ERSAL me|thods.. |
|00004240| 0a 11 7e 00 00 00 00 00 | 07 20 63 6c 14 12 7e 00 |..~.....|. cl..~.|
|00004250| 14 12 7e 00 00 00 00 00 | 00 4c 00 00 85 a0 00 00 |..~.....|.L......|
|00004260| 00 0c 86 07 72 3e c9 ff | 52 6d c9 ff 20 22 00 00 |....r>..|Rm.. "..|
|00004270| 54 68 65 20 07 4c 20 6d | 0e 13 7e 00 14 12 7e 00 |The .L m|..~...~.|
|00004280| 0e 13 7e 00 00 00 00 00 | 55 4e 49 56 45 52 53 41 |..~.....|UNIVERSA|
|00004290| 4c 08 20 20 0e 14 7e 00 | 14 12 7e 00 00 00 00 00 |L. ..~.|..~.....|
|000042a0| 20 70 61 63 6b 61 67 65 | 20 61 75 74 6f 6d 61 74 | package| automat|
|000042b0| 69 63 61 6c 6c 79 20 63 | 6f 6e 74 61 69 6e 73 20 |ically c|ontains |
|000042c0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|000042d0| 74 68 6f 64 73 20 74 68 | 61 74 20 61 72 65 20 69 |thods th|at are i|
|000042e0| 6e 68 65 72 69 74 65 64 | 20 62 79 20 61 6c 6c 20 |nherited| by all |
|000042f0| 6f 74 68 65 72 20 00 00 | 00 a0 00 00 a5 50 00 00 |other ..|.....P..|
|00004300| 40 34 8f 00 4b 06 c9 ff | 2b 35 c9 ff 20 22 00 00 |@4..K...|+5.. "..|
|00004310| 63 6c 61 73 73 65 73 3a | 0d 08 65 20 14 00 00 00 |classes:|..e ....|
|00004320| 00 00 00 00 07 65 6c 66 | 13 15 7e 00 13 15 7e 00 |.....elf|..~...~.|
|00004330| 00 00 00 00 07 67 65 2c | 09 16 7e 00 13 15 7e 00 |.....ge,|..~...~.|
|00004340| 09 16 7e 00 00 00 00 00 | 00 50 00 00 a5 30 00 00 |..~.....|.P...0..|
|00004350| 40 00 ed 00 74 97 c8 ff | 54 c6 c8 ff 28 23 00 00 |@...t...|T...(#..|
|00004360| 69 73 61 28 43 4c 41 53 | 53 29 0d 08 09 17 7e 00 |isa(CLAS|S)....~.|
|00004370| 13 15 7e 00 00 00 00 00 | 00 30 00 00 a5 dc 00 00 |..~.....|.0......|
|00004380| 44 dc 1e 05 4d 5f c8 ff | 2d 8e c8 ff ba 1f 00 00 |D...M_..|-.......|
|00004390| 12 20 75 73 50 46 00 00 | 00 00 00 00 12 6f 6e 79 |. usPF..|.....ony|
|000043a0| 70 17 00 00 00 00 00 00 | 07 2c 20 77 0e 18 7e 00 |p.......|., w..~.|
|000043b0| 13 15 7e 00 0e 18 7e 00 | 00 00 00 00 69 73 61 08 |..~...~.|....isa.|
|000043c0| 0e 19 7e 00 13 15 7e 00 | 00 00 00 00 20 72 65 74 |..~...~.|.... ret|
|000043d0| 75 72 6e 73 20 07 20 62 | 11 1a 7e 00 13 15 7e 00 |urns . b|..~...~.|
|000043e0| 11 1a 7e 00 00 00 00 00 | 74 72 75 65 08 72 69 6f |..~.....|true.rio|
|000043f0| 11 00 00 00 13 15 7e 00 | 00 00 00 00 20 69 66 20 |......~.|.... if |
|00004400| 69 74 73 20 6f 62 6a 65 | 63 74 20 69 73 20 62 6c |its obje|ct is bl|
|00004410| 65 73 73 65 64 20 69 6e | 74 6f 20 61 20 73 75 62 |essed in|to a sub|
|00004420| 63 6c 61 73 73 20 6f 66 | 20 07 2e 0d 0e 1b 7e 00 |class of| .....~.|
|00004430| 13 15 7e 00 0e 1b 7e 00 | 00 00 00 00 43 4c 41 53 |..~...~.|....CLAS|
|00004440| 53 08 6f 64 0e 1c 7e 00 | 13 15 7e 00 00 00 00 00 |S.od..~.|..~.....|
|00004450| 0d 00 00 00 00 dc 00 00 | 85 b8 00 00 04 e8 d6 07 |........|........|
|00004460| 76 f0 c7 ff 56 1f c8 ff | ba 1f 00 00 12 65 20 73 |v...V...|.....e s|
|00004470| 50 46 00 00 00 00 00 00 | 12 65 72 6c 70 17 00 00 |PF......|.erlp...|
|00004480| 00 00 00 00 07 70 72 6f | 0e 1d 7e 00 13 15 7e 00 |.....pro|..~...~.|
|00004490| 0e 1d 7e 00 00 00 00 00 | 69 73 61 08 0e 1e 7e 00 |..~.....|isa...~.|
|000044a0| 13 15 7e 00 00 00 00 00 | 20 69 73 20 61 6c 73 6f |..~.....| is also|
|000044b0| 20 65 78 70 6f 72 74 61 | 62 6c 65 20 61 6e 64 20 | exporta|ble and |
|000044c0| 63 61 6e 20 62 65 20 63 | 61 6c 6c 65 64 20 61 73 |can be c|alled as|
|000044d0| 20 61 20 73 75 62 20 77 | 69 74 68 20 74 77 6f 20 | a sub w|ith two |
|000044e0| 61 72 67 75 6d 65 6e 74 | 73 2e 20 54 68 69 73 20 |argument|s. This |
|000044f0| 61 6c 6c 6f 77 73 20 74 | 68 65 20 61 62 69 6c 69 |allows t|he abili|
|00004500| 74 79 20 74 6f 20 63 68 | 65 63 6b 20 00 b8 00 00 |ty to ch|eck ....|
|00004510| a5 68 00 00 40 4c a2 02 | 4f b8 c7 ff 2f e7 c7 ff |.h..@L..|O.../...|
|00004520| 20 22 00 00 77 68 61 74 | 20 61 20 72 65 66 65 72 | "..what| a refer|
|00004530| 65 6e 63 65 20 70 6f 69 | 6e 74 73 20 74 6f 2e 20 |ence poi|nts to. |
|00004540| 45 78 61 6d 70 6c 65 0d | 07 6b 61 67 12 1f 7e 00 |Example.|.kag..~.|
|00004550| 13 15 7e 00 12 1f 7e 00 | 00 00 00 00 07 6f 6b 65 |..~...~.|.....oke|
|00004560| 0c 20 7e 00 13 15 7e 00 | 12 1f 7e 00 0c 20 7e 00 |. ~...~.|..~.. ~.|
|00004570| 00 00 00 00 00 68 00 00 | a5 64 00 00 40 a0 03 02 |.....h..|.d..@...|
|00004580| 48 51 c7 ff 58 78 c7 ff | 70 1a 00 00 75 73 65 20 |HQ..Xx..|p...use |
|00004590| 55 4e 49 56 45 52 53 41 | 4c 20 71 77 28 69 73 61 |UNIVERSA|L qw(isa|
|000045a0| 29 3b 0d 08 0c 21 7e 00 | 13 15 7e 00 12 1f 7e 00 |);...!~.|..~...~.|
|000045b0| 00 00 00 00 08 65 74 69 | 12 00 00 00 13 15 7e 00 |.....eti|......~.|
|000045c0| 00 00 00 00 07 61 72 20 | 18 22 7e 00 13 15 7e 00 |.....ar |."~...~.|
|000045d0| 18 22 7e 00 00 00 00 00 | 00 64 00 00 a5 54 00 00 |."~.....|.d...T..|
|000045e0| 40 00 00 00 b8 3c c7 ff | 78 49 c7 ff 00 00 00 00 |@....<..|xI......|
|000045f0| 0d 08 6f 66 18 23 7e 00 | 13 15 7e 00 00 00 00 00 |..of.#~.|..~.....|
|00004600| 07 6d 65 74 12 24 7e 00 | 13 15 7e 00 12 24 7e 00 |.met.$~.|..~..$~.|
|00004610| 00 00 00 00 07 73 74 20 | 0c 25 7e 00 13 15 7e 00 |.....st |.%~...~.|
|00004620| 12 24 7e 00 0c 25 7e 00 | 00 00 00 00 00 54 00 00 |.$~..%~.|.....T..|
|00004630| 25 34 00 00 40 80 32 02 | b8 eb c6 ff c8 12 c7 ff |%4..@.2.|........|
|00004640| 70 1a 00 00 69 66 28 69 | 73 61 28 24 72 65 66 2c |p...if(i|sa($ref,|
|00004650| 20 27 41 52 52 41 59 27 | 29 29 20 7b 0d 00 00 00 | 'ARRAY'|)) {....|
|00004660| 00 34 00 00 25 20 00 00 | 40 10 a4 00 d8 bc c6 ff |.4..% ..|@.......|
|00004670| e8 e3 c6 ff 70 1a 00 00 | 20 20 20 20 2e 2e 2e 0d |....p...| ....|
|00004680| 00 20 00 00 a5 50 00 00 | 40 70 17 00 f8 8d c6 ff |. ...P..|@p......|
|00004690| 08 b5 c6 ff 70 1a 00 00 | 7d 0d 08 20 0c 26 7e 00 |....p...|}.. .&~.|
|000046a0| 13 15 7e 00 12 24 7e 00 | 00 00 00 00 08 6f 72 20 |..~..$~.|.....or |
|000046b0| 12 00 00 00 13 15 7e 00 | 00 00 00 00 07 6c 20 6f |......~.|.....l o|
|000046c0| 18 27 7e 00 13 15 7e 00 | 18 27 7e 00 00 00 00 00 |.'~...~.|.'~.....|
|000046d0| 00 50 00 00 a5 3c 00 00 | 40 00 00 00 68 79 c6 ff |.P...<..|@...hy..|
|000046e0| 28 86 c6 ff 00 00 00 00 | 0d 08 73 20 18 28 7e 00 |(.......|..s .(~.|
|000046f0| 13 15 7e 00 00 00 00 00 | 07 20 63 6c 09 29 7e 00 |..~.....|. cl.)~.|
|00004700| 13 15 7e 00 09 29 7e 00 | 00 00 00 00 00 3c 00 00 |..~..)~.|.....<..|
|00004710| a5 34 00 00 40 18 3b 01 | 98 20 c6 ff 78 4f c6 ff |.4..@.;.|. ..xO..|
|00004720| 28 23 00 00 63 61 6e 28 | 4d 45 54 48 4f 44 29 0d |(#..can(|METHOD).|
|00004730| 08 66 69 72 09 2a 7e 00 | 13 15 7e 00 00 00 00 00 |.fir.*~.|..~.....|
|00004740| 00 34 00 00 85 d8 00 00 | 04 88 a6 07 71 e8 c5 ff |.4......|....q...|
|00004750| 51 17 c6 ff ba 1f 00 00 | 12 77 20 77 50 46 00 00 |Q.......|.w wPF..|
|00004760| 00 00 00 00 12 67 65 20 | 70 17 00 00 00 00 00 00 |.....ge |p.......|
|00004770| 07 6e 2c 20 0e 2b 7e 00 | 13 15 7e 00 0e 2b 7e 00 |.n, .+~.|..~..+~.|
|00004780| 00 00 00 00 63 61 6e 08 | 0e 2c 7e 00 13 15 7e 00 |....can.|.,~...~.|
|00004790| 00 00 00 00 20 63 68 65 | 63 6b 73 20 74 6f 20 73 |.... che|cks to s|
|000047a0| 65 65 20 69 66 20 69 74 | 73 20 6f 62 6a 65 63 74 |ee if it|s object|
|000047b0| 20 68 61 73 20 61 20 6d | 65 74 68 6f 64 20 63 61 | has a m|ethod ca|
|000047c0| 6c 6c 65 64 20 07 73 61 | 0e 2d 7e 00 13 15 7e 00 |lled .sa|.-~...~.|
|000047d0| 0e 2d 7e 00 00 00 00 00 | 4d 45 54 48 4f 44 08 64 |.-~.....|METHOD.d|
|000047e0| 0e 2e 7e 00 13 15 7e 00 | 00 00 00 00 2c 20 69 66 |..~...~.|...., if|
|000047f0| 20 69 74 20 64 6f 65 73 | 20 74 68 65 6e 20 61 20 | it does| then a |
|00004800| 72 65 66 65 72 65 6e 63 | 65 20 74 6f 20 74 68 65 |referenc|e to the|
|00004810| 20 73 75 62 20 69 73 20 | 00 d8 00 00 a5 7c 00 00 | sub is |.....|..|
|00004820| 40 3c 4e 03 4a b0 c5 ff | 2a df c5 ff 20 22 00 00 |@<N.J...|*... "..|
|00004830| 72 65 74 75 72 6e 65 64 | 2c 20 69 66 20 69 74 20 |returned|, if it |
|00004840| 64 6f 65 73 20 6e 6f 74 | 20 74 68 65 6e 20 07 6f |does not| then .o|
|00004850| 11 2f 7e 00 13 15 7e 00 | 11 2f 7e 00 00 00 00 00 |./~...~.|./~.....|
|00004860| 75 6e 64 65 66 08 6e 61 | 11 00 00 00 13 15 7e 00 |undef.na|......~.|
|00004870| 00 00 00 00 20 69 73 20 | 72 65 74 75 72 6e 65 64 |.... is |returned|
|00004880| 2e 0d 07 00 09 30 7e 00 | 13 15 7e 00 09 30 7e 00 |.....0~.|..~..0~.|
|00004890| 00 00 00 00 00 7c 00 00 | a5 38 00 00 40 a8 ad 01 |.....|..|.8..@...|
|000048a0| 73 41 c5 ff 53 70 c5 ff | 28 23 00 00 56 45 52 53 |sA..Sp..|(#..VERS|
|000048b0| 49 4f 4e 28 20 5b 4e 45 | 45 44 5d 20 29 0d 08 20 |ION( [NE|ED] ).. |
|000048c0| 09 31 7e 00 13 15 7e 00 | 00 00 00 00 00 38 00 00 |.1~...~.|.....8..|
|000048d0| 85 b4 00 00 04 54 b6 07 | 4c 09 c5 ff 2c 38 c5 ff |.....T..|L...,8..|
|000048e0| ba 1f 00 00 12 be 7d 00 | 50 46 00 00 00 00 00 00 |......}.|PF......|
|000048f0| 12 00 00 00 70 17 00 00 | 00 00 00 00 07 c1 7d 00 |....p...|......}.|
|00004900| 0e 32 7e 00 13 15 7e 00 | 0e 32 7e 00 00 00 00 00 |.2~...~.|.2~.....|
|00004910| 56 45 52 53 49 4f 4e 08 | 0e 33 7e 00 13 15 7e 00 |VERSION.|.3~...~.|
|00004920| 00 00 00 00 20 72 65 74 | 75 72 6e 73 20 74 68 65 |.... ret|urns the|
|00004930| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 20 | version| number |
|00004940| 6f 66 20 74 68 65 20 63 | 6c 61 73 73 20 28 70 61 |of the c|lass (pa|
|00004950| 63 6b 61 67 65 29 2e 20 | 20 49 66 20 74 68 65 20 |ckage). | If the |
|00004960| 4e 45 45 44 20 61 72 67 | 75 6d 65 6e 74 20 69 73 |NEED arg|ument is|
|00004970| 20 67 69 76 65 6e 20 74 | 68 65 6e 20 69 74 20 00 | given t|hen it .|
|00004980| 00 b4 00 00 05 7c 00 00 | 00 00 50 07 25 d1 c4 ff |.....|..|..P.%...|
|00004990| 05 00 c5 ff 20 22 00 00 | 77 69 6c 6c 20 63 68 65 |.... "..|will che|
|000049a0| 63 6b 20 74 68 61 74 20 | 74 68 65 20 63 75 72 72 |ck that |the curr|
|000049b0| 65 6e 74 20 76 65 72 73 | 69 6f 6e 20 28 61 73 20 |ent vers|ion (as |
|000049c0| 64 65 66 69 6e 65 64 20 | 62 79 20 74 68 65 20 24 |defined |by the $|
|000049d0| 56 45 52 53 49 4f 4e 20 | 76 61 72 69 61 62 6c 65 |VERSION |variable|
|000049e0| 20 69 6e 20 74 68 65 20 | 67 69 76 65 6e 20 70 61 | in the |given pa|
|000049f0| 63 6b 61 67 65 29 20 6e | 6f 74 20 00 00 7c 00 00 |ckage) n|ot ..|..|
|00004a00| 05 84 00 00 00 8c 4b 07 | fe 98 c4 ff de c7 c4 ff |......K.|........|
|00004a10| 20 22 00 00 6c 65 73 73 | 20 74 68 61 6e 20 4e 45 | "..less| than NE|
|00004a20| 45 44 3b 20 69 74 20 77 | 69 6c 6c 20 64 69 65 20 |ED; it w|ill die |
|00004a30| 69 66 20 74 68 69 73 20 | 69 73 20 6e 6f 74 20 74 |if this |is not t|
|00004a40| 68 65 20 63 61 73 65 2e | 20 20 54 68 69 73 20 6d |he case.| This m|
|00004a50| 65 74 68 6f 64 20 69 73 | 20 6e 6f 72 6d 61 6c 6c |ethod is| normall|
|00004a60| 79 20 63 61 6c 6c 65 64 | 20 61 73 20 61 20 63 6c |y called| as a cl|
|00004a70| 61 73 73 20 6d 65 74 68 | 6f 64 2e 20 20 00 00 00 |ass meth|od. ...|
|00004a80| 00 84 00 00 a5 c0 00 00 | 40 d8 f2 04 d7 60 c4 ff |........|@....`..|
|00004a90| b7 8f c4 ff 20 22 00 00 | 54 68 69 73 20 6d 65 74 |.... "..|This met|
|00004aa0| 68 6f 64 20 69 73 20 63 | 61 6c 6c 65 64 20 61 75 |hod is c|alled au|
|00004ab0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 62 79 20 74 |tomatica|lly by t|
|00004ac0| 68 65 20 07 0e 34 7e 00 | 13 15 7e 00 0e 34 7e 00 |he ..4~.|..~..4~.|
|00004ad0| 00 00 00 00 56 45 52 53 | 49 4f 4e 08 0e 35 7e 00 |....VERS|ION..5~.|
|00004ae0| 13 15 7e 00 00 00 00 00 | 20 66 6f 72 6d 20 6f 66 |..~.....| form of|
|00004af0| 20 07 00 00 0e 36 7e 00 | 13 15 7e 00 0e 36 7e 00 | ....6~.|..~..6~.|
|00004b00| 00 00 00 00 75 73 65 08 | 0e 37 7e 00 13 15 7e 00 |....use.|.7~...~.|
|00004b10| 00 00 00 00 2e 0d 07 6f | 12 38 7e 00 13 15 7e 00 |.......o|.8~...~.|
|00004b20| 12 38 7e 00 00 00 00 00 | 07 6f 75 27 0c 39 7e 00 |.8~.....|.ou'.9~.|
|00004b30| 13 15 7e 00 12 38 7e 00 | 0c 39 7e 00 00 00 00 00 |..~..8~.|.9~.....|
|00004b40| 00 c0 00 00 25 3c 00 00 | 40 70 05 03 d0 f9 c3 ff |....%<..|@p......|
|00004b50| e0 20 c4 ff 70 1a 00 00 | 75 73 65 20 41 20 31 2e |. ..p...|use A 1.|
|00004b60| 32 20 71 77 28 73 6f 6d | 65 20 69 6d 70 6f 72 74 |2 qw(som|e import|
|00004b70| 65 64 20 73 75 62 73 29 | 3b 0d 00 00 00 3c 00 00 |ed subs)|;....<..|
|00004b80| 25 24 00 00 40 60 ea 00 | f0 ca c3 ff 00 f2 c3 ff |%$..@`..|........|
|00004b90| 70 1a 00 00 23 20 69 6d | 70 6c 69 65 73 3a 0d 00 |p...# im|plies:..|
|00004ba0| 00 24 00 00 a5 60 00 00 | 40 00 77 01 10 9c c3 ff |.$...`..|@.w.....|
|00004bb0| 20 c3 c3 ff 70 1a 00 00 | 41 2d 3e 56 45 52 53 49 | ...p...|A->VERSI|
|00004bc0| 4f 4e 28 31 2e 32 29 3b | 0d 08 05 05 0c 3a 7e 00 |ON(1.2);|.....:~.|
|00004bd0| 13 15 7e 00 12 38 7e 00 | 00 00 00 00 08 72 69 6e |..~..8~.|.....rin|
|00004be0| 12 00 00 00 13 15 7e 00 | 00 00 00 00 07 70 21 21 |......~.|.....p!!|
|00004bf0| 18 3b 7e 00 13 15 7e 00 | 18 3b 7e 00 00 00 00 00 |.;~...~.|.;~.....|
|00004c00| 00 60 00 00 a5 44 00 00 | 40 00 00 00 80 87 c3 ff |.`...D..|@.......|
|00004c10| 40 94 c3 ff 00 00 00 00 | 0d 08 7d 00 18 3c 7e 00 |@.......|..}..<~.|
|00004c20| 13 15 7e 00 00 00 00 00 | 08 00 00 00 13 3d 7e 00 |..~.....|.....=~.|
|00004c30| 00 00 00 00 07 20 73 79 | 10 3e 7e 00 10 3e 7e 00 |..... sy|.>~..>~.|
|00004c40| 00 00 00 00 00 44 00 00 | 85 b8 00 00 00 80 d2 07 |.....D..|........|
|00004c50| b0 2e c3 ff 90 5d c3 ff | 28 23 00 00 4e 4f 54 45 |.....]..|(#..NOTE|
|00004c60| 3a 08 6e 73 10 00 00 00 | 00 00 00 00 20 07 6f 64 |:.ns....|.... .od|
|00004c70| 0e 3f 7e 00 0e 3f 7e 00 | 00 00 00 00 63 61 6e 08 |.?~..?~.|....can.|
|00004c80| 0e 40 7e 00 00 00 00 00 | 20 64 69 72 65 63 74 6c |.@~.....| directl|
|00004c90| 79 20 75 73 65 73 20 50 | 65 72 6c 27 73 20 69 6e |y uses P|erl's in|
|00004ca0| 74 65 72 6e 61 6c 20 63 | 6f 64 65 20 66 6f 72 20 |ternal c|ode for |
|00004cb0| 6d 65 74 68 6f 64 20 6c | 6f 6f 6b 75 70 2c 20 61 |method l|ookup, a|
|00004cc0| 6e 64 20 07 0e 41 7e 00 | 0e 41 7e 00 00 00 00 00 |nd ..A~.|.A~.....|
|00004cd0| 69 73 61 08 0e 42 7e 00 | 00 00 00 00 20 75 73 65 |isa..B~.|.... use|
|00004ce0| 73 20 61 20 76 65 72 79 | 20 73 69 6d 69 6c 61 72 |s a very| similar|
|00004cf0| 20 6d 65 74 68 6f 64 20 | 61 6e 64 20 00 b8 00 00 | method |and ....|
|00004d00| 05 7c 00 00 00 c8 66 07 | 89 f6 c2 ff 69 25 c3 ff |.|....f.|....i%..|
|00004d10| 20 22 00 00 63 61 63 68 | 65 2d 69 6e 67 20 73 74 | "..cach|e-ing st|
|00004d20| 72 61 74 65 67 79 2e 20 | 54 68 69 73 20 6d 61 79 |rategy. |This may|
|00004d30| 20 63 61 75 73 65 20 73 | 74 72 61 6e 67 65 20 65 | cause s|trange e|
|00004d40| 66 66 65 63 74 73 20 69 | 66 20 74 68 65 20 50 65 |ffects i|f the Pe|
|00004d50| 72 6c 20 63 6f 64 65 20 | 64 79 6e 61 6d 69 63 61 |rl code |dynamica|
|00004d60| 6c 6c 79 20 63 68 61 6e | 67 65 73 20 40 49 53 41 |lly chan|ges @ISA|
|00004d70| 20 69 6e 20 61 6e 79 20 | 00 7c 00 00 25 24 00 00 | in any |.|..%$..|
|00004d80| 40 48 a5 00 62 be c2 ff | 42 ed c2 ff 20 22 00 00 |@H..b...|B... "..|
|00004d90| 70 61 63 6b 61 67 65 2e | 0d 00 00 00 00 24 00 00 |package.|.....$..|
|00004da0| 85 84 00 00 00 68 51 07 | 8b 4f c2 ff 6b 7e c2 ff |.....hQ.|.O..k~..|
|00004db0| 20 22 00 00 59 6f 75 20 | 6d 61 79 20 61 64 64 20 | "..You |may add |
|00004dc0| 6f 74 68 65 72 20 6d 65 | 74 68 6f 64 73 20 74 6f |other me|thods to|
|00004dd0| 20 74 68 65 20 55 4e 49 | 56 45 52 53 41 4c 20 63 | the UNI|VERSAL c|
|00004de0| 6c 61 73 73 20 76 69 61 | 20 50 65 72 6c 20 6f 72 |lass via| Perl or|
|00004df0| 20 58 53 20 63 6f 64 65 | 2e 20 59 6f 75 20 64 6f | XS code|. You do|
|00004e00| 20 6e 6f 74 20 6e 65 65 | 64 20 74 6f 20 07 05 05 | not nee|d to ...|
|00004e10| 0e 43 7e 00 0e 43 7e 00 | 00 00 00 00 75 73 65 20 |.C~..C~.|....use |
|00004e20| 00 84 00 00 85 8c 00 00 | 00 94 e5 07 64 17 c2 ff |........|....d...|
|00004e30| 44 46 c2 ff ba 1f 00 00 | 55 4e 49 56 45 52 53 41 |DF......|UNIVERSA|
|00004e40| 4c 08 74 65 0e 44 7e 00 | 00 00 00 00 20 69 6e 20 |L.te.D~.|.... in |
|00004e50| 6f 72 64 65 72 20 74 6f | 20 6d 61 6b 65 20 74 68 |order to| make th|
|00004e60| 65 73 65 20 6d 65 74 68 | 6f 64 73 20 61 76 61 69 |ese meth|ods avai|
|00004e70| 6c 61 62 6c 65 20 74 6f | 20 79 6f 75 72 20 70 72 |lable to| your pr|
|00004e80| 6f 67 72 61 6d 2e 20 20 | 54 68 69 73 20 69 73 20 |ogram. |This is |
|00004e90| 6e 65 63 65 73 73 61 72 | 79 20 6f 6e 6c 79 20 69 |necessar|y only i|
|00004ea0| 66 20 79 6f 75 20 77 69 | 73 68 20 00 00 8c 00 00 |f you wi|sh .....|
|00004eb0| a5 84 00 00 40 c4 e2 04 | 3d df c1 ff 1d 0e c2 ff |....@...|=.......|
|00004ec0| 20 22 00 00 74 6f 20 68 | 61 76 65 20 07 20 74 68 | "..to h|ave . th|
|00004ed0| 0e 45 7e 00 0e 45 7e 00 | 00 00 00 00 69 73 61 08 |.E~..E~.|....isa.|
|00004ee0| 0e 46 7e 00 00 00 00 00 | 20 61 76 61 69 6c 61 62 |.F~.....| availab|
|00004ef0| 6c 65 20 61 73 20 61 20 | 70 6c 61 69 6e 20 73 75 |le as a |plain su|
|00004f00| 62 72 6f 75 74 69 6e 65 | 20 69 6e 20 74 68 65 20 |broutine| in the |
|00004f10| 63 75 72 72 65 6e 74 20 | 70 61 63 6b 61 67 65 2e |current |package.|
|00004f20| 0d 07 75 6d 0a 47 7e 00 | 0a 47 7e 00 00 00 00 00 |..um.G~.|.G~.....|
|00004f30| 00 84 00 00 a5 30 00 00 | 40 90 17 01 96 68 c1 ff |.....0..|@....h..|
|00004f40| 46 9f c1 ff 18 2b 00 00 | 44 65 73 74 72 75 63 74 |F....+..|Destruct|
|00004f50| 6f 72 73 0d 08 72 69 74 | 0a 48 7e 00 00 00 00 00 |ors..rit|.H~.....|
|00004f60| 00 30 00 00 05 84 00 00 | 00 10 b5 07 61 13 c1 ff |.0......|....a...|
|00004f70| 41 42 c1 ff 20 22 00 00 | 57 68 65 6e 20 74 68 65 |AB.. "..|When the|
|00004f80| 20 6c 61 73 74 20 72 65 | 66 65 72 65 6e 63 65 20 | last re|ference |
|00004f90| 74 6f 20 61 6e 20 6f 62 | 6a 65 63 74 20 67 6f 65 |to an ob|ject goe|
|00004fa0| 73 20 61 77 61 79 2c 20 | 74 68 65 20 6f 62 6a 65 |s away, |the obje|
|00004fb0| 63 74 20 69 73 20 61 75 | 74 6f 6d 61 74 69 63 61 |ct is au|tomatica|
|00004fc0| 6c 6c 79 20 64 65 73 74 | 72 6f 79 65 64 2e 20 20 |lly dest|royed. |
|00004fd0| 28 54 68 69 73 20 6d 61 | 79 20 65 76 65 6e 20 62 |(This ma|y even b|
|00004fe0| 65 20 00 00 00 84 00 00 | 05 8c 00 00 00 74 de 07 |e ......|.....t..|
|00004ff0| 3a db c0 ff 1a 0a c1 ff | 20 22 00 00 61 66 74 65 |:.......| "..afte|
|00005000| 72 20 79 6f 75 20 65 78 | 69 74 2c 20 69 66 20 79 |r you ex|it, if y|
|00005010| 6f 75 27 76 65 20 73 74 | 6f 72 65 64 20 72 65 66 |ou've st|ored ref|
|00005020| 65 72 65 6e 63 65 73 20 | 69 6e 20 67 6c 6f 62 61 |erences |in globa|
|00005030| 6c 20 76 61 72 69 61 62 | 6c 65 73 2e 29 20 20 49 |l variab|les.) I|
|00005040| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 63 61 |f you wa|nt to ca|
|00005050| 70 74 75 72 65 20 63 6f | 6e 74 72 6f 6c 20 6a 75 |pture co|ntrol ju|
|00005060| 73 74 20 62 65 66 6f 72 | 65 20 74 68 65 20 00 00 |st befor|e the ..|
|00005070| 00 8c 00 00 05 80 00 00 | 00 d0 9d 07 13 a3 c0 ff |........|........|
|00005080| f3 d1 c0 ff 20 22 00 00 | 6f 62 6a 65 63 74 20 69 |.... "..|object i|
|00005090| 73 20 66 72 65 65 64 2c | 20 79 6f 75 20 6d 61 79 |s freed,| you may|
|000050a0| 20 64 65 66 69 6e 65 20 | 61 20 44 45 53 54 52 4f | define |a DESTRO|
|000050b0| 59 20 6d 65 74 68 6f 64 | 20 69 6e 20 79 6f 75 72 |Y method| in your|
|000050c0| 20 63 6c 61 73 73 2e 20 | 20 49 74 20 77 69 6c 6c | class. | It will|
|000050d0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 62 | automat|ically b|
|000050e0| 65 20 63 61 6c 6c 65 64 | 20 61 74 20 74 68 65 20 |e called| at the |
|000050f0| 00 80 00 00 25 60 00 00 | 40 74 32 05 ec 6a c0 ff |....%`..|@t2..j..|
|00005100| cc 99 c0 ff 20 22 00 00 | 61 70 70 72 6f 70 72 69 |.... "..|appropri|
|00005110| 61 74 65 20 6d 6f 6d 65 | 6e 74 2c 20 61 6e 64 20 |ate mome|nt, and |
|00005120| 79 6f 75 20 63 61 6e 20 | 64 6f 20 61 6e 79 20 65 |you can |do any e|
|00005130| 78 74 72 61 20 63 6c 65 | 61 6e 75 70 20 79 6f 75 |xtra cle|anup you|
|00005140| 20 6e 65 65 64 20 74 6f | 20 64 6f 2e 0d 00 00 00 | need to| do.....|
|00005150| 00 60 00 00 01 10 00 00 | 00 34 d9 07 00 00 00 00 |.`......|.4......|
|00005160| 00 10 00 00 02 14 00 00 | d4 08 00 00 00 00 00 00 |........|........|
|00005170| 00 00 00 00 00 14 00 00 | 05 94 00 00 00 34 d9 07 |........|.....4..|
|00005180| 0b 46 be ff eb 74 be ff | 20 22 00 00 16 00 00 00 |.F...t..| "......|
|00005190| b0 fc 07 00 00 00 00 00 | 50 65 72 6c 20 64 6f 65 |........|Perl doe|
|000051a0| 73 6e 27 74 20 64 6f 20 | 6e 65 73 74 65 64 20 64 |sn't do |nested d|
|000051b0| 65 73 74 72 75 63 74 69 | 6f 6e 20 66 6f 72 20 79 |estructi|on for y|
|000051c0| 6f 75 2e 20 20 49 66 20 | 79 6f 75 72 20 63 6f 6e |ou. If |your con|
|000051d0| 73 74 72 75 63 74 6f 72 | 20 72 65 2d 62 6c 65 73 |structor| re-bles|
|000051e0| 73 65 64 20 61 20 72 65 | 66 65 72 65 6e 63 65 20 |sed a re|ference |
|000051f0| 66 72 6f 6d 20 6f 6e 65 | 20 6f 66 20 79 6f 75 72 |from one| of your|
|00005200| 20 62 61 73 65 20 00 00 | 00 94 00 00 05 80 00 00 | base ..|........|
|00005210| 00 cc c5 07 e4 0d be ff | c4 3c be ff 20 22 00 00 |........|.<.. "..|
|00005220| 63 6c 61 73 73 65 73 2c | 20 79 6f 75 72 20 44 45 |classes,| your DE|
|00005230| 53 54 52 4f 59 20 6d 61 | 79 20 6e 65 65 64 20 74 |STROY ma|y need t|
|00005240| 6f 20 63 61 6c 6c 20 44 | 45 53 54 52 4f 59 20 66 |o call D|ESTROY f|
|00005250| 6f 72 20 61 6e 79 20 62 | 61 73 65 20 63 6c 61 73 |or any b|ase clas|
|00005260| 73 65 73 20 74 68 61 74 | 20 6e 65 65 64 20 69 74 |ses that| need it|
|00005270| 2e 20 20 42 75 74 20 74 | 68 69 73 20 61 70 70 6c |. But t|his appl|
|00005280| 69 65 73 20 74 6f 20 00 | 00 80 00 00 85 a0 00 00 |ies to .|........|
|00005290| 00 90 c5 07 bd d5 bd ff | 9d 04 be ff 20 22 00 00 |........|.... "..|
|000052a0| 6f 6e 6c 79 20 72 65 2d | 62 6c 65 73 73 65 64 20 |only re-|blessed |
|000052b0| 6f 62 6a 65 63 74 73 2d | 2d 61 6e 20 6f 62 6a 65 |objects-|-an obje|
|000052c0| 63 74 20 72 65 66 65 72 | 65 6e 63 65 20 74 68 61 |ct refer|ence tha|
|000052d0| 74 20 69 73 20 6d 65 72 | 65 6c 79 20 07 00 00 00 |t is mer|ely ....|
|000052e0| 11 49 7e 00 11 49 7e 00 | 00 00 00 00 43 4f 4e 54 |.I~..I~.|....CONT|
|000052f0| 41 49 4e 45 44 08 7d 00 | 11 00 00 00 00 00 00 00 |AINED.}.|........|
|00005300| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00005310| 6f 62 6a 65 63 74 20 77 | 69 6c 6c 20 62 65 20 66 |object w|ill be f|
|00005320| 72 65 65 64 20 00 00 00 | 00 a0 00 00 a5 64 00 00 |reed ...|.....d..|
|00005330| 40 44 78 04 96 9d bd ff | 76 cc bd ff 20 22 00 00 |@Dx.....|v... "..|
|00005340| 61 6e 64 20 64 65 73 74 | 72 6f 79 65 64 20 61 75 |and dest|royed au|
|00005350| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 77 68 65 6e |tomatica|lly when|
|00005360| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6f 62 6a | the cur|rent obj|
|00005370| 65 63 74 20 69 73 20 66 | 72 65 65 64 2e 0d 07 05 |ect is f|reed....|
|00005380| 0a 4a 7e 00 0a 4a 7e 00 | 00 00 00 00 00 64 00 00 |.J~..J~.|.....d..|
|00005390| a5 2c 00 00 40 94 c9 00 | ef 26 bd ff 9f 5d bd ff |.,..@...|.&...]..|
|000053a0| 18 2b 00 00 57 61 72 6e | 69 6e 67 0d 08 20 34 35 |.+..Warn|ing.. 45|
|000053b0| 0a 4b 7e 00 00 00 00 00 | 00 2c 00 00 05 88 00 00 |.K~.....|.,......|
|000053c0| 00 dc c7 07 ba d1 bc ff | 9a 00 bd ff 20 22 00 00 |........|.... "..|
|000053d0| 41 6e 20 69 6e 64 69 72 | 65 63 74 20 6f 62 6a 65 |An indir|ect obje|
|000053e0| 63 74 20 69 73 20 6c 69 | 6d 69 74 65 64 20 74 6f |ct is li|mited to|
|000053f0| 20 61 20 6e 61 6d 65 2c | 20 61 20 73 63 61 6c 61 | a name,| a scala|
|00005400| 72 20 76 61 72 69 61 62 | 6c 65 2c 20 6f 72 20 61 |r variab|le, or a|
|00005410| 20 62 6c 6f 63 6b 2c 20 | 62 65 63 61 75 73 65 20 | block, |because |
|00005420| 69 74 20 77 6f 75 6c 64 | 20 68 61 76 65 20 74 6f |it would| have to|
|00005430| 20 64 6f 20 74 6f 6f 20 | 6d 75 63 68 20 00 00 00 | do too |much ...|
|00005440| 00 88 00 00 05 88 00 00 | 00 d0 a6 07 93 99 bc ff |........|........|
|00005450| 73 c8 bc ff 20 22 00 00 | 6c 6f 6f 6b 61 68 65 61 |s... "..|lookahea|
|00005460| 64 20 6f 74 68 65 72 77 | 69 73 65 2c 20 6a 75 73 |d otherw|ise, jus|
|00005470| 74 20 6c 69 6b 65 20 61 | 6e 79 20 6f 74 68 65 72 |t like a|ny other|
|00005480| 20 70 6f 73 74 66 69 78 | 20 64 65 72 65 66 65 72 | postfix| derefer|
|00005490| 65 6e 63 65 20 69 6e 20 | 74 68 65 20 6c 61 6e 67 |ence in |the lang|
|000054a0| 75 61 67 65 2e 20 20 54 | 68 65 20 6c 65 66 74 20 |uage. T|he left |
|000054b0| 73 69 64 65 20 6f 66 20 | 2d 3e 20 69 73 20 6e 6f |side of |-> is no|
|000054c0| 74 20 73 6f 20 00 00 00 | 00 88 00 00 a5 68 00 00 |t so ...|.....h..|
|000054d0| 40 38 66 04 6c 61 bc ff | 4c 90 bc ff 20 22 00 00 |@8f.la..|L... "..|
|000054e0| 6c 69 6d 69 74 65 64 2c | 20 62 65 63 61 75 73 65 |limited,| because|
|000054f0| 20 69 74 27 73 20 61 6e | 20 69 6e 66 69 78 20 6f | it's an| infix o|
|00005500| 70 65 72 61 74 6f 72 2c | 20 6e 6f 74 20 61 20 70 |perator,| not a p|
|00005510| 6f 73 74 66 69 78 20 6f | 70 65 72 61 74 6f 72 2e |ostfix o|perator.|
|00005520| 0d 07 69 6e 14 4c 7e 00 | 14 4c 7e 00 00 00 00 00 |..in.L~.|.L~.....|
|00005530| 00 68 00 00 05 84 00 00 | 00 b8 e2 07 95 f2 bb ff |.h......|........|
|00005540| 75 21 bc ff 20 22 00 00 | 54 68 61 74 20 6d 65 61 |u!.. "..|That mea|
|00005550| 6e 73 20 74 68 61 74 20 | 69 6e 20 74 68 65 20 66 |ns that |in the f|
|00005560| 6f 6c 6c 6f 77 69 6e 67 | 2c 20 41 20 61 6e 64 20 |ollowing|, A and |
|00005570| 42 20 61 72 65 20 65 71 | 75 69 76 61 6c 65 6e 74 |B are eq|uivalent|
|00005580| 20 74 6f 20 65 61 63 68 | 20 6f 74 68 65 72 2c 20 | to each| other, |
|00005590| 61 6e 64 20 43 20 61 6e | 64 20 44 20 61 72 65 20 |and C an|d D are |
|000055a0| 65 71 75 69 76 61 6c 65 | 6e 74 2c 20 62 75 74 20 |equivale|nt, but |
|000055b0| 41 2f 42 20 00 84 00 00 | a5 5c 00 00 40 cc 9b 01 |A/B ....|.\..@...|
|000055c0| 6e ba bb ff 4e e9 bb ff | 20 22 00 00 61 6e 64 20 |n...N...| "..and |
|000055d0| 43 2f 44 20 61 72 65 20 | 64 69 66 66 65 72 65 6e |C/D are |differen|
|000055e0| 74 3a 0d 08 14 00 00 00 | 00 00 00 00 07 65 69 67 |t:......|.....eig|
|000055f0| 12 4d 7e 00 12 4d 7e 00 | 00 00 00 00 07 29 3b 0d |.M~..M~.|.....);.|
|00005600| 0c 4e 7e 00 12 4d 7e 00 | 0c 4e 7e 00 00 00 00 00 |.N~..M~.|.N~.....|
|00005610| 00 5c 00 00 25 38 00 00 | 40 90 d6 02 67 53 bb ff |.\..%8..|@...gS..|
|00005620| 77 7a bb ff 70 1a 00 00 | 41 3a 20 6d 65 74 68 6f |wz..p...|A: metho|
|00005630| 64 20 24 6f 62 72 65 66 | 2d 3e 7b 22 66 69 65 6c |d $obref|->{"fiel|
|00005640| 64 6e 61 6d 65 22 7d 0d | 00 38 00 00 25 3c 00 00 |dname"}.|.8..%<..|
|00005650| 40 70 05 03 87 24 bb ff | 97 4b bb ff 70 1a 00 00 |@p...$..|.K..p...|
|00005660| 42 3a 20 28 6d 65 74 68 | 6f 64 20 24 6f 62 72 65 |B: (meth|od $obre|
|00005670| 66 29 2d 3e 7b 22 66 69 | 65 6c 64 6e 61 6d 65 22 |f)->{"fi|eldname"|
|00005680| 7d 0d 00 00 00 3c 00 00 | 25 3c 00 00 40 e0 1c 03 |}....<..|%<..@...|
|00005690| a7 f5 ba ff b7 1c bb ff | 70 1a 00 00 43 3a 20 24 |........|p...C: $|
|000056a0| 6f 62 72 65 66 2d 3e 7b | 22 66 69 65 6c 64 6e 61 |obref->{|"fieldna|
|000056b0| 6d 65 22 7d 2d 3e 6d 65 | 74 68 6f 64 28 29 0d 00 |me"}->me|thod()..|
|000056c0| 00 3c 00 00 a5 64 00 00 | 40 70 05 03 c7 c6 ba ff |.<...d..|@p......|
|000056d0| d7 ed ba ff 70 1a 00 00 | 44 3a 20 6d 65 74 68 6f |....p...|D: metho|
|000056e0| 64 20 7b 24 6f 62 72 65 | 66 2d 3e 7b 22 66 69 65 |d {$obre|f->{"fie|
|000056f0| 6c 64 6e 61 6d 65 22 7d | 7d 0d 08 61 0c 4f 7e 00 |ldname"}|}..a.O~.|
|00005700| 12 4d 7e 00 00 00 00 00 | 08 20 6f 72 12 00 00 00 |.M~.....|. or....|
|00005710| 00 00 00 00 07 74 68 6f | 18 50 7e 00 18 50 7e 00 |.....tho|.P~..P~.|
|00005720| 00 00 00 00 00 64 00 00 | a5 34 00 00 40 00 00 00 |.....d..|.4..@...|
|00005730| 37 b2 ba ff f7 be ba ff | 00 00 00 00 0d 08 74 68 |7.......|......th|
|00005740| 18 51 7e 00 00 00 00 00 | 07 61 67 65 0a 52 7e 00 |.Q~.....|.age.R~.|
|00005750| 0a 52 7e 00 00 00 00 00 | 00 34 00 00 a5 2c 00 00 |.R~.....|.4...,..|
|00005760| 40 f4 e9 00 97 51 ba ff | 47 88 ba ff 18 2b 00 00 |@....Q..|G....+..|
|00005770| 53 75 6d 6d 61 72 79 0d | 08 fc 7d 00 0a 53 7e 00 |Summary.|..}..S~.|
|00005780| 00 00 00 00 00 2c 00 00 | 05 84 00 00 00 a8 86 07 |.....,..|........|
|00005790| 62 fc b9 ff 42 2b ba ff | 20 22 00 00 54 68 61 74 |b...B+..| "..That|
|000057a0| 27 73 20 61 62 6f 75 74 | 20 61 6c 6c 20 74 68 65 |'s about| all the|
|000057b0| 72 65 20 69 73 20 74 6f | 20 69 74 2e 20 20 4e 6f |re is to| it. No|
|000057c0| 77 20 79 6f 75 20 6e 65 | 65 64 20 6a 75 73 74 20 |w you ne|ed just |
|000057d0| 74 6f 20 67 6f 20 6f 66 | 66 20 61 6e 64 20 62 75 |to go of|f and bu|
|000057e0| 79 20 61 20 62 6f 6f 6b | 20 61 62 6f 75 74 20 6f |y a book| about o|
|000057f0| 62 6a 65 63 74 2d 6f 72 | 69 65 6e 74 65 64 20 64 |bject-or|iented d|
|00005800| 65 73 69 67 6e 20 00 00 | 00 84 00 00 a5 70 00 00 |esign ..|.....p..|
|00005810| 40 60 7c 05 3b c4 b9 ff | 1b f3 b9 ff 20 22 00 00 |@`|.;...|.... "..|
|00005820| 6d 65 74 68 6f 64 6f 6c | 6f 67 79 2c 20 61 6e 64 |methodol|ogy, and|
|00005830| 20 62 61 6e 67 20 79 6f | 75 72 20 66 6f 72 65 68 | bang yo|ur foreh|
|00005840| 65 61 64 20 77 69 74 68 | 20 69 74 20 66 6f 72 20 |ead with| it for |
|00005850| 74 68 65 20 6e 65 78 74 | 20 73 69 78 20 6d 6f 6e |the next| six mon|
|00005860| 74 68 73 20 6f 72 20 73 | 6f 2e 0d 07 0a 54 7e 00 |ths or s|o....T~.|
|00005870| 0a 54 7e 00 00 00 00 00 | 00 70 00 00 a5 40 00 00 |.T~.....|.p...@..|
|00005880| 40 3a 13 03 94 4d b9 ff | 44 84 b9 ff 18 2b 00 00 |@:...M..|D....+..|
|00005890| 54 77 6f 2d 50 68 61 73 | 65 64 20 47 61 72 62 61 |Two-Phas|ed Garba|
|000058a0| 67 65 20 43 6f 6c 6c 65 | 63 74 69 6f 6e 0d 08 20 |ge Colle|ction.. |
|000058b0| 0a 55 7e 00 00 00 00 00 | 00 40 00 00 05 84 00 00 |.U~.....|.@......|
|000058c0| 00 54 ce 07 5f f8 b8 ff | 3f 27 b9 ff 20 22 00 00 |.T.._...|?'.. "..|
|000058d0| 46 6f 72 20 6d 6f 73 74 | 20 70 75 72 70 6f 73 65 |For most| purpose|
|000058e0| 73 2c 20 50 65 72 6c 20 | 75 73 65 73 20 61 20 66 |s, Perl |uses a f|
|000058f0| 61 73 74 20 61 6e 64 20 | 73 69 6d 70 6c 65 20 72 |ast and |simple r|
|00005900| 65 66 65 72 65 6e 63 65 | 2d 62 61 73 65 64 20 67 |eference|-based g|
|00005910| 61 72 62 61 67 65 20 63 | 6f 6c 6c 65 63 74 69 6f |arbage c|ollectio|
|00005920| 6e 20 73 79 73 74 65 6d | 2e 20 20 46 6f 72 20 74 |n system|. For t|
|00005930| 68 69 73 20 72 65 61 73 | 6f 6e 2c 20 00 84 00 00 |his reas|on, ....|
|00005940| 05 88 00 00 00 80 ed 07 | 38 c0 b8 ff 18 ef b8 ff |........|8.......|
|00005950| 20 22 00 00 74 68 65 72 | 65 27 73 20 61 6e 20 65 | "..ther|e's an e|
|00005960| 78 74 72 61 20 64 65 72 | 65 66 65 72 65 6e 63 65 |xtra der|eference|
|00005970| 20 67 6f 69 6e 67 20 6f | 6e 20 61 74 20 73 6f 6d | going o|n at som|
|00005980| 65 20 6c 65 76 65 6c 2c | 20 73 6f 20 69 66 20 79 |e level,| so if y|
|00005990| 6f 75 20 68 61 76 65 6e | 27 74 20 62 75 69 6c 74 |ou haven|'t built|
|000059a0| 20 79 6f 75 72 20 50 65 | 72 6c 20 65 78 65 63 75 | your Pe|rl execu|
|000059b0| 74 61 62 6c 65 20 75 73 | 69 6e 67 20 79 6f 75 72 |table us|ing your|
|000059c0| 20 43 20 00 00 88 00 00 | 85 d0 00 00 00 48 ad 07 | C .....|.....H..|
|000059d0| 11 88 b8 ff f1 b6 b8 ff | 20 22 00 00 63 6f 6d 70 |........| "..comp|
|000059e0| 69 6c 65 72 27 73 20 07 | 0e 56 7e 00 0e 56 7e 00 |iler's .|.V~..V~.|
|000059f0| 00 00 00 00 2d 4f 08 00 | 0e 57 7e 00 00 00 00 00 |....-O..|.W~.....|
|00005a00| 20 66 6c 61 67 2c 20 70 | 65 72 66 6f 72 6d 61 6e | flag, p|erforman|
|00005a10| 63 65 20 77 69 6c 6c 20 | 73 75 66 66 65 72 2e 20 |ce will |suffer. |
|00005a20| 20 49 66 20 79 6f 75 20 | 07 00 00 00 11 58 7e 00 | If you |.....X~.|
|00005a30| 11 58 7e 00 00 00 00 00 | 68 61 76 65 08 6c 61 73 |.X~.....|have.las|
|00005a40| 11 00 00 00 00 00 00 00 | 20 62 75 69 6c 74 20 50 |........| built P|
|00005a50| 65 72 6c 20 77 69 74 68 | 20 07 79 6f 0e 59 7e 00 |erl with| .yo.Y~.|
|00005a60| 0e 59 7e 00 00 00 00 00 | 63 63 20 2d 4f 08 65 74 |.Y~.....|cc -O.et|
|00005a70| 0e 5a 7e 00 00 00 00 00 | 2c 20 74 68 65 6e 20 74 |.Z~.....|, then t|
|00005a80| 68 69 73 20 70 72 6f 62 | 61 62 6c 79 20 77 6f 6e |his prob|ably won|
|00005a90| 27 74 20 00 00 d0 00 00 | a5 30 00 00 40 e8 80 00 |'t .....|.0..@...|
|00005aa0| ea 4f b8 ff ca 7e b8 ff | 20 22 00 00 6d 61 74 74 |.O...~..| "..matt|
|00005ab0| 65 72 2e 0d 07 68 65 20 | 14 5b 7e 00 14 5b 7e 00 |er...he |.[~..[~.|
|00005ac0| 00 00 00 00 00 30 00 00 | 05 80 00 00 00 24 c5 07 |.....0..|.....$..|
|00005ad0| 13 e1 b7 ff f3 0f b8 ff | 20 22 00 00 41 20 6d 6f |........| "..A mo|
|00005ae0| 72 65 20 73 65 72 69 6f | 75 73 20 63 6f 6e 63 65 |re serio|us conce|
|00005af0| 72 6e 20 69 73 20 74 68 | 61 74 20 75 6e 72 65 61 |rn is th|at unrea|
|00005b00| 63 68 61 62 6c 65 20 6d | 65 6d 6f 72 79 20 77 69 |chable m|emory wi|
|00005b10| 74 68 20 61 20 6e 6f 6e | 2d 7a 65 72 6f 20 72 65 |th a non|-zero re|
|00005b20| 66 65 72 65 6e 63 65 20 | 63 6f 75 6e 74 20 77 69 |ference |count wi|
|00005b30| 6c 6c 20 6e 6f 74 20 6e | 6f 72 6d 61 6c 6c 79 20 |ll not n|ormally |
|00005b40| 67 65 74 20 00 80 00 00 | a5 6c 00 00 40 50 98 02 |get ....|.l..@P..|
|00005b50| ec a8 b7 ff cc d7 b7 ff | 20 22 00 00 66 72 65 65 |........| "..free|
|00005b60| 64 2e 20 20 54 68 65 72 | 65 66 6f 72 65 2c 20 74 |d. Ther|efore, t|
|00005b70| 68 69 73 20 69 73 20 61 | 20 62 61 64 20 69 64 65 |his is a| bad ide|
|00005b80| 61 3a 0d 08 14 00 00 00 | 00 00 00 00 07 0d 7e 00 |a:......|......~.|
|00005b90| 12 5c 7e 00 12 5c 7e 00 | 00 00 00 00 07 00 00 00 |.\~..\~.|........|
|00005ba0| 0c 5d 7e 00 12 5c 7e 00 | 0c 5d 7e 00 00 00 00 00 |.]~..\~.|.]~.....|
|00005bb0| 00 6c 00 00 25 1c 00 00 | 40 70 17 00 e5 41 b7 ff |.l..%...|@p...A..|
|00005bc0| f5 68 b7 ff 70 1a 00 00 | 7b 0d 00 00 00 1c 00 00 |.h..p...|{.......|
|00005bd0| 25 24 00 00 40 60 ea 00 | 05 13 b7 ff 15 3a b7 ff |%$..@`..|.....:..|
|00005be0| 70 1a 00 00 20 20 20 20 | 6d 79 20 24 61 3b 0d 00 |p... |my $a;..|
|00005bf0| 00 24 00 00 25 28 00 00 | 40 b0 30 01 25 e4 b6 ff |.$..%(..|@.0.%...|
|00005c00| 35 0b b7 ff 70 1a 00 00 | 20 20 20 20 24 61 20 3d |5...p...| $a =|
|00005c10| 20 5c 24 61 3b 0d 00 00 | 00 28 00 00 a5 44 00 00 | \$a;...|.(...D..|
|00005c20| 40 70 17 00 45 b5 b6 ff | 55 dc b6 ff 70 1a 00 00 |@p..E...|U...p...|
|00005c30| 7d 0d 08 00 0c 5e 7e 00 | 12 5c 7e 00 00 00 00 00 |}....^~.|.\~.....|
|00005c40| 08 6d 61 74 12 00 00 00 | 00 00 00 00 07 6e 74 61 |.mat....|.....nta|
|00005c50| 18 5f 7e 00 18 5f 7e 00 | 00 00 00 00 00 44 00 00 |._~.._~.|.....D..|
|00005c60| a5 34 00 00 40 00 00 00 | b5 a0 b6 ff 75 ad b6 ff |.4..@...|....u...|
|00005c70| 00 00 00 00 0d 08 65 72 | 18 60 7e 00 00 00 00 00 |......er|.`~.....|
|00005c80| 07 6c 6c 20 14 61 7e 00 | 14 61 7e 00 00 00 00 00 |.ll .a~.|.a~.....|
|00005c90| 00 34 00 00 85 a8 00 00 | 00 f4 d0 07 e5 47 b6 ff |.4......|.....G..|
|00005ca0| c5 76 b6 ff 20 22 00 00 | 45 76 65 6e 20 74 68 6f |.v.. "..|Even tho|
|00005cb0| 75 67 68 74 20 24 61 20 | 07 16 7e 00 11 62 7e 00 |ught $a |..~..b~.|
|00005cc0| 14 61 7e 00 11 62 7e 00 | 00 00 00 00 73 68 6f 75 |.a~..b~.|....shou|
|00005cd0| 6c 64 08 00 11 00 00 00 | 14 61 7e 00 00 00 00 00 |ld......|.a~.....|
|00005ce0| 20 67 6f 20 61 77 61 79 | 2c 20 69 74 20 63 61 6e | go away|, it can|
|00005cf0| 27 74 2e 20 20 57 68 65 | 6e 20 62 75 69 6c 64 69 |'t. Whe|n buildi|
|00005d00| 6e 67 20 72 65 63 75 72 | 73 69 76 65 20 64 61 74 |ng recur|sive dat|
|00005d10| 61 20 73 74 72 75 63 74 | 75 72 65 73 2c 20 79 6f |a struct|ures, yo|
|00005d20| 75 27 6c 6c 20 68 61 76 | 65 20 74 6f 20 62 72 65 |u'll hav|e to bre|
|00005d30| 61 6b 20 74 68 65 20 00 | 00 a8 00 00 05 88 00 00 |ak the .|........|
|00005d40| 00 a4 c3 07 be 0f b6 ff | 9e 3e b6 ff 20 22 00 00 |........|.>.. "..|
|00005d50| 73 65 6c 66 2d 72 65 66 | 65 72 65 6e 63 65 20 79 |self-ref|erence y|
|00005d60| 6f 75 72 73 65 6c 66 20 | 65 78 70 6c 69 63 69 74 |ourself |explicit|
|00005d70| 6c 79 20 69 66 20 79 6f | 75 20 64 6f 6e 27 74 20 |ly if yo|u don't |
|00005d80| 63 61 72 65 20 74 6f 20 | 6c 65 61 6b 2e 20 20 46 |care to |leak. F|
|00005d90| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 68 65 72 65 |or examp|le, here|
|00005da0| 27 73 20 61 20 73 65 6c | 66 2d 72 65 66 65 72 65 |'s a sel|f-refere|
|00005db0| 6e 74 69 61 6c 20 6e 6f | 64 65 20 73 75 63 68 20 |ntial no|de such |
|00005dc0| 00 88 00 00 a5 7c 00 00 | 40 c0 99 03 97 d7 b5 ff |.....|..|@.......|
|00005dd0| 77 06 b6 ff 20 22 00 00 | 61 73 20 6f 6e 65 20 6d |w... "..|as one m|
|00005de0| 69 67 68 74 20 75 73 65 | 20 69 6e 20 61 20 73 6f |ight use| in a so|
|00005df0| 70 68 69 73 74 69 63 61 | 74 65 64 20 74 72 65 65 |phistica|ted tree|
|00005e00| 20 73 74 72 75 63 74 75 | 72 65 3a 0d 08 61 20 72 | structu|re:..a r|
|00005e10| 14 00 00 00 00 00 00 00 | 07 70 6f 69 12 63 7e 00 |........|.poi.c~.|
|00005e20| 12 63 7e 00 00 00 00 00 | 07 6c 65 0d 0c 64 7e 00 |.c~.....|.le..d~.|
|00005e30| 12 63 7e 00 0c 64 7e 00 | 00 00 00 00 00 7c 00 00 |.c~..d~.|.....|..|
|00005e40| 25 28 00 00 40 20 48 01 | 90 70 b5 ff a0 97 b5 ff |%(..@ H.|.p......|
|00005e50| 70 1a 00 00 73 75 62 20 | 6e 65 77 5f 6e 6f 64 65 |p...sub |new_node|
|00005e60| 20 7b 0d 00 00 28 00 00 | 25 30 00 00 40 30 ec 01 | {...(..|%0..@0..|
|00005e70| b0 41 b5 ff c0 68 b5 ff | 70 1a 00 00 20 20 20 20 |.A...h..|p... |
|00005e80| 6d 79 20 24 73 65 6c 66 | 20 3d 20 73 68 69 66 74 |my $self| = shift|
|00005e90| 3b 0d 00 00 00 30 00 00 | 25 40 00 00 40 c0 4b 03 |;....0..|%@..@.K.|
|00005ea0| d0 12 b5 ff e0 39 b5 ff | 70 1a 00 00 20 20 20 20 |.....9..|p... |
|00005eb0| 6d 79 20 24 63 6c 61 73 | 73 20 3d 20 72 65 66 28 |my $clas|s = ref(|
|00005ec0| 24 73 65 6c 66 29 20 7c | 7c 20 24 73 65 6c 66 3b |$self) ||| $self;|
|00005ed0| 0d 00 00 00 00 40 00 00 | 25 2c 00 00 40 e0 a5 01 |.....@..|%,..@...|
|00005ee0| f0 e3 b4 ff 00 0b b5 ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00005ef0| 6d 79 20 24 6e 6f 64 65 | 20 3d 20 7b 7d 3b 0d 00 |my $node| = {};..|
|00005f00| 00 2c 00 00 25 44 00 00 | 40 d0 ef 03 10 b5 b4 ff |.,..%D..|@.......|
|00005f10| 20 dc b4 ff 70 1a 00 00 | 20 20 20 20 24 6e 6f 64 | ...p...| $nod|
|00005f20| 65 2d 3e 7b 4c 45 46 54 | 7d 20 3d 20 24 6e 6f 64 |e->{LEFT|} = $nod|
|00005f30| 65 2d 3e 7b 52 49 47 48 | 54 7d 20 3d 20 24 6e 6f |e->{RIGH|T} = $no|
|00005f40| 64 65 3b 0d 00 44 00 00 | 25 34 00 00 40 d0 78 02 |de;..D..|%4..@.x.|
|00005f50| 30 86 b4 ff 40 ad b4 ff | 70 1a 00 00 20 20 20 20 |0...@...|p... |
|00005f60| 24 6e 6f 64 65 2d 3e 7b | 44 41 54 41 7d 20 3d 20 |$node->{|DATA} = |
|00005f70| 5b 20 40 5f 20 5d 3b 0d | 00 34 00 00 25 3c 00 00 |[ @_ ];.|.4..%<..|
|00005f80| 40 70 05 03 50 57 b4 ff | 60 7e b4 ff 70 1a 00 00 |@p..PW..|`~..p...|
|00005f90| 20 20 20 20 72 65 74 75 | 72 6e 20 62 6c 65 73 73 | retu|rn bless|
|00005fa0| 20 24 6e 6f 64 65 20 3d | 3e 20 24 63 6c 61 73 73 | $node =|> $class|
|00005fb0| 3b 0d 00 00 00 3c 00 00 | a5 44 00 00 40 70 17 00 |;....<..|.D..@p..|
|00005fc0| 70 28 b4 ff 80 4f b4 ff | 70 1a 00 00 7d 0d 08 05 |p(...O..|p...}...|
|00005fd0| 0c 65 7e 00 12 63 7e 00 | 00 00 00 00 08 00 00 00 |.e~..c~.|........|
|00005fe0| 12 00 00 00 00 00 00 00 | 07 2e 7e 00 18 66 7e 00 |........|..~..f~.|
|00005ff0| 18 66 7e 00 00 00 00 00 | 00 44 00 00 a5 24 00 00 |.f~.....|.D...$..|
|00006000| 40 00 00 00 e0 13 b4 ff | a0 20 b4 ff 00 00 00 00 |@.......|. ......|
|00006010| 0d 08 74 6f 18 67 7e 00 | 00 00 00 00 00 24 00 00 |..to.g~.|.....$..|
|00006020| 05 88 00 00 00 58 c4 07 | 10 bb b3 ff f0 e9 b3 ff |.....X..|........|
|00006030| 20 22 00 00 49 66 20 79 | 6f 75 20 63 72 65 61 74 | "..If y|ou creat|
|00006040| 65 20 6e 6f 64 65 73 20 | 6c 69 6b 65 20 74 68 61 |e nodes |like tha|
|00006050| 74 2c 20 74 68 65 79 20 | 28 63 75 72 72 65 6e 74 |t, they |(current|
|00006060| 6c 79 29 20 77 6f 6e 27 | 74 20 67 6f 20 61 77 61 |ly) won'|t go awa|
|00006070| 79 20 75 6e 6c 65 73 73 | 20 79 6f 75 20 62 72 65 |y unless| you bre|
|00006080| 61 6b 20 74 68 65 69 72 | 20 73 65 6c 66 20 72 65 |ak their| self re|
|00006090| 66 65 72 65 6e 63 65 20 | 79 6f 75 72 73 65 6c 66 |ference |yourself|
|000060a0| 2e 20 20 00 00 88 00 00 | 25 74 00 00 40 a0 6b 06 |. .....|%t..@.k.|
|000060b0| e9 82 b3 ff c9 b1 b3 ff | 20 22 00 00 28 49 6e 20 |........| "..(In |
|000060c0| 6f 74 68 65 72 20 77 6f | 72 64 73 2c 20 74 68 69 |other wo|rds, thi|
|000060d0| 73 20 69 73 20 6e 6f 74 | 20 74 6f 20 62 65 20 63 |s is not| to be c|
|000060e0| 6f 6e 73 74 72 75 65 64 | 20 61 73 20 61 20 66 65 |onstrued| as a fe|
|000060f0| 61 74 75 72 65 2c 20 61 | 6e 64 20 79 6f 75 20 73 |ature, a|nd you s|
|00006100| 68 6f 75 6c 64 6e 27 74 | 20 64 65 70 65 6e 64 20 |houldn't| depend |
|00006110| 6f 6e 20 69 74 2e 29 0d | 00 74 00 00 a5 30 00 00 |on it.).|.t...0..|
|00006120| 40 c4 95 00 12 14 b3 ff | f2 42 b3 ff 20 22 00 00 |@.......|.B.. "..|
|00006130| 41 6c 6d 6f 73 74 2e 0d | 07 65 20 63 14 68 7e 00 |Almost..|.e c.h~.|
|00006140| 14 68 7e 00 00 00 00 00 | 00 30 00 00 01 10 00 00 |.h~.....|.0......|
|00006150| 01 e4 b6 07 00 00 00 00 | 00 10 00 00 02 18 00 00 |........|........|
|00006160| 70 0a 00 00 00 00 00 00 | 14 68 7e 00 00 00 00 00 |p.......|.h~.....|
|00006170| 00 18 00 00 05 90 00 00 | 00 e4 b6 07 5a 46 b1 ff |........|....ZF..|
|00006180| 3a 75 b1 ff 20 22 00 00 | 16 00 00 00 b0 fc 07 00 |:u.. "..|........|
|00006190| 00 00 00 00 57 68 65 6e | 20 61 6e 20 69 6e 74 65 |....When| an inte|
|000061a0| 72 70 72 65 74 65 72 20 | 74 68 72 65 61 64 20 66 |rpreter |thread f|
|000061b0| 69 6e 61 6c 6c 79 20 73 | 68 75 74 73 20 64 6f 77 |inally s|huts dow|
|000061c0| 6e 20 28 75 73 75 61 6c | 6c 79 20 77 68 65 6e 20 |n (usual|ly when |
|000061d0| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 20 65 78 69 |your pro|gram exi|
|000061e0| 74 73 29 2c 20 74 68 65 | 6e 20 61 20 72 61 74 68 |ts), the|n a rath|
|000061f0| 65 72 20 63 6f 73 74 6c | 79 20 62 75 74 20 00 00 |er costl|y but ..|
|00006200| 00 90 00 00 05 84 00 00 | 00 54 d7 07 33 0e b1 ff |........|.T..3...|
|00006210| 13 3d b1 ff 20 22 00 00 | 63 6f 6d 70 6c 65 74 65 |.=.. "..|complete|
|00006220| 20 6d 61 72 6b 2d 61 6e | 64 2d 73 77 65 65 70 20 | mark-an|d-sweep |
|00006230| 73 74 79 6c 65 20 6f 66 | 20 67 61 72 62 61 67 65 |style of| garbage|
|00006240| 20 63 6f 6c 6c 65 63 74 | 69 6f 6e 20 69 73 20 70 | collect|ion is p|
|00006250| 65 72 66 6f 72 6d 65 64 | 2c 20 61 6e 64 20 65 76 |erformed|, and ev|
|00006260| 65 72 79 74 68 69 6e 67 | 20 61 6c 6c 6f 63 61 74 |erything| allocat|
|00006270| 65 64 20 62 79 20 74 68 | 61 74 20 74 68 72 65 61 |ed by th|at threa|
|00006280| 64 20 00 00 00 84 00 00 | 05 80 00 00 00 9c 50 07 |d ......|......P.|
|00006290| 0c d6 b0 ff ec 04 b1 ff | 20 22 00 00 67 65 74 73 |........| "..gets|
|000062a0| 20 64 65 73 74 72 6f 79 | 65 64 2e 20 20 54 68 69 | destroy|ed. Thi|
|000062b0| 73 20 69 73 20 65 73 73 | 65 6e 74 69 61 6c 20 74 |s is ess|ential t|
|000062c0| 6f 20 73 75 70 70 6f 72 | 74 20 50 65 72 6c 20 61 |o suppor|t Perl a|
|000062d0| 73 20 61 6e 20 65 6d 62 | 65 64 64 65 64 20 6f 72 |s an emb|edded or|
|000062e0| 20 61 20 6d 75 6c 74 69 | 74 68 72 65 61 64 61 62 | a multi|threadab|
|000062f0| 6c 65 20 6c 61 6e 67 75 | 61 67 65 2e 20 20 46 6f |le langu|age. Fo|
|00006300| 72 20 00 00 00 80 00 00 | a5 90 00 00 40 04 6f 05 |r ......|....@.o.|
|00006310| e5 9d b0 ff c5 cc b0 ff | 20 22 00 00 65 78 61 6d |........| "..exam|
|00006320| 70 6c 65 2c 20 74 68 69 | 73 20 70 72 6f 67 72 61 |ple, thi|s progra|
|00006330| 6d 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 73 20 50 |m demons|trates P|
|00006340| 65 72 6c 27 73 20 74 77 | 6f 2d 70 68 61 73 65 64 |erl's tw|o-phased|
|00006350| 20 67 61 72 62 61 67 65 | 20 63 6f 6c 6c 65 63 74 | garbage| collect|
|00006360| 69 6f 6e 3a 0d 08 20 6d | 14 00 00 00 00 00 00 00 |ion:.. m|........|
|00006370| 07 49 7e 00 12 69 7e 00 | 12 69 7e 00 00 00 00 00 |.I~..i~.|.i~.....|
|00006380| 07 49 4e 45 0c 6a 7e 00 | 12 69 7e 00 0c 6a 7e 00 |.INE.j~.|.i~..j~.|
|00006390| 00 00 00 00 00 90 00 00 | 25 28 00 00 40 90 5f 01 |........|%(..@._.|
|000063a0| de 36 b0 ff ee 5d b0 ff | 70 1a 00 00 23 21 2f 75 |.6...]..|p...#!/u|
|000063b0| 73 72 2f 62 69 6e 2f 70 | 65 72 6c 0d 00 28 00 00 |sr/bin/p|erl..(..|
|000063c0| a5 54 00 00 40 90 5f 01 | fe 07 b0 ff 0e 2f b0 ff |.T..@._.|...../..|
|000063d0| 70 1a 00 00 70 61 63 6b | 61 67 65 20 53 75 62 74 |p...pack|age Subt|
|000063e0| 6c 65 3b 0d 08 65 63 74 | 0c 6b 7e 00 12 69 7e 00 |le;..ect|.k~..i~.|
|000063f0| 00 00 00 00 08 4a 7e 00 | 12 00 00 00 00 00 00 00 |.....J~.|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.