home *** CD-ROM | disk | FTP | other *** search
Unknown | 1997-07-17 | 52.0 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| 7c cf 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 ||.......|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 07 2e c1 00 00 00 00 00 | 00 18 00 00 85 68 00 00 |........|.....h..|
|00000040| 02 64 d1 06 40 25 ff ff | 60 73 ff ff d8 3b 00 00 |.d..@%..|`s...;..|
|00000050| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 07 2e c1 00 |........|........|
|00000060| 07 2e c1 00 07 2e c1 00 | 00 00 00 00 70 65 72 6c |........|....perl|
|00000070| 74 69 65 20 2d 20 68 6f | 77 20 74 6f 20 68 69 64 |tie - ho|w to hid|
|00000080| 65 20 61 6e 20 6f 62 6a | 65 63 74 20 63 6c 61 73 |e an obj|ect clas|
|00000090| 73 20 69 6e 20 61 20 73 | 69 6d 70 6c 65 20 00 00 |s in a s|imple ..|
|000000a0| 00 68 00 00 a5 40 00 00 | 43 50 27 01 80 c7 fe ff |.h...@..|CP'.....|
|000000b0| a0 15 ff ff d8 3b 00 00 | 76 61 05 05 72 69 61 62 |.....;..|va..riab|
|000000c0| 6c 65 0d 08 07 2e c1 00 | 00 00 00 00 07 04 00 00 |le......|........|
|000000d0| 08 98 7e 00 08 98 7e 00 | 00 00 00 00 05 00 00 00 |..~...~.|........|
|000000e0| 00 40 00 00 a5 50 00 00 | 40 42 1d 01 e0 3a fe ff |.@...P..|@B...:..|
|000000f0| 30 81 fe ff 68 37 00 00 | 53 79 6e 6f 70 73 69 73 |0...h7..|Synopsis|
|00000100| 0d 08 7e 00 08 99 7e 00 | 00 00 00 00 07 05 05 05 |..~...~.|........|
|00000110| 12 9a 7e 00 12 9a 7e 00 | 00 00 00 00 07 00 00 00 |..~...~.|........|
|00000120| 0c 9b 7e 00 12 9a 7e 00 | 0c 9b 7e 00 00 00 00 00 |..~...~.|..~.....|
|00000130| 00 50 00 00 a5 60 00 00 | 40 b0 a7 02 4f ea fd ff |.P...`..|@...O...|
|00000140| 5f 11 fe ff 70 1a 00 00 | 74 69 65 20 56 41 52 49 |_...p...|tie VARI|
|00000150| 41 42 4c 45 2c 20 43 4c | 41 53 53 4e 41 4d 45 2c |ABLE, CL|ASSNAME,|
|00000160| 20 4c 49 53 54 0d 08 73 | 0c 9c 7e 00 12 9a 7e 00 | LIST..s|..~...~.|
|00000170| 00 00 00 00 08 05 05 05 | 12 00 00 00 00 00 00 00 |........|........|
|00000180| 07 00 00 00 18 9d 7e 00 | 18 9d 7e 00 00 00 00 00 |......~.|..~.....|
|00000190| 00 60 00 00 a5 48 00 00 | 40 00 00 00 bf d5 fd ff |.`...H..|@.......|
|000001a0| 7f e2 fd ff 00 00 00 00 | 0d 08 7e 00 18 9e 7e 00 |........|..~...~.|
|000001b0| 00 00 00 00 07 a3 7e 00 | 12 9f 7e 00 12 9f 7e 00 |......~.|..~...~.|
|000001c0| 00 00 00 00 07 a4 7e 00 | 0c a0 7e 00 12 9f 7e 00 |......~.|..~...~.|
|000001d0| 0c a0 7e 00 00 00 00 00 | 00 48 00 00 a5 5c 00 00 |..~.....|.H...\..|
|000001e0| 40 10 1b 02 bf 84 fd ff | cf ab fd ff 70 1a 00 00 |@.......|....p...|
|000001f0| 24 6f 62 6a 65 63 74 20 | 3d 20 74 69 65 64 20 56 |$object |= tied V|
|00000200| 41 52 49 41 42 4c 45 0d | 08 05 05 05 0c a1 7e 00 |ARIABLE.|......~.|
|00000210| 12 9f 7e 00 00 00 00 00 | 08 08 05 05 12 00 00 00 |..~.....|........|
|00000220| 00 00 00 00 07 05 05 05 | 18 a2 7e 00 18 a2 7e 00 |........|..~...~.|
|00000230| 00 00 00 00 00 5c 00 00 | a5 48 00 00 40 00 00 00 |.....\..|.H..@...|
|00000240| 2f 70 fd ff ef 7c fd ff | 00 00 00 00 0d 08 69 6f |/p...|..|......io|
|00000250| 18 a3 7e 00 00 00 00 00 | 07 61 73 65 12 a4 7e 00 |..~.....|.ase..~.|
|00000260| 12 a4 7e 00 00 00 00 00 | 07 20 61 20 0c a5 7e 00 |..~.....|. a ..~.|
|00000270| 12 a4 7e 00 0c a5 7e 00 | 00 00 00 00 00 48 00 00 |..~...~.|.....H..|
|00000280| a5 54 00 00 40 20 48 01 | 2f 1f fd ff 3f 46 fd ff |.T..@ H.|/...?F..|
|00000290| 70 1a 00 00 75 6e 74 69 | 65 20 56 41 52 49 41 42 |p...unti|e VARIAB|
|000002a0| 4c 45 05 0d 08 05 05 05 | 0c a6 7e 00 12 a4 7e 00 |LE......|..~...~.|
|000002b0| 00 00 00 00 08 73 74 61 | 12 00 00 00 00 00 00 00 |.....sta|........|
|000002c0| 07 78 20 64 18 a7 7e 00 | 18 a7 7e 00 00 00 00 00 |.x d..~.|..~.....|
|000002d0| 00 54 00 00 a5 34 00 00 | 40 00 00 00 9f 0a fd ff |.T...4..|@.......|
|000002e0| 5f 17 fd ff 00 00 00 00 | 0d 08 74 68 18 a8 7e 00 |_.......|..th..~.|
|000002f0| 00 00 00 00 07 61 6d 2e | 08 a9 7e 00 08 a9 7e 00 |.....am.|..~...~.|
|00000300| 00 00 00 00 00 34 00 00 | a5 30 00 00 40 a2 5f 01 |.....4..|.0..@._.|
|00000310| 5f 9a fc ff af e0 fc ff | 68 37 00 00 44 65 73 63 |_.......|h7..Desc|
|00000320| 72 69 70 74 69 6f 6e 0d | 08 61 72 74 08 aa 7e 00 |ription.|.art..~.|
|00000330| 00 00 00 00 00 30 00 00 | 05 80 00 00 00 8c 63 07 |.....0..|......c.|
|00000340| fe 41 fc ff de 70 fc ff | 20 22 00 00 50 72 69 6f |.A...p..| "..Prio|
|00000350| 72 20 74 6f 20 72 65 6c | 65 61 73 65 20 35 2e 30 |r to rel|ease 5.0|
|00000360| 20 6f 66 20 50 65 72 6c | 2c 20 61 20 70 72 6f 67 | of Perl|, a prog|
|00000370| 72 61 6d 6d 65 72 20 63 | 6f 75 6c 64 20 75 73 65 |rammer c|ould use|
|00000380| 20 64 62 6d 6f 70 65 6e | 28 29 20 74 6f 20 63 6f | dbmopen|() to co|
|00000390| 6e 6e 65 63 74 20 61 6e | 20 6f 6e 2d 64 69 73 6b |nnect an| on-disk|
|000003a0| 20 64 61 74 61 62 61 73 | 65 20 69 6e 20 74 68 65 | databas|e in the|
|000003b0| 20 00 00 00 00 80 00 00 | 05 7c 00 00 00 e4 9e 07 | .......|.|......|
|000003c0| d7 09 fc ff b7 38 fc ff | 20 22 00 00 73 74 61 6e |.....8..| "..stan|
|000003d0| 64 61 72 64 20 55 6e 69 | 78 20 64 62 6d 28 33 78 |dard Uni|x dbm(3x|
|000003e0| 29 20 66 6f 72 6d 61 74 | 20 6d 61 67 69 63 61 6c |) format| magical|
|000003f0| 6c 79 20 74 6f 20 61 20 | 25 48 41 53 48 20 69 6e |ly to a |%HASH in|
|00000400| 20 74 68 65 69 72 20 70 | 72 6f 67 72 61 6d 2e 20 | their p|rogram. |
|00000410| 20 48 6f 77 65 76 65 72 | 2c 20 74 68 65 69 72 20 | However|, their |
|00000420| 50 65 72 6c 20 77 61 73 | 20 65 69 74 68 65 72 20 |Perl was| either |
|00000430| 00 7c 00 00 05 84 00 00 | 00 40 a6 07 b0 d1 fb ff |.|......|.@......|
|00000440| 90 00 fc ff 20 22 00 00 | 62 75 69 6c 74 20 77 69 |.... "..|built wi|
|00000450| 74 68 20 6f 6e 65 20 70 | 61 72 74 69 63 75 6c 61 |th one p|articula|
|00000460| 72 20 64 62 6d 20 6c 69 | 62 72 61 72 79 20 6f 72 |r dbm li|brary or|
|00000470| 20 61 6e 6f 74 68 65 72 | 2c 20 62 75 74 20 6e 6f | another|, but no|
|00000480| 74 20 62 6f 74 68 2c 20 | 61 6e 64 20 79 6f 75 20 |t both, |and you |
|00000490| 63 6f 75 6c 64 6e 27 74 | 20 65 78 74 65 6e 64 20 |couldn't| extend |
|000004a0| 74 68 69 73 20 6d 65 63 | 68 61 6e 69 73 6d 20 74 |this mec|hanism t|
|000004b0| 6f 20 00 00 00 84 00 00 | 25 40 00 00 40 b4 ac 02 |o ......|%@..@...|
|000004c0| 89 99 fb ff 69 c8 fb ff | 20 22 00 00 6f 74 68 65 |....i...| "..othe|
|000004d0| 72 20 70 61 63 6b 61 67 | 65 73 20 6f 72 20 74 79 |r packag|es or ty|
|000004e0| 70 65 73 20 6f 66 20 76 | 61 72 69 61 62 6c 65 73 |pes of v|ariables|
|000004f0| 2e 0d 00 00 00 40 00 00 | 25 28 00 00 40 a8 05 01 |.....@..|%(..@...|
|00000500| b2 2a fb ff 92 59 fb ff | 20 22 00 00 4e 6f 77 20 |.*...Y..| "..Now |
|00000510| 79 6f 75 20 63 61 6e 2e | 0d 00 00 00 00 28 00 00 |you can.|.....(..|
|00000520| 05 84 00 00 00 ac 79 07 | db bb fa ff bb ea fa ff |......y.|........|
|00000530| 20 22 00 00 54 68 65 20 | 74 69 65 28 29 20 66 75 | "..The |tie() fu|
|00000540| 6e 63 74 69 6f 6e 20 62 | 69 6e 64 73 20 61 20 76 |nction b|inds a v|
|00000550| 61 72 69 61 62 6c 65 20 | 74 6f 20 61 20 63 6c 61 |ariable |to a cla|
|00000560| 73 73 20 28 70 61 63 6b | 61 67 65 29 20 74 68 61 |ss (pack|age) tha|
|00000570| 74 20 77 69 6c 6c 20 70 | 72 6f 76 69 64 65 20 74 |t will p|rovide t|
|00000580| 68 65 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |he imple|mentatio|
|00000590| 6e 20 66 6f 72 20 61 63 | 63 65 73 73 20 00 00 00 |n for ac|cess ...|
|000005a0| 00 84 00 00 05 80 00 00 | 00 60 92 07 b4 83 fa ff |........|.`......|
|000005b0| 94 b2 fa ff 20 22 00 00 | 6d 65 74 68 6f 64 73 20 |.... "..|methods |
|000005c0| 66 6f 72 20 74 68 61 74 | 20 76 61 72 69 61 62 6c |for that| variabl|
|000005d0| 65 2e 20 20 4f 6e 63 65 | 20 74 68 69 73 20 6d 61 |e. Once| this ma|
|000005e0| 67 69 63 20 68 61 73 20 | 62 65 65 6e 20 70 65 72 |gic has |been per|
|000005f0| 66 6f 72 6d 65 64 2c 20 | 61 63 63 65 73 73 69 6e |formed, |accessin|
|00000600| 67 20 61 20 74 69 65 64 | 20 76 61 72 69 61 62 6c |g a tied| variabl|
|00000610| 65 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |e automa|tically |
|00000620| 00 80 00 00 05 88 00 00 | 00 44 e7 07 8d 4b fa ff |........|.D...K..|
|00000630| 6d 7a fa ff 20 22 00 00 | 74 72 69 67 67 65 72 73 |mz.. "..|triggers|
|00000640| 20 6d 65 74 68 6f 64 20 | 63 61 6c 6c 73 20 69 6e | method |calls in|
|00000650| 20 74 68 65 20 70 72 6f | 70 65 72 20 63 6c 61 73 | the pro|per clas|
|00000660| 73 2e 20 20 41 6c 6c 20 | 6f 66 20 74 68 65 20 63 |s. All |of the c|
|00000670| 6f 6d 70 6c 65 78 69 74 | 79 20 6f 66 20 74 68 65 |omplexit|y of the|
|00000680| 20 63 6c 61 73 73 20 69 | 73 20 68 69 64 64 65 6e | class i|s hidden|
|00000690| 20 62 65 68 69 6e 64 20 | 6d 61 67 69 63 20 6d 65 | behind |magic me|
|000006a0| 74 68 6f 64 73 20 00 00 | 00 88 00 00 05 80 00 00 |thods ..|........|
|000006b0| 00 78 98 07 66 13 fa ff | 46 42 fa ff 20 22 00 00 |.x..f...|FB.. "..|
|000006c0| 63 61 6c 6c 73 2e 20 20 | 54 68 65 20 6d 65 74 68 |calls. |The meth|
|000006d0| 6f 64 20 6e 61 6d 65 73 | 20 61 72 65 20 69 6e 20 |od names| are in |
|000006e0| 41 4c 4c 20 43 41 50 53 | 2c 20 77 68 69 63 68 20 |ALL CAPS|, which |
|000006f0| 69 73 20 61 20 63 6f 6e | 76 65 6e 74 69 6f 6e 20 |is a con|vention |
|00000700| 74 68 61 74 20 50 65 72 | 6c 20 75 73 65 73 20 74 |that Per|l uses t|
|00000710| 6f 20 69 6e 64 69 63 61 | 74 65 20 74 68 61 74 20 |o indica|te that |
|00000720| 74 68 65 79 27 72 65 20 | 00 80 00 00 25 70 00 00 |they're |....%p..|
|00000730| 40 fc 18 06 3f db f9 ff | 1f 0a fa ff 20 22 00 00 |@...?...|.... "..|
|00000740| 63 61 6c 6c 65 64 20 69 | 6d 70 6c 69 63 69 74 6c |called i|mplicitl|
|00000750| 79 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 65 78 |y rather| than ex|
|00000760| 70 6c 69 63 69 74 6c 79 | 2d 2d 6a 75 73 74 20 6c |plicitly|--just l|
|00000770| 69 6b 65 20 74 68 65 20 | 42 45 47 49 4e 28 29 20 |ike the |BEGIN() |
|00000780| 61 6e 64 20 45 4e 44 28 | 29 20 66 75 6e 63 74 69 |and END(|) functi|
|00000790| 6f 6e 73 2e 0d 00 00 00 | 00 70 00 00 85 b0 00 00 |ons.....|.p......|
|000007a0| 00 20 90 07 68 6c f9 ff | 48 9b f9 ff 20 22 00 00 |. ..hl..|H... "..|
|000007b0| 49 6e 20 74 68 65 20 74 | 69 65 28 29 20 63 61 6c |In the t|ie() cal|
|000007c0| 6c 2c 20 07 0e ab 7e 00 | 0e ab 7e 00 00 00 00 00 |l, ...~.|..~.....|
|000007d0| 56 41 52 49 41 42 4c 45 | 08 74 69 6f 0e ac 7e 00 |VARIABLE|.tio..~.|
|000007e0| 00 00 00 00 20 69 73 20 | 74 68 65 20 6e 61 6d 65 |.... is |the name|
|000007f0| 20 6f 66 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | of the |variable|
|00000800| 20 74 6f 20 62 65 20 65 | 6e 63 68 61 6e 74 65 64 | to be e|nchanted|
|00000810| 2e 20 20 07 0e ad 7e 00 | 0e ad 7e 00 00 00 00 00 |. ...~.|..~.....|
|00000820| 43 4c 41 53 53 4e 41 4d | 45 08 00 00 0e ae 7e 00 |CLASSNAM|E.....~.|
|00000830| 00 00 00 00 20 69 73 20 | 74 68 65 20 6e 61 6d 65 |.... is |the name|
|00000840| 20 6f 66 20 61 20 00 00 | 00 b0 00 00 85 9c 00 00 | of a ..|........|
|00000850| 00 c0 98 07 41 34 f9 ff | 21 63 f9 ff 20 22 00 00 |....A4..|!c.. "..|
|00000860| 63 6c 61 73 73 20 69 6d | 70 6c 65 6d 65 6e 74 69 |class im|plementi|
|00000870| 6e 67 20 6f 62 6a 65 63 | 74 73 20 6f 66 20 74 68 |ng objec|ts of th|
|00000880| 65 20 63 6f 72 72 65 63 | 74 20 74 79 70 65 2e 20 |e correc|t type. |
|00000890| 20 41 6e 79 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 | Any add|itional |
|000008a0| 61 72 67 75 6d 65 6e 74 | 73 20 69 6e 20 74 68 65 |argument|s in the|
|000008b0| 20 07 00 00 0e af 7e 00 | 0e af 7e 00 00 00 00 00 | .....~.|..~.....|
|000008c0| 4c 49 53 54 08 20 61 20 | 0e b0 7e 00 00 00 00 00 |LIST. a |..~.....|
|000008d0| 20 61 72 65 20 70 61 73 | 73 65 64 20 74 6f 20 74 | are pas|sed to t|
|000008e0| 68 65 20 00 00 9c 00 00 | 05 78 00 00 00 78 8f 07 |he .....|.x...x..|
|000008f0| 1a fc f8 ff fa 2a f9 ff | 20 22 00 00 61 70 70 72 |.....*..| "..appr|
|00000900| 6f 70 72 69 61 74 65 20 | 63 6f 6e 73 74 72 75 63 |opriate |construc|
|00000910| 74 6f 72 20 6d 65 74 68 | 6f 64 20 66 6f 72 20 74 |tor meth|od for t|
|00000920| 68 61 74 20 63 6c 61 73 | 73 2d 2d 6d 65 61 6e 69 |hat clas|s--meani|
|00000930| 6e 67 20 54 49 45 53 43 | 41 4c 41 52 28 29 2c 20 |ng TIESC|ALAR(), |
|00000940| 54 49 45 41 52 52 41 59 | 28 29 2c 20 54 49 45 48 |TIEARRAY|(), TIEH|
|00000950| 41 53 48 28 29 2c 20 6f | 72 20 00 00 00 78 00 00 |ASH(), o|r ...x..|
|00000960| 05 80 00 00 00 4c ac 07 | f3 c3 f8 ff d3 f2 f8 ff |.....L..|........|
|00000970| 20 22 00 00 54 49 45 48 | 41 4e 44 4c 45 28 29 2e | "..TIEH|ANDLE().|
|00000980| 20 20 28 54 79 70 69 63 | 61 6c 6c 79 20 74 68 65 | (Typic|ally the|
|00000990| 73 65 20 61 72 65 20 61 | 72 67 75 6d 65 6e 74 73 |se are a|rguments|
|000009a0| 20 73 75 63 68 20 61 73 | 20 6d 69 67 68 74 20 62 | such as| might b|
|000009b0| 65 20 70 61 73 73 65 64 | 20 74 6f 20 74 68 65 20 |e passed| to the |
|000009c0| 64 62 6d 69 6e 69 74 28 | 29 20 66 75 6e 63 74 69 |dbminit(|) functi|
|000009d0| 6f 6e 20 6f 66 20 43 2e | 29 20 00 00 00 80 00 00 |on of C.|) ......|
|000009e0| 05 88 00 00 00 1c ee 07 | cc 8b f8 ff ac ba f8 ff |........|........|
|000009f0| 20 22 00 00 54 68 65 20 | 6f 62 6a 65 63 74 20 72 | "..The |object r|
|00000a00| 65 74 75 72 6e 65 64 20 | 62 79 20 74 68 65 20 22 |eturned |by the "|
|00000a10| 6e 65 77 22 20 6d 65 74 | 68 6f 64 20 69 73 20 61 |new" met|hod is a|
|00000a20| 6c 73 6f 20 72 65 74 75 | 72 6e 65 64 20 62 79 20 |lso retu|rned by |
|00000a30| 74 68 65 20 74 69 65 28 | 29 20 66 75 6e 63 74 69 |the tie(|) functi|
|00000a40| 6f 6e 2c 20 77 68 69 63 | 68 20 77 6f 75 6c 64 20 |on, whic|h would |
|00000a50| 62 65 20 75 73 65 66 75 | 6c 20 69 66 20 79 6f 75 |be usefu|l if you|
|00000a60| 20 00 00 00 00 88 00 00 | 85 98 00 00 00 fc a4 07 | .......|........|
|00000a70| a5 53 f8 ff 85 82 f8 ff | 20 22 00 00 77 61 6e 74 |.S......| "..want|
|00000a80| 65 64 20 74 6f 20 61 63 | 63 65 73 73 20 6f 74 68 |ed to ac|cess oth|
|00000a90| 65 72 20 6d 65 74 68 6f | 64 73 20 69 6e 20 07 69 |er metho|ds in .i|
|00000aa0| 0e b1 7e 00 0e b1 7e 00 | 00 00 00 00 43 4c 41 53 |..~...~.|....CLAS|
|00000ab0| 53 4e 41 4d 45 08 61 6d | 0e b2 7e 00 00 00 00 00 |SNAME.am|..~.....|
|00000ac0| 2e 20 28 59 6f 75 20 64 | 6f 6e 27 74 20 61 63 74 |. (You d|on't act|
|00000ad0| 75 61 6c 6c 79 20 68 61 | 76 65 20 74 6f 20 72 65 |ually ha|ve to re|
|00000ae0| 74 75 72 6e 20 61 20 72 | 65 66 65 72 65 6e 63 65 |turn a r|eference|
|00000af0| 20 74 6f 20 61 20 72 69 | 67 68 74 20 00 98 00 00 | to a ri|ght ....|
|00000b00| 85 98 00 00 00 74 7b 07 | 7e 1b f8 ff 5e 4a f8 ff |.....t{.|~...^J..|
|00000b10| 20 22 00 00 22 74 79 70 | 65 22 20 28 65 2e 67 2e | ".."typ|e" (e.g.|
|00000b20| 2c 20 48 41 53 48 20 6f | 72 20 07 00 0e b3 7e 00 |, HASH o|r ....~.|
|00000b30| 0e b3 7e 00 00 00 00 00 | 43 4c 41 53 53 4e 41 4d |..~.....|CLASSNAM|
|00000b40| 45 08 2c 20 0e b4 7e 00 | 00 00 00 00 29 20 73 6f |E., ..~.|....) so|
|00000b50| 20 6c 6f 6e 67 20 61 73 | 20 69 74 27 73 20 61 20 | long as| it's a |
|00000b60| 70 72 6f 70 65 72 6c 79 | 20 62 6c 65 73 73 65 64 |properly| blessed|
|00000b70| 20 6f 62 6a 65 63 74 2e | 29 20 20 59 6f 75 20 63 | object.|) You c|
|00000b80| 61 6e 20 61 6c 73 6f 20 | 72 65 74 72 69 65 76 65 |an also |retrieve|
|00000b90| 20 61 20 00 00 98 00 00 | 25 58 00 00 40 d8 53 04 | a .....|%X..@.S.|
|00000ba0| 57 e3 f7 ff 37 12 f8 ff | 20 22 00 00 72 65 66 65 |W...7...| "..refe|
|00000bb0| 72 65 6e 63 65 20 74 6f | 20 74 68 65 20 75 6e 64 |rence to| the und|
|00000bc0| 65 72 6c 79 69 6e 67 20 | 6f 62 6a 65 63 74 20 75 |erlying |object u|
|00000bd0| 73 69 6e 67 20 74 68 65 | 20 74 69 65 64 28 29 20 |sing the| tied() |
|00000be0| 66 75 6e 63 74 69 6f 6e | 2e 0d 00 00 00 58 00 00 |function|.....X..|
|00000bf0| 85 ac 00 00 00 10 7f 07 | 80 74 f7 ff 60 a3 f7 ff |........|.t..`...|
|00000c00| 20 22 00 00 55 6e 6c 69 | 6b 65 20 64 62 6d 6f 70 | "..Unli|ke dbmop|
|00000c10| 65 6e 28 29 2c 20 74 68 | 65 20 74 69 65 28 29 20 |en(), th|e tie() |
|00000c20| 66 75 6e 63 74 69 6f 6e | 20 77 69 6c 6c 20 6e 6f |function| will no|
|00000c30| 74 20 07 65 0e b5 7e 00 | 0e b5 7e 00 00 00 00 00 |t .e..~.|..~.....|
|00000c40| 75 73 65 08 0e b6 7e 00 | 00 00 00 00 20 6f 72 20 |use...~.|.... or |
|00000c50| 07 64 21 0d 0e b7 7e 00 | 0e b7 7e 00 00 00 00 00 |.d!...~.|..~.....|
|00000c60| 72 65 71 75 69 72 65 08 | 0e b8 7e 00 00 00 00 00 |require.|..~.....|
|00000c70| 20 61 20 6d 6f 64 75 6c | 65 20 66 6f 72 20 79 6f | a modul|e for yo|
|00000c80| 75 2d 2d 79 6f 75 20 6e | 65 65 64 20 74 6f 20 64 |u--you n|eed to d|
|00000c90| 6f 20 74 68 61 74 20 00 | 00 ac 00 00 a5 3c 00 00 |o that .|.....<..|
|00000ca0| 40 24 62 01 59 3c f7 ff | 39 6b f7 ff 20 22 00 00 |@$b.Y<..|9k.. "..|
|00000cb0| 65 78 70 6c 69 63 69 74 | 6c 79 20 79 6f 75 72 73 |explicit|ly yours|
|00000cc0| 65 6c 66 2e 0d 07 68 65 | 0a b9 7e 00 0a b9 7e 00 |elf...he|..~...~.|
|00000cd0| 00 00 00 00 00 3c 00 00 | a5 30 00 00 40 3c 48 01 |.....<..|.0..@<H.|
|00000ce0| b2 c5 f6 ff 62 fc f6 ff | 18 2b 00 00 54 79 69 6e |....b...|.+..Tyin|
|00000cf0| 67 20 53 63 61 6c 61 72 | 73 0d 08 6d 0a ba 7e 00 |g Scalar|s..m..~.|
|00000d00| 00 00 00 00 00 30 00 00 | 05 7c 00 00 00 6c b9 07 |.....0..|.|...l..|
|00000d10| 7d 70 f6 ff 5d 9f f6 ff | 20 22 00 00 41 20 63 6c |}p..]...| "..A cl|
|00000d20| 61 73 73 20 69 6d 70 6c | 65 6d 65 6e 74 69 6e 67 |ass impl|ementing|
|00000d30| 20 61 20 74 69 65 64 20 | 73 63 61 6c 61 72 20 73 | a tied |scalar s|
|00000d40| 68 6f 75 6c 64 20 64 65 | 66 69 6e 65 20 74 68 65 |hould de|fine the|
|00000d50| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 74 68 6f | followi|ng metho|
|00000d60| 64 73 3a 20 54 49 45 53 | 43 41 4c 41 52 2c 20 46 |ds: TIES|CALAR, F|
|00000d70| 45 54 43 48 2c 20 53 54 | 4f 52 45 2c 20 00 00 00 |ETCH, ST|ORE, ...|
|00000d80| 00 7c 00 00 a5 3c 00 00 | 40 38 d5 01 56 38 f6 ff |.|...<..|@8..V8..|
|00000d90| 36 67 f6 ff 20 22 00 00 | 61 6e 64 20 70 6f 73 73 |6g.. "..|and poss|
|00000da0| 69 62 6c 79 20 44 45 53 | 54 52 4f 59 2e 0d 07 73 |ibly DES|TROY...s|
|00000db0| 14 bb 7e 00 14 bb 7e 00 | 00 00 00 00 00 3c 00 00 |..~...~.|.....<..|
|00000dc0| 05 88 00 00 00 78 a1 07 | 7f c9 f5 ff 5f f8 f5 ff |.....x..|...._...|
|00000dd0| 20 22 00 00 4c 65 74 27 | 73 20 6c 6f 6f 6b 20 61 | "..Let'|s look a|
|00000de0| 74 20 65 61 63 68 20 69 | 6e 20 74 75 72 6e 2c 20 |t each i|n turn, |
|00000df0| 75 73 69 6e 67 20 61 73 | 20 61 6e 20 65 78 61 6d |using as| an exam|
|00000e00| 70 6c 65 20 61 20 74 69 | 65 20 63 6c 61 73 73 20 |ple a ti|e class |
|00000e10| 66 6f 72 20 73 63 61 6c | 61 72 73 20 74 68 61 74 |for scal|ars that|
|00000e20| 20 61 6c 6c 6f 77 73 20 | 74 68 65 20 75 73 65 72 | allows |the user|
|00000e30| 20 74 6f 20 64 6f 20 73 | 6f 6d 65 74 68 69 6e 67 | to do s|omething|
|00000e40| 20 00 00 00 00 88 00 00 | a5 4c 00 00 40 58 53 00 | .......|.L..@XS.|
|00000e50| 58 91 f5 ff 38 c0 f5 ff | 20 22 00 00 6c 69 6b 65 |X...8...| "..like|
|00000e60| 3a 0d 08 53 14 00 00 00 | 00 00 00 00 07 c8 7e 00 |:..S....|......~.|
|00000e70| 12 bc 7e 00 12 bc 7e 00 | 00 00 00 00 07 c8 7e 00 |..~...~.|......~.|
|00000e80| 0c bd 7e 00 12 bc 7e 00 | 0c bd 7e 00 00 00 00 00 |..~...~.|..~.....|
|00000e90| 00 4c 00 00 25 3c 00 00 | 40 e0 1c 03 51 2a f5 ff |.L..%<..|@...Q*..|
|00000ea0| 61 51 f5 ff 70 1a 00 00 | 74 69 65 20 24 68 69 73 |aQ..p...|tie $his|
|00000eb0| 5f 73 70 65 65 64 2c 20 | 27 4e 69 63 65 27 2c 20 |_speed, |'Nice', |
|00000ec0| 67 65 74 70 70 69 64 28 | 29 3b 0d 00 00 3c 00 00 |getppid(|);...<..|
|00000ed0| a5 60 00 00 40 d0 78 02 | 71 fb f4 ff 81 22 f5 ff |.`..@.x.|q...."..|
|00000ee0| 70 1a 00 00 74 69 65 20 | 24 6d 79 5f 73 70 65 65 |p...tie |$my_spee|
|00000ef0| 64 2c 20 20 27 4e 69 63 | 65 27 2c 20 24 24 3b 0d |d, 'Nic|e', $$;.|
|00000f00| 08 20 61 6e 0c be 7e 00 | 12 bc 7e 00 00 00 00 00 |. an..~.|..~.....|
|00000f10| 08 20 69 74 12 00 00 00 | 00 00 00 00 07 6e 67 2e |. it....|.....ng.|
|00000f20| 18 bf 7e 00 18 bf 7e 00 | 00 00 00 00 00 60 00 00 |..~...~.|.....`..|
|00000f30| a5 24 00 00 40 00 00 00 | e1 e6 f4 ff a1 f3 f4 ff |.$..@...|........|
|00000f40| 00 00 00 00 0d 08 7e 00 | 18 c0 7e 00 00 00 00 00 |......~.|..~.....|
|00000f50| 00 24 00 00 05 88 00 00 | 00 64 f1 07 11 8e f4 ff |.$......|.d......|
|00000f60| f1 bc f4 ff 20 22 00 00 | 41 6e 64 20 6e 6f 77 20 |.... "..|And now |
|00000f70| 77 68 65 6e 65 76 65 72 | 20 65 69 74 68 65 72 20 |whenever| either |
|00000f80| 6f 66 20 74 68 6f 73 65 | 20 76 61 72 69 61 62 6c |of those| variabl|
|00000f90| 65 73 20 69 73 20 61 63 | 63 65 73 73 65 64 2c 20 |es is ac|cessed, |
|00000fa0| 69 74 73 20 63 75 72 72 | 65 6e 74 20 73 79 73 74 |its curr|ent syst|
|00000fb0| 65 6d 20 70 72 69 6f 72 | 69 74 79 20 69 73 20 72 |em prior|ity is r|
|00000fc0| 65 74 72 69 65 76 65 64 | 20 61 6e 64 20 72 65 74 |etrieved| and ret|
|00000fd0| 75 72 6e 65 64 2e 20 20 | 00 88 00 00 25 5c 00 00 |urned. |....%\..|
|00000fe0| 40 8c a2 04 ea 55 f4 ff | ca 84 f4 ff 20 22 00 00 |@....U..|.... "..|
|00000ff0| 49 66 20 74 68 6f 73 65 | 20 76 61 72 69 61 62 6c |If those| variabl|
|00001000| 65 73 20 61 72 65 20 73 | 65 74 2c 20 74 68 65 6e |es are s|et, then|
|00001010| 20 74 68 65 20 70 72 6f | 63 65 73 73 27 73 20 70 | the pro|cess's p|
|00001020| 72 69 6f 72 69 74 79 20 | 69 73 20 63 68 61 6e 67 |riority |is chang|
|00001030| 65 64 21 0d 00 5c 00 00 | 01 10 00 00 00 18 26 07 |ed!..\..|......&.|
|00001040| 00 00 00 00 00 10 00 00 | 02 14 00 00 64 02 00 00 |........|....d...|
|00001050| 00 00 00 00 00 00 00 00 | 00 14 00 00 85 9c 00 00 |........|........|
|00001060| 00 18 26 07 cf 44 f2 ff | af 73 f2 ff 20 22 00 00 |..&..D..|.s.. "..|
|00001070| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 57 65 27 6c |........|....We'l|
|00001080| 6c 20 75 73 65 20 4a 61 | 72 6b 6b 6f 20 48 69 65 |l use Ja|rkko Hie|
|00001090| 74 61 6e 69 65 6d 69 20 | 3c 07 72 63 06 c1 7e 00 |taniemi |<.rc..~.|
|000010a0| 06 c1 7e 00 00 00 00 00 | 6a 68 69 40 69 6b 69 2e |..~.....|jhi@iki.|
|000010b0| 66 69 08 74 06 c2 7e 00 | 00 00 00 00 3e 27 73 20 |fi.t..~.|....>'s |
|000010c0| 42 53 44 3a 3a 52 65 73 | 6f 75 72 63 65 20 63 6c |BSD::Res|ource cl|
|000010d0| 61 73 73 20 28 6e 6f 74 | 20 69 6e 63 6c 75 64 65 |ass (not| include|
|000010e0| 64 29 20 74 6f 20 61 63 | 63 65 73 73 20 74 68 65 |d) to ac|cess the|
|000010f0| 20 00 00 00 00 9c 00 00 | 05 78 00 00 00 c4 ac 07 | .......|.x......|
|00001100| a8 0c f2 ff 88 3b f2 ff | 20 22 00 00 50 52 49 4f |.....;..| "..PRIO|
|00001110| 5f 50 52 4f 43 45 53 53 | 2c 20 50 52 49 4f 5f 4d |_PROCESS|, PRIO_M|
|00001120| 49 4e 2c 20 61 6e 64 20 | 50 52 49 4f 5f 4d 41 58 |IN, and |PRIO_MAX|
|00001130| 20 63 6f 6e 73 74 61 6e | 74 73 20 66 72 6f 6d 20 | constan|ts from |
|00001140| 79 6f 75 72 20 73 79 73 | 74 65 6d 2c 20 61 73 20 |your sys|tem, as |
|00001150| 77 65 6c 6c 20 61 73 20 | 74 68 65 20 67 65 74 70 |well as |the getp|
|00001160| 72 69 6f 72 69 74 79 28 | 29 20 00 00 00 78 00 00 |riority(|) ...x..|
|00001170| a5 7c 00 00 40 48 a1 04 | 81 d4 f1 ff 61 03 f2 ff |.|..@H..|....a...|
|00001180| 20 22 00 00 61 6e 64 20 | 73 65 74 70 72 69 6f 72 | "..and |setprior|
|00001190| 69 74 79 28 29 20 73 79 | 73 74 65 6d 20 63 61 6c |ity() sy|stem cal|
|000011a0| 6c 73 2e 20 20 48 65 72 | 65 27 73 20 74 68 65 20 |ls. Her|e's the |
|000011b0| 70 72 65 61 6d 62 6c 65 | 20 6f 66 20 74 68 65 20 |preamble| of the |
|000011c0| 63 6c 61 73 73 2e 0d 07 | 12 c3 7e 00 12 c3 7e 00 |class...|..~...~.|
|000011d0| 00 00 00 00 07 73 79 73 | 0c c4 7e 00 12 c3 7e 00 |.....sys|..~...~.|
|000011e0| 0c c4 7e 00 00 00 00 00 | 00 7c 00 00 25 28 00 00 |..~.....|.|..%(..|
|000011f0| 40 b0 30 01 7a 6d f1 ff | 8a 94 f1 ff 70 1a 00 00 |@.0.zm..|....p...|
|00001200| 70 61 63 6b 61 67 65 20 | 4e 69 63 65 3b 0d 00 00 |package |Nice;...|
|00001210| 00 28 00 00 25 24 00 00 | 40 f0 d2 00 9a 3e f1 ff |.(..%$..|@....>..|
|00001220| aa 65 f1 ff 70 1a 00 00 | 75 73 65 20 43 61 72 70 |.e..p...|use Carp|
|00001230| 3b 0d 00 00 00 24 00 00 | 25 2c 00 00 40 e0 a5 01 |;....$..|%,..@...|
|00001240| ba 0f f1 ff ca 36 f1 ff | 70 1a 00 00 75 73 65 20 |.....6..|p...use |
|00001250| 42 53 44 3a 3a 52 65 73 | 6f 75 72 63 65 3b 0d 00 |BSD::Res|ource;..|
|00001260| 00 2c 00 00 25 24 00 00 | 40 d0 01 01 da e0 f0 ff |.,..%$..|@.......|
|00001270| ea 07 f1 ff 70 1a 00 00 | 75 73 65 20 73 74 72 69 |....p...|use stri|
|00001280| 63 74 3b 0d 00 24 00 00 | a5 70 00 00 40 b0 1e 04 |ct;..$..|.p..@...|
|00001290| fa b1 f0 ff 0a d9 f0 ff | 70 1a 00 00 24 4e 69 63 |........|p...$Nic|
|000012a0| 65 3a 3a 44 45 42 55 47 | 20 3d 20 30 20 75 6e 6c |e::DEBUG| = 0 unl|
|000012b0| 65 73 73 20 64 65 66 69 | 6e 65 64 20 24 4e 69 63 |ess defi|ned $Nic|
|000012c0| 65 3a 3a 44 45 42 55 47 | 3b 0d 08 61 0c c5 7e 00 |e::DEBUG|;..a..~.|
|000012d0| 12 c3 7e 00 00 00 00 00 | 08 69 73 20 12 00 00 00 |..~.....|.is ....|
|000012e0| 00 00 00 00 07 6d 6f 70 | 18 c6 7e 00 18 c6 7e 00 |.....mop|..~...~.|
|000012f0| 00 00 00 00 00 70 00 00 | a5 48 00 00 40 00 00 00 |.....p..|.H..@...|
|00001300| 6a 9d f0 ff 2a aa f0 ff | 00 00 00 00 0d 08 20 77 |j...*...|...... w|
|00001310| 18 c7 7e 00 00 00 00 00 | 07 20 73 6f 13 c8 7e 00 |..~.....|. so..~.|
|00001320| 13 c8 7e 00 00 00 00 00 | 07 49 74 20 09 c9 7e 00 |..~.....|.It ..~.|
|00001330| 13 c8 7e 00 09 c9 7e 00 | 00 00 00 00 00 48 00 00 |..~...~.|.....H..|
|00001340| a5 40 00 00 40 90 6a 02 | 9a 44 f0 ff 7a 73 f0 ff |.@..@.j.|.D..zs..|
|00001350| 28 23 00 00 54 49 45 53 | 43 41 4c 41 52 20 63 6c |(#..TIES|CALAR cl|
|00001360| 61 73 73 6e 61 6d 65 2c | 20 4c 49 53 54 0d 08 20 |assname,| LIST.. |
|00001370| 09 ca 7e 00 13 c8 7e 00 | 00 00 00 00 00 40 00 00 |..~...~.|.....@..|
|00001380| 85 b0 00 00 04 60 b3 07 | 73 0c f0 ff 53 3b f0 ff |.....`..|s...S;..|
|00001390| 20 22 00 00 12 2e 0d 07 | 50 46 00 00 00 00 00 00 | "......|PF......|
|000013a0| 12 e2 7e 00 70 17 00 00 | 00 00 00 00 07 20 74 68 |..~.p...|..... th|
|000013b0| 14 cb 7e 00 13 c8 7e 00 | 14 cb 7e 00 00 00 00 00 |..~...~.|..~.....|
|000013c0| 54 68 69 73 20 69 73 20 | 74 68 65 20 63 6f 6e 73 |This is |the cons|
|000013d0| 74 72 75 63 74 6f 72 20 | 66 6f 72 20 74 68 65 20 |tructor |for the |
|000013e0| 63 6c 61 73 73 2e 20 20 | 54 68 61 74 20 6d 65 61 |class. |That mea|
|000013f0| 6e 73 20 69 74 20 69 73 | 20 65 78 70 65 63 74 65 |ns it is| expecte|
|00001400| 64 20 74 6f 20 72 65 74 | 75 72 6e 20 61 20 62 6c |d to ret|urn a bl|
|00001410| 65 73 73 65 64 20 72 65 | 66 65 72 65 6e 63 65 20 |essed re|ference |
|00001420| 74 6f 20 61 20 6e 65 77 | 20 00 00 00 00 b0 00 00 |to a new| .......|
|00001430| a5 90 00 00 40 c4 73 04 | 4c d4 ef ff 2c 03 f0 ff |....@.s.|L...,...|
|00001440| 20 22 00 00 73 63 61 6c | 61 72 20 28 70 72 6f 62 | "..scal|ar (prob|
|00001450| 61 62 6c 79 20 61 6e 6f | 6e 79 6d 6f 75 73 29 20 |ably ano|nymous) |
|00001460| 74 68 61 74 20 69 74 27 | 73 20 63 72 65 61 74 69 |that it'|s creati|
|00001470| 6e 67 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ng. For| example|
|00001480| 3a 0d 08 20 14 00 00 00 | 13 c8 7e 00 00 00 00 00 |:.. ....|..~.....|
|00001490| 07 69 73 20 12 cc 7e 00 | 13 c8 7e 00 12 cc 7e 00 |.is ..~.|..~...~.|
|000014a0| 00 00 00 00 07 6a 75 73 | 0c cd 7e 00 13 c8 7e 00 |.....jus|..~...~.|
|000014b0| 12 cc 7e 00 0c cd 7e 00 | 00 00 00 00 00 90 00 00 |..~...~.|........|
|000014c0| 25 28 00 00 40 90 5f 01 | 45 6d ef ff 55 94 ef ff |%(..@._.|Em..U...|
|000014d0| 70 1a 00 00 73 75 62 20 | 54 49 45 53 43 41 4c 41 |p...sub |TIESCALA|
|000014e0| 52 20 7b 0d 00 28 00 00 | 25 30 00 00 40 a0 03 02 |R {..(..|%0..@...|
|000014f0| 65 3e ef ff 75 65 ef ff | 70 1a 00 00 20 20 20 20 |e>..ue..|p... |
|00001500| 6d 79 20 24 63 6c 61 73 | 73 20 3d 20 73 68 69 66 |my $clas|s = shif|
|00001510| 74 3b 0d 00 00 30 00 00 | a5 78 00 00 40 10 92 03 |t;...0..|.x..@...|
|00001520| 85 0f ef ff 95 36 ef ff | 70 1a 00 00 20 20 20 20 |.....6..|p... |
|00001530| 6d 79 20 24 70 69 64 20 | 3d 20 73 68 69 66 74 20 |my $pid |= shift |
|00001540| 7c 7c 20 24 24 3b 20 23 | 20 30 20 6d 65 61 6e 73 ||| $$; #| 0 means|
|00001550| 20 6d 65 0d 08 74 6f 20 | 0c ce 7e 00 13 c8 7e 00 | me..to |..~...~.|
|00001560| 12 cc 7e 00 00 00 00 00 | 08 6f 75 72 12 00 00 00 |..~.....|.our....|
|00001570| 13 c8 7e 00 00 00 00 00 | 07 e4 7e 00 18 cf 7e 00 |..~.....|..~...~.|
|00001580| 13 c8 7e 00 18 cf 7e 00 | 00 00 00 00 00 78 00 00 |..~...~.|.....x..|
|00001590| a5 54 00 00 40 00 00 00 | f5 fa ee ff b5 07 ef ff |.T..@...|........|
|000015a0| 00 00 00 00 0d 08 54 43 | 18 d0 7e 00 13 c8 7e 00 |......TC|..~...~.|
|000015b0| 00 00 00 00 07 65 6c 66 | 12 d1 7e 00 13 c8 7e 00 |.....elf|..~...~.|
|000015c0| 12 d1 7e 00 00 00 00 00 | 07 66 65 73 0c d2 7e 00 |..~.....|.fes..~.|
|000015d0| 13 c8 7e 00 12 d1 7e 00 | 0c d2 7e 00 00 00 00 00 |..~...~.|..~.....|
|000015e0| 00 54 00 00 25 30 00 00 | 40 a0 03 02 f5 a9 ee ff |.T..%0..|@.......|
|000015f0| 05 d1 ee ff 70 1a 00 00 | 69 66 20 28 24 70 69 64 |....p...|if ($pid|
|00001600| 20 21 7e 20 2f 5e 5c 64 | 2b 24 2f 29 20 7b 0d 00 | !~ /^\d|+$/) {..|
|00001610| 00 30 00 00 25 58 00 00 | 40 b0 95 05 15 7b ee ff |.0..%X..|@....{..|
|00001620| 25 a2 ee ff 70 1a 00 00 | 20 20 20 20 63 61 72 70 |%...p...| carp|
|00001630| 20 22 4e 69 63 65 3a 3a | 54 69 65 3a 3a 53 63 61 | "Nice::|Tie::Sca|
|00001640| 6c 61 72 20 67 6f 74 20 | 6e 6f 6e 2d 6e 75 6d 65 |lar got |non-nume|
|00001650| 72 69 63 20 70 69 64 20 | 24 70 69 64 22 20 69 66 |ric pid |$pid" if|
|00001660| 20 24 5e 57 3b 0d 00 00 | 00 58 00 00 25 2c 00 00 | $^W;...|.X..%,..|
|00001670| 40 70 8e 01 35 4c ee ff | 45 73 ee ff 70 1a 00 00 |@p..5L..|Es..p...|
|00001680| 20 20 20 20 72 65 74 75 | 72 6e 20 75 6e 64 65 66 | retu|rn undef|
|00001690| 3b 0d 00 00 00 2c 00 00 | a5 50 00 00 40 70 17 00 |;....,..|.P..@p..|
|000016a0| 55 1d ee ff 65 44 ee ff | 70 1a 00 00 7d 0d 08 00 |U...eD..|p...}...|
|000016b0| 0c d3 7e 00 13 c8 7e 00 | 12 d1 7e 00 00 00 00 00 |..~...~.|..~.....|
|000016c0| 08 c8 7e 00 12 00 00 00 | 13 c8 7e 00 00 00 00 00 |..~.....|..~.....|
|000016d0| 07 c8 7e 00 18 d4 7e 00 | 13 c8 7e 00 18 d4 7e 00 |..~...~.|..~...~.|
|000016e0| 00 00 00 00 00 50 00 00 | a5 54 00 00 40 00 00 00 |.....P..|.T..@...|
|000016f0| c5 08 ee ff 85 15 ee ff | 00 00 00 00 0d 08 64 65 |........|......de|
|00001700| 18 d5 7e 00 13 c8 7e 00 | 00 00 00 00 07 20 75 70 |..~...~.|..... up|
|00001710| 12 d6 7e 00 13 c8 7e 00 | 12 d6 7e 00 00 00 00 00 |..~...~.|..~.....|
|00001720| 07 69 6f 6e 0c d7 7e 00 | 13 c8 7e 00 12 d6 7e 00 |.ion..~.|..~...~.|
|00001730| 0c d7 7e 00 00 00 00 00 | 00 54 00 00 25 4c 00 00 |..~.....|.T..%L..|
|00001740| 40 e0 93 04 c5 b7 ed ff | d5 de ed ff 70 1a 00 00 |@.......|....p...|
|00001750| 75 6e 6c 65 73 73 20 28 | 6b 69 6c 6c 20 30 2c 20 |unless (|kill 0, |
|00001760| 24 70 69 64 29 20 7b 20 | 23 20 45 50 45 52 4d 20 |$pid) { |# EPERM |
|00001770| 6f 72 20 45 52 53 43 48 | 2c 20 6e 6f 20 64 6f 75 |or ERSCH|, no dou|
|00001780| 62 74 0d 00 00 4c 00 00 | 25 54 00 00 40 f0 37 05 |bt...L..|%T..@.7.|
|00001790| e5 88 ed ff f5 af ed ff | 70 1a 00 00 20 20 20 20 |........|p... |
|000017a0| 63 61 72 70 20 22 4e 69 | 63 65 3a 3a 54 69 65 3a |carp "Ni|ce::Tie:|
|000017b0| 3a 53 63 61 6c 61 72 20 | 67 6f 74 20 62 61 64 20 |:Scalar |got bad |
|000017c0| 70 69 64 20 24 70 69 64 | 3a 20 24 21 22 20 69 66 |pid $pid|: $!" if|
|000017d0| 20 24 5e 57 3b 0d 00 00 | 00 54 00 00 25 2c 00 00 | $^W;...|.T..%,..|
|000017e0| 40 70 8e 01 05 5a ed ff | 15 81 ed ff 70 1a 00 00 |@p...Z..|....p...|
|000017f0| 20 20 20 20 72 65 74 75 | 72 6e 20 75 6e 64 65 66 | retu|rn undef|
|00001800| 3b 0d 00 00 00 2c 00 00 | a5 50 00 00 40 70 17 00 |;....,..|.P..@p..|
|00001810| 25 2b ed ff 35 52 ed ff | 70 1a 00 00 7d 0d 08 79 |%+..5R..|p...}..y|
|00001820| 0c d8 7e 00 13 c8 7e 00 | 12 d6 7e 00 00 00 00 00 |..~...~.|..~.....|
|00001830| 08 72 65 6e 12 00 00 00 | 13 c8 7e 00 00 00 00 00 |.ren....|..~.....|
|00001840| 07 78 70 65 18 d9 7e 00 | 13 c8 7e 00 18 d9 7e 00 |.xpe..~.|..~...~.|
|00001850| 00 00 00 00 00 50 00 00 | a5 54 00 00 40 00 00 00 |.....P..|.T..@...|
|00001860| 95 16 ed ff 55 23 ed ff | 00 00 00 00 0d 08 61 6c |....U#..|......al|
|00001870| 18 da 7e 00 13 c8 7e 00 | 00 00 00 00 07 73 20 74 |..~...~.|.....s t|
|00001880| 12 db 7e 00 13 c8 7e 00 | 12 db 7e 00 00 00 00 00 |..~...~.|..~.....|
|00001890| 07 07 05 05 0c dc 7e 00 | 13 c8 7e 00 12 db 7e 00 |......~.|..~...~.|
|000018a0| 0c dc 7e 00 00 00 00 00 | 00 54 00 00 25 38 00 00 |..~.....|.T..%8..|
|000018b0| 40 90 d6 02 95 c5 ec ff | a5 ec ec ff 70 1a 00 00 |@.......|....p...|
|000018c0| 20 20 20 20 72 65 74 75 | 72 6e 20 62 6c 65 73 73 | retu|rn bless|
|000018d0| 20 5c 24 70 69 64 2c 20 | 24 63 6c 61 73 73 3b 0d | \$pid, |$class;.|
|000018e0| 00 38 00 00 a5 50 00 00 | 40 70 17 00 b5 96 ec ff |.8...P..|@p......|
|000018f0| c5 bd ec ff 70 1a 00 00 | 7d 0d 08 73 0c dd 7e 00 |....p...|}..s..~.|
|00001900| 13 c8 7e 00 12 db 7e 00 | 00 00 00 00 08 6d 79 20 |..~...~.|.....my |
|00001910| 12 00 00 00 13 c8 7e 00 | 00 00 00 00 07 20 73 68 |......~.|..... sh|
|00001920| 18 de 7e 00 13 c8 7e 00 | 18 de 7e 00 00 00 00 00 |..~...~.|..~.....|
|00001930| 00 50 00 00 a5 28 00 00 | 40 00 00 00 25 82 ec ff |.P...(..|@...%...|
|00001940| e5 8e ec ff 00 00 00 00 | 0d 08 7e 00 18 df 7e 00 |........|..~...~.|
|00001950| 13 c8 7e 00 00 00 00 00 | 00 28 00 00 05 a0 00 00 |..~.....|.(......|
|00001960| 04 98 ed 07 55 29 ec ff | 35 58 ec ff 20 22 00 00 |....U)..|5X.. "..|
|00001970| 12 c8 7e 00 50 46 00 00 | 00 00 00 00 12 08 05 05 |..~.PF..|........|
|00001980| 70 17 00 00 00 00 00 00 | 54 68 69 73 20 74 69 65 |p.......|This tie|
|00001990| 20 63 6c 61 73 73 20 68 | 61 73 20 63 68 6f 73 65 | class h|as chose|
|000019a0| 6e 20 74 6f 20 72 65 74 | 75 72 6e 20 61 6e 20 65 |n to ret|urn an e|
|000019b0| 72 72 6f 72 20 72 61 74 | 68 65 72 20 74 68 61 6e |rror rat|her than|
|000019c0| 20 72 61 69 73 69 6e 67 | 20 61 6e 20 65 78 63 65 | raising| an exce|
|000019d0| 70 74 69 6f 6e 20 69 66 | 20 69 74 73 20 63 6f 6e |ption if| its con|
|000019e0| 73 74 72 75 63 74 6f 72 | 20 73 68 6f 75 6c 64 20 |structor| should |
|000019f0| 66 61 69 6c 2e 20 20 00 | 00 a0 00 00 05 80 00 00 |fail. .|........|
|00001a00| 00 80 72 07 2e f1 eb ff | 0e 20 ec ff 20 22 00 00 |..r.....|. .. "..|
|00001a10| 57 68 69 6c 65 20 74 68 | 69 73 20 69 73 20 68 6f |While th|is is ho|
|00001a20| 77 20 64 62 6d 6f 70 65 | 6e 28 29 20 77 6f 72 6b |w dbmope|n() work|
|00001a30| 73 2c 20 6f 74 68 65 72 | 20 63 6c 61 73 73 65 73 |s, other| classes|
|00001a40| 20 6d 61 79 20 77 65 6c | 6c 20 6e 6f 74 20 77 69 | may wel|l not wi|
|00001a50| 73 68 20 74 6f 20 62 65 | 20 73 6f 20 66 6f 72 67 |sh to be| so forg|
|00001a60| 69 76 69 6e 67 2e 20 20 | 49 74 20 63 68 65 63 6b |iving. |It check|
|00001a70| 73 20 74 68 65 20 00 00 | 00 80 00 00 a5 8c 00 00 |s the ..|........|
|00001a80| 40 10 c7 04 07 b9 eb ff | e7 e7 eb ff 20 22 00 00 |@.......|.... "..|
|00001a90| 67 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 20 |global v|ariable |
|00001aa0| 07 f3 7e 00 0e e0 7e 00 | 13 c8 7e 00 0e e0 7e 00 |..~...~.|..~...~.|
|00001ab0| 00 00 00 00 24 5e 57 08 | 0e e1 7e 00 13 c8 7e 00 |....$^W.|..~...~.|
|00001ac0| 00 00 00 00 20 74 6f 20 | 73 65 65 20 77 68 65 74 |.... to |see whet|
|00001ad0| 68 65 72 20 74 6f 20 65 | 6d 69 74 20 61 20 62 69 |her to e|mit a bi|
|00001ae0| 74 20 6f 66 20 6e 6f 69 | 73 65 20 61 6e 79 77 61 |t of noi|se anywa|
|00001af0| 79 2e 0d 07 09 e2 7e 00 | 13 c8 7e 00 09 e2 7e 00 |y.....~.|..~...~.|
|00001b00| 00 00 00 00 00 8c 00 00 | a5 30 00 00 40 24 f6 00 |........|.0..@$..|
|00001b10| 30 4a eb ff 10 79 eb ff | 28 23 00 00 46 45 54 43 |0J...y..|(#..FETC|
|00001b20| 48 20 74 68 69 73 0d 08 | 09 e3 7e 00 13 c8 7e 00 |H this..|..~...~.|
|00001b30| 00 00 00 00 00 30 00 00 | 05 98 00 00 04 80 a2 07 |.....0..|........|
|00001b40| 09 12 eb ff e9 40 eb ff | 20 22 00 00 12 69 6f 72 |.....@..| "...ior|
|00001b50| 50 46 00 00 00 00 00 00 | 12 20 20 20 70 17 00 00 |PF......|. p...|
|00001b60| 00 00 00 00 54 68 69 73 | 20 6d 65 74 68 6f 64 20 |....This| method |
|00001b70| 77 69 6c 6c 20 62 65 20 | 74 72 69 67 67 65 72 65 |will be |triggere|
|00001b80| 64 20 65 76 65 72 79 20 | 74 69 6d 65 20 74 68 65 |d every |time the|
|00001b90| 20 74 69 65 64 20 76 61 | 72 69 61 62 6c 65 20 69 | tied va|riable i|
|00001ba0| 73 20 61 63 63 65 73 73 | 65 64 20 28 72 65 61 64 |s access|ed (read|
|00001bb0| 29 2e 20 20 49 74 20 74 | 61 6b 65 73 20 6e 6f 20 |). It t|akes no |
|00001bc0| 61 72 67 75 6d 65 6e 74 | 73 20 00 00 00 98 00 00 |argument|s ......|
|00001bd0| 05 84 00 00 00 30 98 07 | e2 d9 ea ff c2 08 eb ff |.....0..|........|
|00001be0| 20 22 00 00 62 65 79 6f | 6e 64 20 69 74 73 20 73 | "..beyo|nd its s|
|00001bf0| 65 6c 66 20 72 65 66 65 | 72 65 6e 63 65 2c 20 77 |elf refe|rence, w|
|00001c00| 68 69 63 68 20 69 73 20 | 74 68 65 20 6f 62 6a 65 |hich is |the obje|
|00001c10| 63 74 20 72 65 70 72 65 | 73 65 6e 74 69 6e 67 20 |ct repre|senting |
|00001c20| 74 68 65 20 73 63 61 6c | 61 72 20 77 65 27 72 65 |the scal|ar we're|
|00001c30| 20 64 65 61 6c 69 6e 67 | 20 77 69 74 68 2e 20 20 | dealing| with. |
|00001c40| 42 65 63 61 75 73 65 20 | 69 6e 20 74 68 69 73 20 |Because |in this |
|00001c50| 00 84 00 00 05 80 00 00 | 00 34 82 07 bb a1 ea ff |........|.4......|
|00001c60| 9b d0 ea ff 20 22 00 00 | 63 61 73 65 20 77 65 27 |.... "..|case we'|
|00001c70| 72 65 20 75 73 69 6e 67 | 20 6a 75 73 74 20 61 20 |re using| just a |
|00001c80| 53 43 41 4c 41 52 20 72 | 65 66 20 66 6f 72 20 74 |SCALAR r|ef for t|
|00001c90| 68 65 20 74 69 65 64 20 | 73 63 61 6c 61 72 20 6f |he tied |scalar o|
|00001ca0| 62 6a 65 63 74 2c 20 61 | 20 73 69 6d 70 6c 65 20 |bject, a| simple |
|00001cb0| 24 24 73 65 6c 66 20 61 | 6c 6c 6f 77 73 20 74 68 |$$self a|llows th|
|00001cc0| 65 20 6d 65 74 68 6f 64 | 20 74 6f 20 67 65 74 20 |e method| to get |
|00001cd0| 00 80 00 00 05 80 00 00 | 00 ec 57 07 94 69 ea ff |........|..W..i..|
|00001ce0| 74 98 ea ff 20 22 00 00 | 61 74 20 74 68 65 20 72 |t... "..|at the r|
|00001cf0| 65 61 6c 20 76 61 6c 75 | 65 20 73 74 6f 72 65 64 |eal valu|e stored|
|00001d00| 20 74 68 65 72 65 2e 20 | 20 49 6e 20 6f 75 72 20 | there. | In our |
|00001d10| 65 78 61 6d 70 6c 65 20 | 62 65 6c 6f 77 2c 20 74 |example |below, t|
|00001d20| 68 61 74 20 72 65 61 6c | 20 76 61 6c 75 65 20 69 |hat real| value i|
|00001d30| 73 20 74 68 65 20 70 72 | 6f 63 65 73 73 20 49 44 |s the pr|ocess ID|
|00001d40| 20 74 6f 20 77 68 69 63 | 68 20 77 65 27 76 65 20 | to whic|h we've |
|00001d50| 00 80 00 00 a5 54 00 00 | 40 f0 3e 01 6d 31 ea ff |.....T..|@.>.m1..|
|00001d60| 4d 60 ea ff 20 22 00 00 | 74 69 65 64 20 6f 75 72 |M`.. "..|tied our|
|00001d70| 20 76 61 72 69 61 62 6c | 65 2e 0d 07 12 e4 7e 00 | variabl|e.....~.|
|00001d80| 13 c8 7e 00 12 e4 7e 00 | 00 00 00 00 07 65 74 68 |..~...~.|.....eth|
|00001d90| 0c e5 7e 00 13 c8 7e 00 | 12 e4 7e 00 0c e5 7e 00 |..~...~.|..~...~.|
|00001da0| 00 00 00 00 00 54 00 00 | 25 24 00 00 40 d0 01 01 |.....T..|%$..@...|
|00001db0| 66 ca e9 ff 76 f1 e9 ff | 70 1a 00 00 73 75 62 20 |f...v...|p...sub |
|00001dc0| 46 45 54 43 48 20 7b 0d | 00 24 00 00 25 30 00 00 |FETCH {.|.$..%0..|
|00001dd0| 40 30 ec 01 86 9b e9 ff | 96 c2 e9 ff 70 1a 00 00 |@0......|....p...|
|00001de0| 20 20 20 20 6d 79 20 24 | 73 65 6c 66 20 3d 20 73 | my $|self = s|
|00001df0| 68 69 66 74 3b 0d 00 00 | 00 30 00 00 25 44 00 00 |hift;...|.0..%D..|
|00001e00| 40 60 d8 03 a6 6c e9 ff | b6 93 e9 ff 70 1a 00 00 |@`...l..|....p...|
|00001e10| 20 20 20 20 63 6f 6e 66 | 65 73 73 20 22 77 72 6f | conf|ess "wro|
|00001e20| 6e 67 20 74 79 70 65 22 | 20 75 6e 6c 65 73 73 20 |ng type"| unless |
|00001e30| 72 65 66 20 24 73 65 6c | 66 3b 0d 00 00 44 00 00 |ref $sel|f;...D..|
|00001e40| 25 38 00 00 40 20 bf 02 | c6 3d e9 ff d6 64 e9 ff |%8..@ ..|.=...d..|
|00001e50| 70 1a 00 00 20 20 20 20 | 63 72 6f 61 6b 20 22 75 |p... |croak "u|
|00001e60| 73 61 67 65 20 65 72 72 | 6f 72 22 20 69 66 20 40 |sage err|or" if @|
|00001e70| 5f 3b 0d 00 00 38 00 00 | 25 28 00 00 40 90 5f 01 |_;...8..|%(..@._.|
|00001e80| e6 0e e9 ff f6 35 e9 ff | 70 1a 00 00 20 20 20 20 |.....5..|p... |
|00001e90| 6d 79 20 24 6e 69 63 65 | 74 79 3b 0d 00 28 00 00 |my $nice|ty;..(..|
|00001ea0| 25 2c 00 00 40 e0 a5 01 | 06 e0 e8 ff 16 07 e9 ff |%,..@...|........|
|00001eb0| 70 1a 00 00 20 20 20 20 | 6c 6f 63 61 6c 28 24 21 |p... |local($!|
|00001ec0| 29 20 3d 20 30 3b 0d 00 | 00 2c 00 00 25 4c 00 00 |) = 0;..|.,..%L..|
|00001ed0| 40 00 65 04 26 b1 e8 ff | 36 d8 e8 ff 70 1a 00 00 |@.e.&...|6...p...|
|00001ee0| 20 20 20 20 24 6e 69 63 | 65 74 79 20 3d 20 67 65 | $nic|ety = ge|
|00001ef0| 74 70 72 69 6f 72 69 74 | 79 28 50 52 49 4f 5f 50 |tpriorit|y(PRIO_P|
|00001f00| 52 4f 43 45 53 53 2c 20 | 24 24 73 65 6c 66 29 3b |ROCESS, |$$self);|
|00001f10| 0d 00 00 00 00 4c 00 00 | 25 48 00 00 40 20 36 04 |.....L..|%H..@ 6.|
|00001f20| 46 82 e8 ff 56 a9 e8 ff | 70 1a 00 00 20 20 20 20 |F...V...|p... |
|00001f30| 69 66 20 28 24 21 29 20 | 7b 20 63 72 6f 61 6b 20 |if ($!) |{ croak |
|00001f40| 22 67 65 74 70 72 69 6f | 72 69 74 79 20 66 61 69 |"getprio|rity fai|
|00001f50| 6c 65 64 3a 20 24 21 22 | 20 7d 0d 00 00 48 00 00 |led: $!"| }...H..|
|00001f60| 25 2c 00 00 40 50 bd 01 | 66 53 e8 ff 76 7a e8 ff |%,..@P..|fS..vz..|
|00001f70| 70 1a 00 00 20 20 20 20 | 72 65 74 75 72 6e 20 24 |p... |return $|
|00001f80| 6e 69 63 65 74 79 3b 0d | 00 2c 00 00 a5 50 00 00 |nicety;.|.,...P..|
|00001f90| 40 70 17 00 86 24 e8 ff | 96 4b e8 ff 70 1a 00 00 |@p...$..|.K..p...|
|00001fa0| 7d 0d 08 62 0c e6 7e 00 | 13 c8 7e 00 12 e4 7e 00 |}..b..~.|..~...~.|
|00001fb0| 00 00 00 00 08 20 61 20 | 12 00 00 00 13 c8 7e 00 |..... a |......~.|
|00001fc0| 00 00 00 00 07 67 73 20 | 18 e7 7e 00 13 c8 7e 00 |.....gs |..~...~.|
|00001fd0| 18 e7 7e 00 00 00 00 00 | 00 50 00 00 a5 28 00 00 |..~.....|.P...(..|
|00001fe0| 40 00 00 00 f6 0f e8 ff | b6 1c e8 ff 00 00 00 00 |@.......|........|
|00001ff0| 0d 08 65 73 18 e8 7e 00 | 13 c8 7e 00 00 00 00 00 |..es..~.|..~.....|
|00002000| 00 28 00 00 05 98 00 00 | 04 24 a7 07 26 b7 e7 ff |.(......|.$..&...|
|00002010| 06 e6 e7 ff 20 22 00 00 | 12 49 45 53 50 46 00 00 |.... "..|.IESPF..|
|00002020| 00 00 00 00 12 73 73 65 | 70 17 00 00 00 00 00 00 |.....sse|p.......|
|00002030| 54 68 69 73 20 74 69 6d | 65 20 77 65 27 76 65 20 |This tim|e we've |
|00002040| 64 65 63 69 64 65 64 20 | 74 6f 20 62 6c 6f 77 20 |decided |to blow |
|00002050| 75 70 20 28 72 61 69 73 | 65 20 61 6e 20 65 78 63 |up (rais|e an exc|
|00002060| 65 70 74 69 6f 6e 29 20 | 69 66 20 74 68 65 20 72 |eption) |if the r|
|00002070| 65 6e 69 63 65 20 66 61 | 69 6c 73 2d 2d 74 68 65 |enice fa|ils--the|
|00002080| 72 65 27 73 20 6e 6f 20 | 70 6c 61 63 65 20 66 6f |re's no |place fo|
|00002090| 72 20 75 73 20 74 6f 20 | 00 98 00 00 a5 70 00 00 |r us to |.....p..|
|000020a0| 40 78 aa 04 ff 7e e7 ff | df ad e7 ff 20 22 00 00 |@x...~..|.... "..|
|000020b0| 72 65 74 75 72 6e 20 61 | 6e 20 65 72 72 6f 72 20 |return a|n error |
|000020c0| 6f 74 68 65 72 77 69 73 | 65 2c 20 61 6e 64 20 69 |otherwis|e, and i|
|000020d0| 74 27 73 20 70 72 6f 62 | 61 62 6c 79 20 74 68 65 |t's prob|ably the|
|000020e0| 20 72 69 67 68 74 20 74 | 68 69 6e 67 20 74 6f 20 | right t|hing to |
|000020f0| 64 6f 2e 0d 07 39 a7 f2 | 09 e9 7e 00 13 c8 7e 00 |do...9..|..~...~.|
|00002100| 09 e9 7e 00 00 00 00 00 | 00 70 00 00 01 10 00 00 |..~.....|.p......|
|00002110| 41 f0 74 01 00 00 00 00 | 00 10 00 00 02 1c 00 00 |A.t.....|........|
|00002120| 00 04 00 00 00 00 00 00 | 13 c8 7e 00 09 e9 7e 00 |........|..~...~.|
|00002130| 00 00 00 00 00 1c 00 00 | a5 44 00 00 40 f0 74 01 |........|.D..@.t.|
|00002140| 1e 45 e5 ff fe 73 e5 ff | 28 23 00 00 16 00 00 00 |.E...s..|(#......|
|00002150| b0 fc 07 00 00 00 00 00 | 53 54 4f 52 45 20 74 68 |........|STORE th|
|00002160| 69 73 2c 20 76 61 6c 75 | 65 0d 08 f2 09 ea 7e 00 |is, valu|e.....~.|
|00002170| 13 c8 7e 00 00 00 00 00 | 00 44 00 00 05 a0 00 00 |..~.....|.D......|
|00002180| 04 bc f6 07 f7 0c e5 ff | d7 3b e5 ff 20 22 00 00 |........|.;.. "..|
|00002190| 12 27 73 20 50 46 00 00 | 00 00 00 00 12 74 68 65 |.'s PF..|.....the|
|000021a0| 70 17 00 00 00 00 00 00 | 54 68 69 73 20 6d 65 74 |p.......|This met|
|000021b0| 68 6f 64 20 77 69 6c 6c | 20 62 65 20 74 72 69 67 |hod will| be trig|
|000021c0| 67 65 72 65 64 20 65 76 | 65 72 79 20 74 69 6d 65 |gered ev|ery time|
|000021d0| 20 74 68 65 20 74 69 65 | 64 20 76 61 72 69 61 62 | the tie|d variab|
|000021e0| 6c 65 20 69 73 20 73 65 | 74 20 28 61 73 73 69 67 |le is se|t (assig|
|000021f0| 6e 65 64 29 2e 20 20 42 | 65 79 6f 6e 64 20 69 74 |ned). B|eyond it|
|00002200| 73 20 73 65 6c 66 20 72 | 65 66 65 72 65 6e 63 65 |s self r|eference|
|00002210| 2c 20 69 74 20 00 00 00 | 00 a0 00 00 a5 98 00 00 |, it ...|........|
|00002220| 40 1c 32 06 d0 d4 e4 ff | b0 03 e5 ff 20 22 00 00 |@.2.....|.... "..|
|00002230| 61 6c 73 6f 20 65 78 70 | 65 63 74 73 20 6f 6e 65 |also exp|ects one|
|00002240| 20 28 61 6e 64 20 6f 6e | 6c 79 20 6f 6e 65 29 20 | (and on|ly one) |
|00002250| 61 72 67 75 6d 65 6e 74 | 2d 2d 74 68 65 20 6e 65 |argument|--the ne|
|00002260| 77 20 76 61 6c 75 65 20 | 74 68 65 20 75 73 65 72 |w value |the user|
|00002270| 20 69 73 20 74 72 79 69 | 6e 67 20 74 6f 20 61 73 | is tryi|ng to as|
|00002280| 73 69 67 6e 2e 0d 07 74 | 12 eb 7e 00 13 c8 7e 00 |sign...t|..~...~.|
|00002290| 12 eb 7e 00 00 00 00 00 | 07 20 69 74 0c ec 7e 00 |..~.....|. it..~.|
|000022a0| 13 c8 7e 00 12 eb 7e 00 | 0c ec 7e 00 00 00 00 00 |..~...~.|..~.....|
|000022b0| 00 98 00 00 25 24 00 00 | 40 d0 01 01 c9 6d e4 ff |....%$..|@....m..|
|000022c0| d9 94 e4 ff 70 1a 00 00 | 73 75 62 20 53 54 4f 52 |....p...|sub STOR|
|000022d0| 45 20 7b 0d 00 24 00 00 | 25 30 00 00 40 30 ec 01 |E {..$..|%0..@0..|
|000022e0| e9 3e e4 ff f9 65 e4 ff | 70 1a 00 00 20 20 20 20 |.>...e..|p... |
|000022f0| 6d 79 20 24 73 65 6c 66 | 20 3d 20 73 68 69 66 74 |my $self| = shift|
|00002300| 3b 0d 00 00 00 30 00 00 | 25 44 00 00 40 60 d8 03 |;....0..|%D..@`..|
|00002310| 09 10 e4 ff 19 37 e4 ff | 70 1a 00 00 20 20 20 20 |.....7..|p... |
|00002320| 63 6f 6e 66 65 73 73 20 | 22 77 72 6f 6e 67 20 74 |confess |"wrong t|
|00002330| 79 70 65 22 20 75 6e 6c | 65 73 73 20 72 65 66 20 |ype" unl|ess ref |
|00002340| 24 73 65 6c 66 3b 0d 00 | 00 44 00 00 25 34 00 00 |$self;..|.D..%4..|
|00002350| 40 d0 78 02 29 e1 e3 ff | 39 08 e4 ff 70 1a 00 00 |@.x.)...|9...p...|
|00002360| 20 20 20 20 6d 79 20 24 | 6e 65 77 5f 6e 69 63 65 | my $|new_nice|
|00002370| 74 79 20 3d 20 73 68 69 | 66 74 3b 0d 00 34 00 00 |ty = shi|ft;..4..|
|00002380| a5 6c 00 00 40 20 bf 02 | 49 b2 e3 ff 59 d9 e3 ff |.l..@ ..|I...Y...|
|00002390| 70 1a 00 00 20 20 20 20 | 63 72 6f 61 6b 20 22 75 |p... |croak "u|
|000023a0| 73 61 67 65 20 65 72 72 | 6f 72 22 20 69 66 20 40 |sage err|or" if @|
|000023b0| 5f 3b 0d 08 0c ed 7e 00 | 13 c8 7e 00 12 eb 7e 00 |_;....~.|..~...~.|
|000023c0| 00 00 00 00 08 67 20 69 | 12 00 00 00 13 c8 7e 00 |.....g i|......~.|
|000023d0| 00 00 00 00 07 20 20 20 | 18 ee 7e 00 13 c8 7e 00 |..... |..~...~.|
|000023e0| 18 ee 7e 00 00 00 00 00 | 00 6c 00 00 a5 54 00 00 |..~.....|.l...T..|
|000023f0| 40 00 00 00 b9 9d e3 ff | 79 aa e3 ff 00 00 00 00 |@.......|y.......|
|00002400| 0d 08 3b 0d 18 ef 7e 00 | 13 c8 7e 00 00 00 00 00 |..;...~.|..~.....|
|00002410| 07 6c 75 65 12 f0 7e 00 | 13 c8 7e 00 12 f0 7e 00 |.lue..~.|..~...~.|
|00002420| 00 00 00 00 07 72 79 5b | 0c f1 7e 00 13 c8 7e 00 |.....ry[|..~...~.|
|00002430| 12 f0 7e 00 0c f1 7e 00 | 00 00 00 00 00 54 00 00 |..~...~.|.....T..|
|00002440| 25 38 00 00 40 b0 a7 02 | b9 4c e3 ff c9 73 e3 ff |%8..@...|.L...s..|
|00002450| 70 1a 00 00 69 66 20 28 | 24 6e 65 77 5f 6e 69 63 |p...if (|$new_nic|
|00002460| 65 74 79 20 3c 20 50 52 | 49 4f 5f 4d 49 4e 29 20 |ety < PR|IO_MIN) |
|00002470| 7b 0d 00 00 00 38 00 00 | 25 2c 00 00 40 00 77 01 |{....8..|%,..@.w.|
|00002480| d9 1d e3 ff e9 44 e3 ff | 70 1a 00 00 20 20 20 20 |.....D..|p... |
|00002490| 63 61 72 70 20 73 70 72 | 69 6e 74 66 0d 00 00 00 |carp spr|intf....|
|000024a0| 00 2c 00 00 25 5c 00 00 | 40 e0 0a 06 f9 ee e2 ff |.,..%\..|@.......|
|000024b0| 09 16 e3 ff 70 1a 00 00 | 20 20 20 20 20 20 22 57 |....p...| "W|
|000024c0| 41 52 4e 49 4e 47 3a 20 | 70 72 69 6f 72 69 74 79 |ARNING: |priority|
|000024d0| 20 25 64 20 6c 65 73 73 | 20 74 68 61 6e 20 6d 69 | %d less| than mi|
|000024e0| 6e 69 6d 75 6d 20 73 79 | 73 74 65 6d 20 70 72 69 |nimum sy|stem pri|
|000024f0| 6f 72 69 74 79 20 25 64 | 22 2c 0d 00 00 5c 00 00 |ority %d|",...\..|
|00002500| 25 40 00 00 40 10 92 03 | 19 c0 e2 ff 29 e7 e2 ff |%@..@...|....)...|
|00002510| 70 1a 00 00 20 20 20 20 | 20 20 20 20 20 20 24 6e |p... | $n|
|00002520| 65 77 5f 6e 69 63 65 74 | 79 2c 20 50 52 49 4f 5f |ew_nicet|y, PRIO_|
|00002530| 4d 49 4e 20 69 66 20 24 | 5e 57 3b 0d 00 40 00 00 |MIN if $|^W;..@..|
|00002540| 25 34 00 00 40 d0 78 02 | 39 91 e2 ff 49 b8 e2 ff |%4..@.x.|9...I...|
|00002550| 70 1a 00 00 20 20 20 20 | 24 6e 65 77 5f 6e 69 63 |p... |$new_nic|
|00002560| 65 74 79 20 3d 20 50 52 | 49 4f 5f 4d 49 4e 3b 0d |ety = PR|IO_MIN;.|
|00002570| 00 34 00 00 a5 50 00 00 | 40 70 17 00 59 62 e2 ff |.4...P..|@p..Yb..|
|00002580| 69 89 e2 ff 70 1a 00 00 | 7d 0d 08 69 0c f2 7e 00 |i...p...|}..i..~.|
|00002590| 13 c8 7e 00 12 f0 7e 00 | 00 00 00 00 08 20 66 6f |..~...~.|..... fo|
|000025a0| 12 00 00 00 13 c8 7e 00 | 00 00 00 00 07 20 54 68 |......~.|..... Th|
|000025b0| 18 f3 7e 00 13 c8 7e 00 | 18 f3 7e 00 00 00 00 00 |..~...~.|..~.....|
|000025c0| 00 50 00 00 a5 54 00 00 | 40 00 00 00 c9 4d e2 ff |.P...T..|@....M..|
|000025d0| 89 5a e2 ff 00 00 00 00 | 0d 08 64 20 18 f4 7e 00 |.Z......|..d ..~.|
|000025e0| 13 c8 7e 00 00 00 00 00 | 07 6f 75 67 12 f5 7e 00 |..~.....|.oug..~.|
|000025f0| 13 c8 7e 00 12 f5 7e 00 | 00 00 00 00 07 72 72 61 |..~...~.|.....rra|
|00002600| 0c f6 7e 00 13 c8 7e 00 | 12 f5 7e 00 0c f6 7e 00 |..~...~.|..~...~.|
|00002610| 00 00 00 00 00 54 00 00 | 25 38 00 00 40 b0 a7 02 |.....T..|%8..@...|
|00002620| c9 fc e1 ff d9 23 e2 ff | 70 1a 00 00 69 66 20 28 |.....#..|p...if (|
|00002630| 24 6e 65 77 5f 6e 69 63 | 65 74 79 20 3e 20 50 52 |$new_nic|ety > PR|
|00002640| 49 4f 5f 4d 41 58 29 20 | 7b 0d 00 00 00 38 00 00 |IO_MAX) |{....8..|
|00002650| 25 2c 00 00 40 00 77 01 | e9 cd e1 ff f9 f4 e1 ff |%,..@.w.|........|
|00002660| 70 1a 00 00 20 20 20 20 | 63 61 72 70 20 73 70 72 |p... |carp spr|
|00002670| 69 6e 74 66 0d 00 00 00 | 00 2c 00 00 25 60 00 00 |intf....|.,..%`..|
|00002680| 40 30 51 06 09 9f e1 ff | 19 c6 e1 ff 70 1a 00 00 |@0Q.....|....p...|
|00002690| 20 20 20 20 20 20 22 57 | 41 52 4e 49 4e 47 3a 20 | "W|ARNING: |
|000026a0| 70 72 69 6f 72 69 74 79 | 20 25 64 20 67 72 65 61 |priority| %d grea|
|000026b0| 74 65 72 20 74 68 61 6e | 20 6d 61 78 69 6d 75 6d |ter than| maximum|
|000026c0| 20 73 79 73 74 65 6d 20 | 70 72 69 6f 72 69 74 79 | system |priority|
|000026d0| 20 25 64 22 2c 0d 00 00 | 00 60 00 00 25 40 00 00 | %d",...|.`..%@..|
|000026e0| 40 10 92 03 29 70 e1 ff | 39 97 e1 ff 70 1a 00 00 |@...)p..|9...p...|
|000026f0| 20 20 20 20 20 20 20 20 | 20 20 24 6e 65 77 5f 6e | | $new_n|
|00002700| 69 63 65 74 79 2c 20 50 | 52 49 4f 5f 4d 41 58 20 |icety, P|RIO_MAX |
|00002710| 69 66 20 24 5e 57 3b 0d | 00 40 00 00 25 34 00 00 |if $^W;.|.@..%4..|
|00002720| 40 d0 78 02 49 41 e1 ff | 59 68 e1 ff 70 1a 00 00 |@.x.IA..|Yh..p...|
|00002730| 20 20 20 20 24 6e 65 77 | 5f 6e 69 63 65 74 79 20 | $new|_nicety |
|00002740| 3d 20 50 52 49 4f 5f 4d | 41 58 3b 0d 00 34 00 00 |= PRIO_M|AX;..4..|
|00002750| a5 50 00 00 40 70 17 00 | 69 12 e1 ff 79 39 e1 ff |.P..@p..|i...y9..|
|00002760| 70 1a 00 00 7d 0d 08 20 | 0c f7 7e 00 13 c8 7e 00 |p...}.. |..~...~.|
|00002770| 12 f5 7e 00 00 00 00 00 | 08 07 05 05 12 00 00 00 |..~.....|........|
|00002780| 13 c8 7e 00 00 00 00 00 | 07 00 00 00 18 f8 7e 00 |..~.....|......~.|
|00002790| 13 c8 7e 00 18 f8 7e 00 | 00 00 00 00 00 50 00 00 |..~...~.|.....P..|
|000027a0| a5 54 00 00 40 00 00 00 | d9 fd e0 ff 99 0a e1 ff |.T..@...|........|
|000027b0| 00 00 00 00 0d 08 72 75 | 18 f9 7e 00 13 c8 7e 00 |......ru|..~...~.|
|000027c0| 00 00 00 00 07 20 49 66 | 12 fa 7e 00 13 c8 7e 00 |..... If|..~...~.|
|000027d0| 12 fa 7e 00 00 00 00 00 | 07 74 68 65 0c fb 7e 00 |..~.....|.the..~.|
|000027e0| 13 c8 7e 00 12 fa 7e 00 | 0c fb 7e 00 00 00 00 00 |..~...~.|..~.....|
|000027f0| 00 54 00 00 25 60 00 00 | 40 30 51 06 d9 ac e0 ff |.T..%`..|@0Q.....|
|00002800| e9 d3 e0 ff 70 1a 00 00 | 20 20 20 20 75 6e 6c 65 |....p...| unle|
|00002810| 73 73 20 28 64 65 66 69 | 6e 65 64 20 73 65 74 70 |ss (defi|ned setp|
|00002820| 72 69 6f 72 69 74 79 28 | 50 52 49 4f 5f 50 52 4f |riority(|PRIO_PRO|
|00002830| 43 45 53 53 2c 20 24 24 | 73 65 6c 66 2c 20 24 6e |CESS, $$|self, $n|
|00002840| 65 77 5f 6e 69 63 65 74 | 79 29 29 20 7b 0d 00 00 |ew_nicet|y)) {...|
|00002850| 00 60 00 00 25 44 00 00 | 40 f0 c0 03 f9 7d e0 ff |.`..%D..|@....}..|
|00002860| 09 a5 e0 ff 70 1a 00 00 | 20 20 20 20 20 20 20 20 |....p...| |
|00002870| 63 6f 6e 66 65 73 73 20 | 22 73 65 74 70 72 69 6f |confess |"setprio|
|00002880| 72 69 74 79 20 66 61 69 | 6c 65 64 3a 20 24 21 22 |rity fai|led: $!"|
|00002890| 3b 0d 00 00 00 44 00 00 | 25 20 00 00 40 30 75 00 |;....D..|% ..@0u.|
|000028a0| 19 4f e0 ff 29 76 e0 ff | 70 1a 00 00 20 20 20 20 |.O..)v..|p... |
|000028b0| 7d 0d 00 00 00 20 00 00 | 25 30 00 00 40 10 1b 02 |}.... ..|%0..@...|
|000028c0| 39 20 e0 ff 49 47 e0 ff | 70 1a 00 00 20 20 20 20 |9 ..IG..|p... |
|000028d0| 72 65 74 75 72 6e 20 24 | 6e 65 77 5f 6e 69 63 65 |return $|new_nice|
|000028e0| 74 79 3b 0d 00 30 00 00 | a5 50 00 00 40 70 17 00 |ty;..0..|.P..@p..|
|000028f0| 59 f1 df ff 69 18 e0 ff | 70 1a 00 00 7d 0d 08 73 |Y...i...|p...}..s|
|00002900| 0c fc 7e 00 13 c8 7e 00 | 12 fa 7e 00 00 00 00 00 |..~...~.|..~.....|
|00002910| 08 42 6f 75 12 00 00 00 | 13 c8 7e 00 00 00 00 00 |.Bou....|..~.....|
|00002920| 07 6d 61 78 18 fd 7e 00 | 13 c8 7e 00 18 fd 7e 00 |.max..~.|..~...~.|
|00002930| 00 00 00 00 00 50 00 00 | a5 3c 00 00 40 00 00 00 |.....P..|.<..@...|
|00002940| c9 dc df ff 89 e9 df ff | 00 00 00 00 0d 08 44 2f |........|......D/|
|00002950| 18 fe 7e 00 13 c8 7e 00 | 00 00 00 00 07 62 6c 65 |..~...~.|.....ble|
|00002960| 09 ff 7e 00 13 c8 7e 00 | 09 ff 7e 00 00 00 00 00 |..~...~.|..~.....|
|00002970| 00 3c 00 00 a5 34 00 00 | 40 84 35 01 f9 83 df ff |.<...4..|@.5.....|
|00002980| d9 b2 df ff 28 23 00 00 | 44 45 53 54 52 4f 59 20 |....(#..|DESTROY |
|00002990| 74 68 69 73 0d 08 20 7d | 09 00 7f 00 13 c8 7e 00 |this.. }|......~.|
|000029a0| 00 00 00 00 00 34 00 00 | 05 94 00 00 04 4c 73 07 |.....4..|.....Ls.|
|000029b0| d2 4b df ff b2 7a df ff | 20 22 00 00 12 00 00 00 |.K...z..| "......|
|000029c0| 50 46 00 00 00 00 00 00 | 12 05 05 05 70 17 00 00 |PF......|....p...|
|000029d0| 00 00 00 00 54 68 69 73 | 20 6d 65 74 68 6f 64 20 |....This| method |
|000029e0| 77 69 6c 6c 20 62 65 20 | 74 72 69 67 67 65 72 65 |will be |triggere|
|000029f0| 64 20 77 68 65 6e 20 74 | 68 65 20 74 69 65 64 20 |d when t|he tied |
|00002a00| 76 61 72 69 61 62 6c 65 | 20 6e 65 65 64 73 20 74 |variable| needs t|
|00002a10| 6f 20 62 65 20 64 65 73 | 74 72 75 63 74 65 64 2e |o be des|tructed.|
|00002a20| 20 41 73 20 77 69 74 68 | 20 6f 74 68 65 72 20 6f | As with| other o|
|00002a30| 62 6a 65 63 74 20 00 00 | 00 94 00 00 05 80 00 00 |bject ..|........|
|00002a40| 00 bc 81 07 ab 13 df ff | 8b 42 df ff 20 22 00 00 |........|.B.. "..|
|00002a50| 63 6c 61 73 73 65 73 2c | 20 73 75 63 68 20 61 20 |classes,| such a |
|00002a60| 6d 65 74 68 6f 64 20 69 | 73 20 73 65 6c 64 6f 6d |method i|s seldom|
|00002a70| 20 6e 65 63 65 73 73 61 | 72 79 2c 20 62 65 63 61 | necessa|ry, beca|
|00002a80| 75 73 65 20 50 65 72 6c | 20 64 65 61 6c 6c 6f 63 |use Perl| dealloc|
|00002a90| 61 74 65 73 20 69 74 73 | 20 6d 6f 72 69 62 75 6e |ates its| moribun|
|00002aa0| 64 20 6f 62 6a 65 63 74 | 27 73 20 6d 65 6d 6f 72 |d object|'s memor|
|00002ab0| 79 20 66 6f 72 20 00 00 | 00 80 00 00 05 74 00 00 |y for ..|.....t..|
|00002ac0| 00 38 12 07 84 db de ff | 64 0a df ff 20 22 00 00 |.8......|d... "..|
|00002ad0| 79 6f 75 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |you auto|maticall|
|00002ae0| 79 2d 2d 74 68 69 73 20 | 69 73 6e 27 74 20 43 2b |y--this |isn't C+|
|00002af0| 2b 2c 20 79 6f 75 20 6b | 6e 6f 77 2e 20 20 57 65 |+, you k|now. We|
|00002b00| 27 6c 6c 20 75 73 65 20 | 61 20 44 45 53 54 52 4f |'ll use |a DESTRO|
|00002b10| 59 20 6d 65 74 68 6f 64 | 20 68 65 72 65 20 66 6f |Y method| here fo|
|00002b20| 72 20 64 65 62 75 67 67 | 69 6e 67 20 00 74 00 00 |r debugg|ing .t..|
|00002b30| a5 50 00 00 40 60 0e 01 | 5d a3 de ff 3d d2 de ff |.P..@`..|]...=...|
|00002b40| 20 22 00 00 70 75 72 70 | 6f 73 65 73 20 6f 6e 6c | "..purp|oses onl|
|00002b50| 79 2e 0d 07 12 01 7f 00 | 13 c8 7e 00 12 01 7f 00 |y.......|..~.....|
|00002b60| 00 00 00 00 07 20 24 69 | 0c 02 7f 00 13 c8 7e 00 |..... $i|......~.|
|00002b70| 12 01 7f 00 0c 02 7f 00 | 00 00 00 00 00 50 00 00 |........|.....P..|
|00002b80| 25 28 00 00 40 b0 30 01 | 56 3c de ff 66 63 de ff |%(..@.0.|V<..fc..|
|00002b90| 70 1a 00 00 73 75 62 20 | 44 45 53 54 52 4f 59 20 |p...sub |DESTROY |
|00002ba0| 7b 0d 00 00 00 28 00 00 | 25 30 00 00 40 30 ec 01 |{....(..|%0..@0..|
|00002bb0| 76 0d de ff 86 34 de ff | 70 1a 00 00 20 20 20 20 |v....4..|p... |
|00002bc0| 6d 79 20 24 73 65 6c 66 | 20 3d 20 73 68 69 66 74 |my $self| = shift|
|00002bd0| 3b 0d 00 00 00 30 00 00 | 25 44 00 00 40 60 d8 03 |;....0..|%D..@`..|
|00002be0| 96 de dd ff a6 05 de ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00002bf0| 63 6f 6e 66 65 73 73 20 | 22 77 72 6f 6e 67 20 74 |confess |"wrong t|
|00002c00| 79 70 65 22 20 75 6e 6c | 65 73 73 20 72 65 66 20 |ype" unl|ess ref |
|00002c10| 24 73 65 6c 66 3b 0d 00 | 00 44 00 00 25 54 00 00 |$self;..|.D..%T..|
|00002c20| 40 80 20 05 b6 af dd ff | c6 d6 dd ff 70 1a 00 00 |@. .....|....p...|
|00002c30| 20 20 20 20 63 61 72 70 | 20 22 5b 20 4e 69 63 65 | carp| "[ Nice|
|00002c40| 3a 3a 44 45 53 54 52 4f | 59 20 70 69 64 20 24 24 |::DESTRO|Y pid $$|
|00002c50| 73 65 6c 66 20 5d 22 20 | 69 66 20 24 4e 69 63 65 |self ]" |if $Nice|
|00002c60| 3a 3a 44 45 42 55 47 3b | 0d 00 00 00 00 54 00 00 |::DEBUG;|.....T..|
|00002c70| a5 50 00 00 40 70 17 00 | d6 80 dd ff e6 a7 dd ff |.P..@p..|........|
|00002c80| 70 1a 00 00 7d 0d 08 52 | 0c 03 7f 00 13 c8 7e 00 |p...}..R|......~.|
|00002c90| 12 01 7f 00 00 00 00 00 | 08 65 6f 72 12 00 00 00 |........|.eor....|
|00002ca0| 13 c8 7e 00 00 00 00 00 | 07 61 76 65 18 04 7f 00 |..~.....|.ave....|
|00002cb0| 13 c8 7e 00 18 04 7f 00 | 00 00 00 00 00 50 00 00 |..~.....|.....P..|
|00002cc0| a5 34 00 00 40 00 00 00 | 46 6c dd ff 06 79 dd ff |.4..@...|Fl...y..|
|00002cd0| 00 00 00 00 0d 08 65 73 | 18 05 7f 00 13 c8 7e 00 |......es|......~.|
|00002ce0| 00 00 00 00 08 20 74 68 | 13 06 7f 00 00 00 00 00 |..... th|........|
|00002cf0| 00 34 00 00 05 8c 00 00 | 00 64 d6 07 76 13 dd ff |.4......|.d..v...|
|00002d00| 56 42 dd ff 20 22 00 00 | 54 68 61 74 27 73 20 61 |VB.. "..|That's a|
|00002d10| 62 6f 75 74 20 61 6c 6c | 20 74 68 65 72 65 20 69 |bout all| there i|
|00002d20| 73 20 74 6f 20 69 74 2e | 20 20 41 63 74 75 61 6c |s to it.| Actual|
|00002d30| 6c 79 2c 20 69 74 27 73 | 20 6d 6f 72 65 20 74 68 |ly, it's| more th|
|00002d40| 61 6e 20 61 6c 6c 20 74 | 68 65 72 65 20 69 73 20 |an all t|here is |
|00002d50| 74 6f 20 69 74 2c 20 62 | 65 63 61 75 73 65 20 77 |to it, b|ecause w|
|00002d60| 65 27 76 65 20 64 6f 6e | 65 20 61 20 66 65 77 20 |e've don|e a few |
|00002d70| 6e 69 63 65 20 74 68 69 | 6e 67 73 20 00 8c 00 00 |nice thi|ngs ....|
|00002d80| 05 80 00 00 00 5c 99 07 | 4f db dc ff 2f 0a dd ff |.....\..|O.../...|
|00002d90| 20 22 00 00 68 65 72 65 | 20 66 6f 72 20 74 68 65 | "..here| for the|
|00002da0| 20 73 61 6b 65 20 6f 66 | 20 63 6f 6d 70 6c 65 74 | sake of| complet|
|00002db0| 65 6e 65 73 73 2c 20 72 | 6f 62 75 73 74 6e 65 73 |eness, r|obustnes|
|00002dc0| 73 2c 20 61 6e 64 20 67 | 65 6e 65 72 61 6c 20 61 |s, and g|eneral a|
|00002dd0| 65 73 74 68 65 74 69 63 | 73 2e 20 20 53 69 6d 70 |esthetic|s. Simp|
|00002de0| 6c 65 72 20 54 49 45 53 | 43 41 4c 41 52 20 63 6c |ler TIES|CALAR cl|
|00002df0| 61 73 73 65 73 20 61 72 | 65 20 00 00 00 80 00 00 |asses ar|e ......|
|00002e00| a5 3c 00 00 40 1c 55 01 | 28 a3 dc ff 08 d2 dc ff |.<..@.U.|(.......|
|00002e10| 20 22 00 00 63 65 72 74 | 61 69 6e 6c 79 20 70 6f | "..cert|ainly po|
|00002e20| 73 73 69 62 6c 65 2e 0d | 07 20 77 65 0a 07 7f 00 |ssible..|. we....|
|00002e30| 0a 07 7f 00 00 00 00 00 | 00 3c 00 00 a5 30 00 00 |........|.<...0..|
|00002e40| 40 e4 2c 01 81 2c dc ff | 31 63 dc ff 18 2b 00 00 |@.,..,..|1c...+..|
|00002e50| 54 79 69 6e 67 20 41 72 | 72 61 79 73 0d 08 74 72 |Tying Ar|rays..tr|
|00002e60| 0a 08 7f 00 00 00 00 00 | 00 30 00 00 05 7c 00 00 |........|.0...|..|
|00002e70| 00 a8 8c 07 4c d7 db ff | 2c 06 dc ff 20 22 00 00 |....L...|,... "..|
|00002e80| 41 20 63 6c 61 73 73 20 | 69 6d 70 6c 65 6d 65 6e |A class |implemen|
|00002e90| 74 69 6e 67 20 61 20 74 | 69 65 64 20 6f 72 64 69 |ting a t|ied ordi|
|00002ea0| 6e 61 72 79 20 61 72 72 | 61 79 20 73 68 6f 75 6c |nary arr|ay shoul|
|00002eb0| 64 20 64 65 66 69 6e 65 | 20 74 68 65 20 66 6f 6c |d define| the fol|
|00002ec0| 6c 6f 77 69 6e 67 20 6d | 65 74 68 6f 64 73 3a 20 |lowing m|ethods: |
|00002ed0| 54 49 45 41 52 52 41 59 | 2c 20 46 45 54 43 48 2c |TIEARRAY|, FETCH,|
|00002ee0| 20 00 00 00 00 7c 00 00 | a5 44 00 00 40 c4 75 02 | ....|..|.D..@.u.|
|00002ef0| 25 9f db ff 05 ce db ff | 20 22 00 00 53 54 4f 52 |%.......| "..STOR|
|00002f00| 45 2c 20 61 6e 64 20 70 | 65 72 68 61 70 73 20 44 |E, and p|erhaps D|
|00002f10| 45 53 54 52 4f 59 2e 0d | 07 66 20 28 10 09 7f 00 |ESTROY..|.f (....|
|00002f20| 10 09 7f 00 00 00 00 00 | 00 44 00 00 85 b4 00 00 |........|.D......|
|00002f30| 00 54 86 07 4e 30 db ff | 2e 5f db ff 28 23 00 00 |.T..N0..|._..(#..|
|00002f40| 57 41 52 4e 49 4e 47 08 | 10 00 00 00 00 00 00 00 |WARNING.|........|
|00002f50| 3a 20 54 69 65 64 20 61 | 72 72 61 79 73 20 61 72 |: Tied a|rrays ar|
|00002f60| 65 20 07 22 11 0a 7f 00 | 11 0a 7f 00 00 00 00 00 |e ."....|........|
|00002f70| 69 6e 63 6f 6d 70 6c 65 | 74 65 08 41 11 00 00 00 |incomple|te.A....|
|00002f80| 00 00 00 00 2e 20 20 54 | 68 65 79 20 61 72 65 20 |..... T|hey are |
|00002f90| 61 6c 73 6f 20 64 69 73 | 74 69 6e 63 74 6c 79 20 |also dis|tinctly |
|00002fa0| 6c 61 63 6b 69 6e 67 20 | 73 6f 6d 65 74 68 69 6e |lacking |somethin|
|00002fb0| 67 20 66 6f 72 20 74 68 | 65 20 07 05 0e 0b 7f 00 |g for th|e ......|
|00002fc0| 0e 0b 7f 00 00 00 00 00 | 24 23 41 52 52 41 59 08 |........|$#ARRAY.|
|00002fd0| 0e 0c 7f 00 00 00 00 00 | 20 00 00 00 00 b4 00 00 |........| .......|
|00002fe0| 05 88 00 00 00 6c 83 07 | 27 f8 da ff 07 27 db ff |.....l..|'....'..|
|00002ff0| 20 22 00 00 61 63 63 65 | 73 73 20 28 77 68 69 63 | "..acce|ss (whic|
|00003000| 68 20 69 73 20 68 61 72 | 64 2c 20 61 73 20 69 74 |h is har|d, as it|
|00003010| 27 73 20 61 6e 20 6c 76 | 61 6c 75 65 29 2c 20 61 |'s an lv|alue), a|
|00003020| 73 20 77 65 6c 6c 20 61 | 73 20 74 68 65 20 6f 74 |s well a|s the ot|
|00003030| 68 65 72 20 6f 62 76 69 | 6f 75 73 20 61 72 72 61 |her obvi|ous arra|
|00003040| 79 20 66 75 6e 63 74 69 | 6f 6e 73 2c 20 6c 69 6b |y functi|ons, lik|
|00003050| 65 20 70 75 73 68 28 29 | 2c 20 70 6f 70 28 29 2c |e push()|, pop(),|
|00003060| 20 00 00 00 00 88 00 00 | a5 48 00 00 40 94 2a 02 | .......|.H..@.*.|
|00003070| 00 c0 da ff e0 ee da ff | 20 22 00 00 73 68 69 66 |........| "..shif|
|00003080| 74 28 29 2c 20 75 6e 73 | 68 69 66 74 28 29 2c 20 |t(), uns|hift(), |
|00003090| 61 6e 64 20 73 70 6c 69 | 63 65 28 29 2e 0d 07 00 |and spli|ce()....|
|000030a0| 14 0d 7f 00 14 0d 7f 00 | 00 00 00 00 00 48 00 00 |........|.....H..|
|000030b0| 01 10 00 00 01 88 9d 07 | 00 00 00 00 00 10 00 00 |........|........|
|000030c0| 02 18 00 00 9c 05 00 00 | 00 00 00 00 14 0d 7f 00 |........|........|
|000030d0| 00 00 00 00 00 18 00 00 | 05 94 00 00 00 88 9d 07 |........|........|
|000030e0| 6d 45 d8 ff 4d 74 d8 ff | 20 22 00 00 16 00 00 00 |mE..Mt..| "......|
|000030f0| b0 fc 07 00 00 00 00 00 | 46 6f 72 20 74 68 69 73 |........|For this|
|00003100| 20 64 69 73 63 75 73 73 | 69 6f 6e 2c 20 77 65 27 | discuss|ion, we'|
|00003110| 6c 6c 20 69 6d 70 6c 65 | 6d 65 6e 74 20 61 6e 20 |ll imple|ment an |
|00003120| 61 72 72 61 79 20 77 68 | 6f 73 65 20 69 6e 64 69 |array wh|ose indi|
|00003130| 63 65 73 20 61 72 65 20 | 66 69 78 65 64 20 61 74 |ces are |fixed at|
|00003140| 20 69 74 73 20 63 72 65 | 61 74 69 6f 6e 2e 20 20 | its cre|ation. |
|00003150| 49 66 20 79 6f 75 20 74 | 72 79 20 74 6f 20 61 63 |If you t|ry to ac|
|00003160| 63 65 73 73 20 00 00 00 | 00 94 00 00 05 80 00 00 |cess ...|........|
|00003170| 00 38 8a 07 46 0d d8 ff | 26 3c d8 ff 20 22 00 00 |.8..F...|&<.. "..|
|00003180| 61 6e 79 74 68 69 6e 67 | 20 62 65 79 6f 6e 64 20 |anything| beyond |
|00003190| 74 68 6f 73 65 20 62 6f | 75 6e 64 73 2c 20 79 6f |those bo|unds, yo|
|000031a0| 75 27 6c 6c 20 74 61 6b | 65 20 61 6e 20 65 78 63 |u'll tak|e an exc|
|000031b0| 65 70 74 69 6f 6e 2e 20 | 20 28 57 65 6c 6c 2c 20 |eption. | (Well, |
|000031c0| 69 66 20 79 6f 75 20 61 | 63 63 65 73 73 20 61 6e |if you a|ccess an|
|000031d0| 20 69 6e 64 69 76 69 64 | 75 61 6c 20 65 6c 65 6d | individ|ual elem|
|000031e0| 65 6e 74 3b 20 61 6e 20 | 00 80 00 00 a5 7c 00 00 |ent; an |.....|..|
|000031f0| 40 64 fb 03 1f d5 d7 ff | ff 03 d8 ff 20 22 00 00 |@d......|.... "..|
|00003200| 61 67 67 72 65 67 61 74 | 65 20 61 73 73 69 67 6e |aggregat|e assign|
|00003210| 6d 65 6e 74 20 77 6f 75 | 6c 64 20 62 65 20 6d 69 |ment wou|ld be mi|
|00003220| 73 73 65 64 2e 29 20 46 | 6f 72 20 65 78 61 6d 70 |ssed.) F|or examp|
|00003230| 6c 65 3a 0d 08 00 00 00 | 14 00 00 00 00 00 00 00 |le:.....|........|
|00003240| 07 ca 98 f2 12 0e 7f 00 | 12 0e 7f 00 00 00 00 00 |........|........|
|00003250| 07 9f 7e 00 0c 0f 7f 00 | 12 0e 7f 00 0c 0f 7f 00 |..~.....|........|
|00003260| 00 00 00 00 00 7c 00 00 | 25 30 00 00 40 a0 03 02 |.....|..|%0..@...|
|00003270| 18 6e d7 ff 28 95 d7 ff | 70 1a 00 00 72 65 71 75 |.n..(...|p...requ|
|00003280| 69 72 65 20 42 6f 75 6e | 64 65 64 5f 41 72 72 61 |ire Boun|ded_Arra|
|00003290| 79 3b 0d 00 00 30 00 00 | 25 38 00 00 40 b0 a7 02 |y;...0..|%8..@...|
|000032a0| 38 3f d7 ff 48 66 d7 ff | 70 1a 00 00 74 69 65 20 |8?..Hf..|p...tie |
|000032b0| 40 61 72 79 2c 20 27 42 | 6f 75 6e 64 65 64 5f 41 |@ary, 'B|ounded_A|
|000032c0| 72 72 61 79 27 2c 20 32 | 3b 0d 00 00 00 38 00 00 |rray', 2|;....8..|
|000032d0| 25 20 00 00 40 10 a4 00 | 58 10 d7 ff 68 37 d7 ff |% ..@...|X...h7..|
|000032e0| 70 1a 00 00 24 7c 20 3d | 20 31 3b 0d 00 20 00 00 |p...$| =| 1;.. ..|
|000032f0| 25 2c 00 00 40 e0 a5 01 | 78 e1 d6 ff 88 08 d7 ff |%,..@...|x.......|
|00003300| 70 1a 00 00 66 6f 72 20 | 24 69 20 28 30 20 2e 2e |p...for |$i (0 ..|
|00003310| 20 31 30 29 20 7b 0d 00 | 00 2c 00 00 25 38 00 00 | 10) {..|.,..%8..|
|00003320| 40 90 d6 02 98 b2 d6 ff | a8 d9 d6 ff 70 1a 00 00 |@.......|....p...|
|00003330| 20 20 20 20 70 72 69 6e | 74 20 22 73 65 74 74 69 | prin|t "setti|
|00003340| 6e 67 20 69 6e 64 65 78 | 20 24 69 3a 20 22 3b 0d |ng index| $i: ";.|
|00003350| 00 38 00 00 25 30 00 00 | 40 10 1b 02 b8 83 d6 ff |.8..%0..|@.......|
|00003360| c8 aa d6 ff 70 1a 00 00 | 20 20 20 20 24 61 72 79 |....p...| $ary|
|00003370| 5b 24 69 5d 20 3d 20 31 | 30 20 2a 20 24 69 3b 0d |[$i] = 1|0 * $i;.|
|00003380| 00 30 00 00 25 30 00 00 | 40 10 1b 02 d8 54 d6 ff |.0..%0..|@....T..|
|00003390| e8 7b d6 ff 70 1a 00 00 | 20 20 20 20 24 61 72 79 |.{..p...| $ary|
|000033a0| 5b 24 69 5d 20 3d 20 31 | 30 20 2a 20 24 69 3b 0d |[$i] = 1|0 * $i;.|
|000033b0| 00 30 00 00 25 44 00 00 | 40 d0 ef 03 f8 25 d6 ff |.0..%D..|@....%..|
|000033c0| 08 4d d6 ff 70 1a 00 00 | 20 20 20 20 70 72 69 6e |.M..p...| prin|
|000033d0| 74 20 22 76 61 6c 75 65 | 20 6f 66 20 65 6c 74 20 |t "value| of elt |
|000033e0| 24 69 20 6e 6f 77 20 24 | 61 72 79 5b 24 69 5d 5c |$i now $|ary[$i]\|
|000033f0| 6e 22 3b 0d 00 44 00 00 | a5 44 00 00 40 70 17 00 |n";..D..|.D..@p..|
|00003400| 18 f7 d5 ff 28 1e d6 ff | 70 1a 00 00 7d 0d 08 77 |....(...|p...}..w|
|00003410| 0c 10 7f 00 12 0e 7f 00 | 00 00 00 00 08 6f 66 20 |........|.....of |
|00003420| 12 00 00 00 00 00 00 00 | 07 28 6d 69 18 11 7f 00 |........|.(mi....|
|00003430| 18 11 7f 00 00 00 00 00 | 00 44 00 00 a5 34 00 00 |........|.D...4..|
|00003440| 40 00 00 00 88 e2 d5 ff | 48 ef d5 ff 00 00 00 00 |@.......|H.......|
|00003450| 0d 08 20 66 18 12 7f 00 | 00 00 00 00 07 74 65 6e |.. f....|.....ten|
|00003460| 14 13 7f 00 14 13 7f 00 | 00 00 00 00 00 34 00 00 |........|.....4..|
|00003470| a5 74 00 00 40 98 58 03 | b8 89 d5 ff 98 b8 d5 ff |.t..@.X.|........|
|00003480| 20 22 00 00 54 68 65 20 | 70 72 65 61 6d 62 6c 65 | "..The |preamble|
|00003490| 20 63 6f 64 65 20 66 6f | 72 20 74 68 65 20 63 6c | code fo|r the cl|
|000034a0| 61 73 73 20 69 73 20 61 | 73 20 66 6f 6c 6c 6f 77 |ass is a|s follow|
|000034b0| 73 3a 0d 08 14 00 00 00 | 00 00 00 00 07 69 6c 65 |s:......|.....ile|
|000034c0| 12 14 7f 00 12 14 7f 00 | 00 00 00 00 07 7b 70 72 |........|.....{pr|
|000034d0| 0c 15 7f 00 12 14 7f 00 | 0c 15 7f 00 00 00 00 00 |........|........|
|000034e0| 00 74 00 00 25 30 00 00 | 40 a0 03 02 b1 22 d5 ff |.t..%0..|@...."..|
|000034f0| c1 49 d5 ff 70 1a 00 00 | 70 61 63 6b 61 67 65 20 |.I..p...|package |
|00003500| 42 6f 75 6e 64 65 64 5f | 41 72 72 61 79 3b 0d 00 |Bounded_|Array;..|
|00003510| 00 30 00 00 25 24 00 00 | 40 f0 d2 00 d1 f3 d4 ff |.0..%$..|@.......|
|00003520| e1 1a d5 ff 70 1a 00 00 | 75 73 65 20 43 61 72 70 |....p...|use Carp|
|00003530| 3b 0d 00 00 00 24 00 00 | a5 50 00 00 40 d0 01 01 |;....$..|.P..@...|
|00003540| f1 c4 d4 ff 01 ec d4 ff | 70 1a 00 00 75 73 65 20 |........|p...use |
|00003550| 73 74 72 69 63 74 3b 0d | 08 6e 22 3b 0c 16 7f 00 |strict;.|.n";....|
|00003560| 12 14 7f 00 00 00 00 00 | 08 00 00 00 12 00 00 00 |........|........|
|00003570| 00 00 00 00 07 00 00 00 | 18 17 7f 00 18 17 7f 00 |........|........|
|00003580| 00 00 00 00 00 50 00 00 | a5 48 00 00 40 00 00 00 |.....P..|.H..@...|
|00003590| 61 b0 d4 ff 21 bd d4 ff | 00 00 00 00 0d 08 7f 00 |a...!...|........|
|000035a0| 18 18 7f 00 00 00 00 00 | 07 72 65 27 13 19 7f 00 |........|.re'....|
|000035b0| 13 19 7f 00 00 00 00 00 | 07 70 6c 65 09 1a 7f 00 |........|.ple....|
|000035c0| 13 19 7f 00 09 1a 7f 00 | 00 00 00 00 00 48 00 00 |........|.....H..|
|000035d0| a5 40 00 00 40 08 4d 02 | 91 57 d4 ff 71 86 d4 ff |.@..@.M.|.W..q...|
|000035e0| 28 23 00 00 54 49 45 41 | 52 52 41 59 20 63 6c 61 |(#..TIEA|RRAY cla|
|000035f0| 73 73 6e 61 6d 65 2c 20 | 4c 49 53 54 0d 08 7f 00 |ssname, |LIST....|
|00003600| 09 1b 7f 00 13 19 7f 00 | 00 00 00 00 00 40 00 00 |........|.....@..|
|00003610| 05 98 00 00 04 64 a6 07 | 6a 1f d4 ff 4a 4e d4 ff |.....d..|j...JN..|
|00003620| 20 22 00 00 12 6f 72 65 | 50 46 00 00 00 00 00 00 | "...ore|PF......|
|00003630| 12 6b 65 79 70 17 00 00 | 00 00 00 00 54 68 69 73 |.keyp...|....This|
|00003640| 20 69 73 20 74 68 65 20 | 63 6f 6e 73 74 72 75 63 | is the |construc|
|00003650| 74 6f 72 20 66 6f 72 20 | 74 68 65 20 63 6c 61 73 |tor for |the clas|
|00003660| 73 2e 20 20 54 68 61 74 | 20 6d 65 61 6e 73 20 69 |s. That| means i|
|00003670| 74 20 69 73 20 65 78 70 | 65 63 74 65 64 20 74 6f |t is exp|ected to|
|00003680| 20 72 65 74 75 72 6e 20 | 61 20 62 6c 65 73 73 65 | return |a blesse|
|00003690| 64 20 72 65 66 65 72 65 | 6e 63 65 20 74 68 72 6f |d refere|nce thro|
|000036a0| 75 67 68 20 00 98 00 00 | 25 60 00 00 40 b8 99 05 |ugh ....|%`..@...|
|000036b0| 43 e7 d3 ff 23 16 d4 ff | 20 22 00 00 77 68 69 63 |C...#...| "..whic|
|000036c0| 68 20 74 68 65 20 6e 65 | 77 20 61 72 72 61 79 20 |h the ne|w array |
|000036d0| 28 70 72 6f 62 61 62 6c | 79 20 61 6e 20 61 6e 6f |(probabl|y an ano|
|000036e0| 6e 79 6d 6f 75 73 20 41 | 52 52 41 59 20 72 65 66 |nymous A|RRAY ref|
|000036f0| 29 20 77 69 6c 6c 20 62 | 65 20 61 63 63 65 73 73 |) will b|e access|
|00003700| 65 64 2e 0d 00 60 00 00 | 85 bc 00 00 04 38 f0 07 |ed...`..|.....8..|
|00003710| 6c 78 d3 ff 4c a7 d3 ff | 20 22 00 00 12 6c 20 69 |lx..L...| "...l i|
|00003720| 50 46 00 00 00 00 00 00 | 12 66 69 65 70 17 00 00 |PF......|.fiep...|
|00003730| 00 00 00 00 49 6e 20 6f | 75 72 20 65 78 61 6d 70 |....In o|ur examp|
|00003740| 6c 65 2c 20 6a 75 73 74 | 20 74 6f 20 73 68 6f 77 |le, just| to show|
|00003750| 20 79 6f 75 20 74 68 61 | 74 20 79 6f 75 20 64 6f | you tha|t you do|
|00003760| 6e 27 74 20 07 64 20 77 | 11 1c 7f 00 13 19 7f 00 |n't .d w|........|
|00003770| 11 1c 7f 00 00 00 00 00 | 72 65 61 6c 6c 79 08 69 |........|really.i|
|00003780| 11 00 00 00 13 19 7f 00 | 00 00 00 00 20 68 61 76 |........|.... hav|
|00003790| 65 20 74 6f 20 72 65 74 | 75 72 6e 20 61 6e 20 41 |e to ret|urn an A|
|000037a0| 52 52 41 59 20 72 65 66 | 65 72 65 6e 63 65 2c 20 |RRAY ref|erence, |
|000037b0| 77 65 27 6c 6c 20 63 68 | 6f 6f 73 65 20 00 00 00 |we'll ch|oose ...|
|000037c0| 00 bc 00 00 85 88 00 00 | 00 04 07 07 45 40 d3 ff |........|....E@..|
|000037d0| 25 6f d3 ff 20 22 00 00 | 61 20 48 41 53 48 20 72 |%o.. "..|a HASH r|
|000037e0| 65 66 65 72 65 6e 63 65 | 20 74 6f 20 72 65 70 72 |eference| to repr|
|000037f0| 65 73 65 6e 74 20 6f 75 | 72 20 6f 62 6a 65 63 74 |esent ou|r object|
|00003800| 2e 20 41 20 48 41 53 48 | 20 77 6f 72 6b 73 20 6f |. A HASH| works o|
|00003810| 75 74 20 77 65 6c 6c 20 | 61 73 20 61 20 67 65 6e |ut well |as a gen|
|00003820| 65 72 69 63 20 72 65 63 | 6f 72 64 20 74 79 70 65 |eric rec|ord type|
|00003830| 3a 20 74 68 65 20 07 20 | 0e 1d 7f 00 13 19 7f 00 |: the . |........|
|00003840| 0e 1d 7f 00 00 00 00 00 | 00 88 00 00 85 a4 00 00 |........|........|
|00003850| 00 94 31 07 1e 08 d3 ff | fe 36 d3 ff ba 1f 00 00 |..1.....|.6......|
|00003860| 7b 42 4f 55 4e 44 7d 08 | 0e 1e 7f 00 13 19 7f 00 |{BOUND}.|........|
|00003870| 00 00 00 00 20 66 69 65 | 6c 64 20 77 69 6c 6c 20 |.... fie|ld will |
|00003880| 73 74 6f 72 65 20 74 68 | 65 20 6d 61 78 69 6d 75 |store th|e maximu|
|00003890| 6d 20 62 6f 75 6e 64 20 | 61 6c 6c 6f 77 65 64 2c |m bound |allowed,|
|000038a0| 20 61 6e 64 20 74 68 65 | 20 07 7f 00 0e 1f 7f 00 | and the| .......|
|000038b0| 13 19 7f 00 0e 1f 7f 00 | 00 00 00 00 7b 41 52 52 |........|....{ARR|
|000038c0| 41 59 7d 08 0e 20 7f 00 | 13 19 7f 00 00 00 00 00 |AY}.. ..|........|
|000038d0| 20 66 69 65 6c 64 20 77 | 69 6c 6c 20 68 6f 6c 64 | field w|ill hold|
|000038e0| 20 74 68 65 20 74 72 75 | 65 20 00 00 00 a4 00 00 | the tru|e ......|
|000038f0| 05 84 00 00 00 cc 89 07 | f7 cf d2 ff d7 fe d2 ff |........|........|
|00003900| 20 22 00 00 41 52 52 41 | 59 20 72 65 66 2e 20 20 | "..ARRA|Y ref. |
|00003910| 49 66 20 73 6f 6d 65 6f | 6e 65 20 6f 75 74 73 69 |If someo|ne outsi|
|00003920| 64 65 20 74 68 65 20 63 | 6c 61 73 73 20 74 72 69 |de the c|lass tri|
|00003930| 65 73 20 74 6f 20 64 65 | 72 65 66 65 72 65 6e 63 |es to de|referenc|
|00003940| 65 20 74 68 65 20 6f 62 | 6a 65 63 74 20 72 65 74 |e the ob|ject ret|
|00003950| 75 72 6e 65 64 20 28 64 | 6f 75 62 74 6c 65 73 73 |urned (d|oubtless|
|00003960| 20 74 68 69 6e 6b 69 6e | 67 20 69 74 20 00 00 00 | thinkin|g it ...|
|00003970| 00 84 00 00 a5 ac 00 00 | 40 90 8c 07 d0 97 d2 ff |........|@.......|
|00003980| b0 c6 d2 ff 20 22 00 00 | 61 6e 20 41 52 52 41 59 |.... "..|an ARRAY|
|00003990| 20 72 65 66 29 2c 20 74 | 68 65 79 27 6c 6c 20 62 | ref), t|hey'll b|
|000039a0| 6c 6f 77 20 75 70 2e 20 | 54 68 69 73 20 6a 75 73 |low up. |This jus|
|000039b0| 74 20 67 6f 65 73 20 74 | 6f 20 73 68 6f 77 20 79 |t goes t|o show y|
|000039c0| 6f 75 20 74 68 61 74 20 | 79 6f 75 20 73 68 6f 75 |ou that |you shou|
|000039d0| 6c 64 20 72 65 73 70 65 | 63 74 20 61 6e 20 6f 62 |ld respe|ct an ob|
|000039e0| 6a 65 63 74 27 73 20 70 | 72 69 76 61 63 79 2e 0d |ject's p|rivacy..|
|000039f0| 07 9e 7e 00 12 21 7f 00 | 13 19 7f 00 12 21 7f 00 |..~..!..|.....!..|
|00003a00| 00 00 00 00 07 00 00 00 | 0c 22 7f 00 13 19 7f 00 |........|."......|
|00003a10| 12 21 7f 00 0c 22 7f 00 | 00 00 00 00 00 ac 00 00 |.!..."..|........|
|00003a20| 25 28 00 00 40 20 48 01 | c9 30 d2 ff d9 57 d2 ff |%(..@ H.|.0...W..|
|00003a30| 70 1a 00 00 73 75 62 20 | 54 49 45 41 52 52 41 59 |p...sub |TIEARRAY|
|00003a40| 20 7b 0d 00 00 28 00 00 | 25 30 00 00 40 a0 03 02 | {...(..|%0..@...|
|00003a50| e9 01 d2 ff f9 28 d2 ff | 70 1a 00 00 20 20 20 20 |.....(..|p... |
|00003a60| 6d 79 20 24 63 6c 61 73 | 73 20 3d 20 73 68 69 66 |my $clas|s = shif|
|00003a70| 74 3b 0d 00 00 30 00 00 | 25 30 00 00 40 a0 03 02 |t;...0..|%0..@...|
|00003a80| 09 d3 d1 ff 19 fa d1 ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00003a90| 6d 79 20 24 62 6f 75 6e | 64 20 3d 20 73 68 69 66 |my $boun|d = shif|
|00003aa0| 74 3b 0d 00 00 30 00 00 | 25 58 00 00 40 90 c4 05 |t;...0..|%X..@...|
|00003ab0| 29 a4 d1 ff 39 cb d1 ff | 70 1a 00 00 20 20 20 20 |)...9...|p... |
|00003ac0| 63 6f 6e 66 65 73 73 20 | 22 75 73 61 67 65 3a 20 |confess |"usage: |
|00003ad0| 74 69 65 28 5c 40 61 72 | 79 2c 20 27 42 6f 75 6e |tie(\@ar|y, 'Boun|
|00003ae0| 64 65 64 5f 41 72 72 61 | 79 27 2c 20 6d 61 78 5f |ded_Arra|y', max_|
|00003af0| 73 75 62 73 63 72 69 70 | 74 29 22 0d 00 58 00 00 |subscrip|t)"..X..|
|00003b00| 25 3c 00 00 40 00 ee 02 | 49 75 d1 ff 59 9c d1 ff |%<..@...|Iu..Y...|
|00003b10| 70 1a 00 00 20 20 20 20 | 20 20 20 20 69 66 20 40 |p... | if @|
|00003b20| 5f 20 7c 7c 20 24 62 6f | 75 6e 64 20 3d 7e 20 2f |_ || $bo|und =~ /|
|00003b30| 5c 44 2f 3b 0d 00 00 00 | 00 3c 00 00 25 2c 00 00 |\D/;....|.<..%,..|
|00003b40| 40 e0 a5 01 69 46 d1 ff | 79 6d d1 ff 70 1a 00 00 |@...iF..|ym..p...|
|00003b50| 20 20 20 20 72 65 74 75 | 72 6e 20 62 6c 65 73 73 | retu|rn bless|
|00003b60| 20 7b 0d 00 00 2c 00 00 | 25 34 00 00 40 80 32 02 | {...,..|%4..@.2.|
|00003b70| 89 17 d1 ff 99 3e d1 ff | 70 1a 00 00 20 20 20 20 |.....>..|p... |
|00003b80| 20 20 20 20 42 4f 55 4e | 44 20 3d 3e 20 24 62 6f | BOUN|D => $bo|
|00003b90| 75 6e 64 2c 0d 00 00 00 | 00 34 00 00 25 30 00 00 |und,....|.4..%0..|
|00003ba0| 40 c0 d4 01 a9 e8 d0 ff | b9 0f d1 ff 70 1a 00 00 |@.......|....p...|
|00003bb0| 20 20 20 20 20 20 20 20 | 41 52 52 41 59 20 3d 3e | |ARRAY =>|
|00003bc0| 20 5b 5d 2c 0d 00 00 00 | 00 30 00 00 25 28 00 00 | [],....|.0..%(..|
|00003bd0| 40 20 48 01 c9 b9 d0 ff | d9 e0 d0 ff 70 1a 00 00 |@ H.....|....p...|
|00003be0| 20 20 20 20 7d 2c 20 24 | 63 6c 61 73 73 3b 0d 00 | }, $|class;..|
|00003bf0| 00 28 00 00 a5 50 00 00 | 40 70 17 00 e9 8a d0 ff |.(...P..|@p......|
|00003c00| f9 b1 d0 ff 70 1a 00 00 | 7d 0d 08 75 0c 23 7f 00 |....p...|}..u.#..|
|00003c10| 13 19 7f 00 12 21 7f 00 | 00 00 00 00 08 74 68 69 |.....!..|.....thi|
|00003c20| 12 00 00 00 13 19 7f 00 | 00 00 00 00 07 6f 20 6f |........|.....o o|
|00003c30| 18 24 7f 00 13 19 7f 00 | 18 24 7f 00 00 00 00 00 |.$......|.$......|
|00003c40| 00 50 00 00 a5 3c 00 00 | 40 00 00 00 59 76 d0 ff |.P...<..|@...Yv..|
|00003c50| 19 83 d0 ff 00 00 00 00 | 0d 08 6f 75 18 25 7f 00 |........|..ou.%..|
|00003c60| 13 19 7f 00 00 00 00 00 | 07 28 29 20 09 26 7f 00 |........|.() .&..|
|00003c70| 13 19 7f 00 09 26 7f 00 | 00 00 00 00 00 3c 00 00 |.....&..|.....<..|
|00003c80| a5 38 00 00 40 fc 7a 01 | 89 1d d0 ff 69 4c d0 ff |.8..@.z.|....iL..|
|00003c90| 28 23 00 00 46 45 54 43 | 48 20 74 68 69 73 2c 20 |(#..FETC|H this, |
|00003ca0| 69 6e 64 65 78 0d 08 6f | 09 27 7f 00 13 19 7f 00 |index..o|.'......|
|00003cb0| 00 00 00 00 00 38 00 00 | 05 98 00 00 04 f0 98 07 |.....8..|........|
|00003cc0| 62 e5 cf ff 42 14 d0 ff | 20 22 00 00 12 74 68 6f |b...B...| "...tho|
|00003cd0| 50 46 00 00 00 00 00 00 | 12 61 74 20 70 17 00 00 |PF......|.at p...|
|00003ce0| 00 00 00 00 54 68 69 73 | 20 6d 65 74 68 6f 64 20 |....This| method |
|00003cf0| 77 69 6c 6c 20 62 65 20 | 74 72 69 67 67 65 72 65 |will be |triggere|
|00003d00| 64 20 65 76 65 72 79 20 | 74 69 6d 65 20 61 6e 20 |d every |time an |
|00003d10| 69 6e 64 69 76 69 64 75 | 61 6c 20 65 6c 65 6d 65 |individu|al eleme|
|00003d20| 6e 74 20 74 68 65 20 74 | 69 65 64 20 61 72 72 61 |nt the t|ied arra|
|00003d30| 79 20 69 73 20 61 63 63 | 65 73 73 65 64 20 28 72 |y is acc|essed (r|
|00003d40| 65 61 64 29 2e 20 20 49 | 74 20 00 00 00 98 00 00 |ead). I|t ......|
|00003d50| a5 9c 00 00 40 c0 8d 06 | 3b ad cf ff 1b dc cf ff |....@...|;.......|
|00003d60| 20 22 00 00 74 61 6b 65 | 73 20 6f 6e 65 20 61 72 | "..take|s one ar|
|00003d70| 67 75 6d 65 6e 74 20 62 | 65 79 6f 6e 64 20 69 74 |gument b|eyond it|
|00003d80| 73 20 73 65 6c 66 20 72 | 65 66 65 72 65 6e 63 65 |s self r|eference|
|00003d90| 3a 20 74 68 65 20 69 6e | 64 65 78 20 77 68 6f 73 |: the in|dex whos|
|00003da0| 65 20 76 61 6c 75 65 20 | 77 65 27 72 65 20 74 72 |e value |we're tr|
|00003db0| 79 69 6e 67 20 74 6f 20 | 66 65 74 63 68 2e 0d 07 |ying to |fetch...|
|00003dc0| 12 28 7f 00 13 19 7f 00 | 12 28 7f 00 00 00 00 00 |.(......|.(......|
|00003dd0| 07 69 73 20 0c 29 7f 00 | 13 19 7f 00 12 28 7f 00 |.is .)..|.....(..|
|00003de0| 0c 29 7f 00 00 00 00 00 | 00 9c 00 00 25 24 00 00 |.)......|....%$..|
|00003df0| 40 d0 01 01 34 46 cf ff | 44 6d cf ff 70 1a 00 00 |@...4F..|Dm..p...|
|00003e00| 73 75 62 20 46 45 54 43 | 48 20 7b 0d 00 24 00 00 |sub FETC|H {..$..|
|00003e10| 25 30 00 00 40 a0 03 02 | 54 17 cf ff 64 3e cf ff |%0..@...|T...d>..|
|00003e20| 70 1a 00 00 20 20 6d 79 | 28 24 73 65 6c 66 2c 24 |p... my|($self,$|
|00003e30| 69 64 78 29 20 3d 20 40 | 5f 3b 0d 00 00 30 00 00 |idx) = @|_;...0..|
|00003e40| 25 38 00 00 40 20 bf 02 | 74 e8 ce ff 84 0f cf ff |%8..@ ..|t.......|
|00003e50| 70 1a 00 00 20 20 69 66 | 20 28 24 69 64 78 20 3e |p... if| ($idx >|
|00003e60| 20 24 73 65 6c 66 2d 3e | 7b 42 4f 55 4e 44 7d 29 | $self->|{BOUND})|
|00003e70| 20 7b 0d 00 00 38 00 00 | 25 48 00 00 40 90 4d 04 | {...8..|%H..@.M.|
|00003e80| 94 b9 ce ff a4 e0 ce ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00003e90| 63 6f 6e 66 65 73 73 20 | 22 41 72 72 61 79 20 4f |confess |"Array O|
|00003ea0| 4f 42 3a 20 24 69 64 78 | 20 3e 20 24 73 65 6c 66 |OB: $idx| > $self|
|00003eb0| 2d 3e 7b 42 4f 55 4e 44 | 7d 22 3b 0d 00 48 00 00 |->{BOUND|}";..H..|
|00003ec0| 25 1c 00 00 40 50 46 00 | b4 8a ce ff c4 b1 ce ff |%...@PF.|........|
|00003ed0| 70 1a 00 00 20 20 7d 0d | 00 1c 00 00 25 38 00 00 |p... }.|....%8..|
|00003ee0| 40 20 bf 02 d4 5b ce ff | e4 82 ce ff 70 1a 00 00 |@ ...[..|....p...|
|00003ef0| 20 20 72 65 74 75 72 6e | 20 24 73 65 6c 66 2d 3e | return| $self->|
|00003f00| 7b 41 52 52 41 59 7d 5b | 24 69 64 78 5d 3b 0d 00 |{ARRAY}[|$idx];..|
|00003f10| 00 38 00 00 a5 50 00 00 | 40 70 17 00 f4 2c ce ff |.8...P..|@p...,..|
|00003f20| 04 54 ce ff 70 1a 00 00 | 7d 0d 08 61 0c 2a 7f 00 |.T..p...|}..a.*..|
|00003f30| 13 19 7f 00 12 28 7f 00 | 00 00 00 00 08 74 73 20 |.....(..|.....ts |
|00003f40| 12 00 00 00 13 19 7f 00 | 00 00 00 00 07 af 7e 00 |........|......~.|
|00003f50| 18 2b 7f 00 13 19 7f 00 | 18 2b 7f 00 00 00 00 00 |.+......|.+......|
|00003f60| 00 50 00 00 a5 28 00 00 | 40 00 00 00 64 18 ce ff |.P...(..|@...d...|
|00003f70| 24 25 ce ff 00 00 00 00 | 0d 08 72 6f 18 2c 7f 00 |$%......|..ro.,..|
|00003f80| 13 19 7f 00 00 00 00 00 | 00 28 00 00 05 94 00 00 |........|.(......|
|00003f90| 04 f8 a5 07 94 bf cd ff | 74 ee cd ff 20 22 00 00 |........|t... "..|
|00003fa0| 12 61 73 73 50 46 00 00 | 00 00 00 00 12 20 54 49 |.assPF..|..... TI|
|00003fb0| 70 17 00 00 00 00 00 00 | 41 73 20 79 6f 75 20 6d |p.......|As you m|
|00003fc0| 61 79 20 68 61 76 65 20 | 6e 6f 74 69 63 65 64 2c |ay have |noticed,|
|00003fd0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|00003fe0| 20 46 45 54 43 48 20 6d | 65 74 68 6f 64 20 28 65 | FETCH m|ethod (e|
|00003ff0| 74 20 61 6c 2e 29 20 69 | 73 20 74 68 65 20 73 61 |t al.) i|s the sa|
|00004000| 6d 65 20 66 6f 72 20 61 | 6c 6c 20 61 63 63 65 73 |me for a|ll acces|
|00004010| 73 65 73 2c 20 65 76 65 | 6e 20 00 00 00 94 00 00 |ses, eve|n ......|
|00004020| 05 74 00 00 00 d4 42 07 | 6d 87 cd ff 4d b6 cd ff |.t....B.|m...M...|
|00004030| 20 22 00 00 74 68 6f 75 | 67 68 20 74 68 65 20 63 | "..thou|gh the c|
|00004040| 6f 6e 73 74 72 75 63 74 | 6f 72 73 20 64 69 66 66 |onstruct|ors diff|
|00004050| 65 72 20 69 6e 20 6e 61 | 6d 65 73 20 28 54 49 45 |er in na|mes (TIE|
|00004060| 53 43 41 4c 41 52 20 76 | 73 20 54 49 45 41 52 52 |SCALAR v|s TIEARR|
|00004070| 41 59 29 2e 20 20 57 68 | 69 6c 65 20 69 6e 20 74 |AY). Wh|ile in t|
|00004080| 68 65 6f 72 79 20 79 6f | 75 20 63 6f 75 6c 64 20 |heory yo|u could |
|00004090| 00 74 00 00 05 80 00 00 | 00 d0 73 07 46 4f cd ff |.t......|..s.FO..|
|000040a0| 26 7e cd ff 20 22 00 00 | 68 61 76 65 20 74 68 65 |&~.. "..|have the|
|000040b0| 20 73 61 6d 65 20 63 6c | 61 73 73 20 73 65 72 76 | same cl|ass serv|
|000040c0| 69 63 69 6e 67 20 73 65 | 76 65 72 61 6c 20 74 69 |icing se|veral ti|
|000040d0| 65 64 20 74 79 70 65 73 | 2c 20 69 6e 20 70 72 61 |ed types|, in pra|
|000040e0| 63 74 69 63 65 20 74 68 | 69 73 20 62 65 63 6f 6d |ctice th|is becom|
|000040f0| 65 73 20 63 75 6d 62 65 | 72 73 6f 6d 65 2c 20 61 |es cumbe|rsome, a|
|00004100| 6e 64 20 69 74 27 73 20 | 65 61 73 69 65 73 74 20 |nd it's |easiest |
|00004110| 00 80 00 00 a5 58 00 00 | 40 a8 4b 03 1f 17 cd ff |.....X..|@.K.....|
|00004120| ff 45 cd ff 20 22 00 00 | 74 6f 20 6b 65 65 70 20 |.E.. "..|to keep |
|00004130| 74 68 65 6d 20 61 74 20 | 73 69 6d 70 6c 79 20 6f |them at |simply o|
|00004140| 6e 65 20 74 69 65 20 74 | 79 70 65 20 70 65 72 20 |ne tie t|ype per |
|00004150| 63 6c 61 73 73 2e 0d 07 | 09 2d 7f 00 13 19 7f 00 |class...|.-......|
|00004160| 09 2d 7f 00 00 00 00 00 | 00 58 00 00 01 10 00 00 |.-......|.X......|
|00004170| 41 c8 f9 01 00 00 00 00 | 00 10 00 00 02 1c 00 00 |A.......|........|
|00004180| 38 07 00 00 00 00 00 00 | 13 19 7f 00 09 2d 7f 00 |8.......|.....-..|
|00004190| 00 00 00 00 00 1c 00 00 | a5 4c 00 00 40 c8 f9 01 |........|.L..@...|
|000041a0| bc 45 cb ff 9c 74 cb ff | 28 23 00 00 16 00 00 00 |.E...t..|(#......|
|000041b0| b0 fc 07 00 00 00 00 00 | 53 54 4f 52 45 20 74 68 |........|STORE th|
|000041c0| 69 73 2c 20 69 6e 64 65 | 78 2c 20 76 61 6c 75 65 |is, inde|x, value|
|000041d0| 0d 08 65 20 09 2e 7f 00 | 13 19 7f 00 00 00 00 00 |..e ....|........|
|000041e0| 00 4c 00 00 85 ac 00 00 | 04 98 81 07 95 0d cb ff |.L......|........|
|000041f0| 75 3c cb ff 20 22 00 00 | 12 65 20 74 50 46 00 00 |u<.. "..|.e tPF..|
|00004200| 00 00 00 00 12 74 69 6f | 70 17 00 00 00 00 00 00 |.....tio|p.......|
|00004210| 07 74 20 07 14 2f 7f 00 | 13 19 7f 00 14 2f 7f 00 |.t ../..|...../..|
|00004220| 00 00 00 00 54 68 69 73 | 20 6d 65 74 68 6f 64 20 |....This| method |
|00004230| 77 69 6c 6c 20 62 65 20 | 74 72 69 67 67 65 72 65 |will be |triggere|
|00004240| 64 20 65 76 65 72 79 20 | 74 69 6d 65 20 61 6e 20 |d every |time an |
|00004250| 65 6c 65 6d 65 6e 74 20 | 69 6e 20 74 68 65 20 74 |element |in the t|
|00004260| 69 65 64 20 61 72 72 61 | 79 20 69 73 20 73 65 74 |ied arra|y is set|
|00004270| 20 28 77 72 69 74 74 65 | 6e 29 2e 20 20 49 74 20 | (writte|n). It |
|00004280| 74 61 6b 65 73 20 74 77 | 6f 20 00 00 00 ac 00 00 |takes tw|o ......|
|00004290| 05 80 00 00 00 0c 62 07 | 6e d5 ca ff 4e 04 cb ff |......b.|n...N...|
|000042a0| 20 22 00 00 61 72 67 75 | 6d 65 6e 74 73 20 62 65 | "..argu|ments be|
|000042b0| 79 6f 6e 64 20 69 74 73 | 20 73 65 6c 66 20 72 65 |yond its| self re|
|000042c0| 66 65 72 65 6e 63 65 3a | 20 74 68 65 20 69 6e 64 |ference:| the ind|
|000042d0| 65 78 20 61 74 20 77 68 | 69 63 68 20 77 65 27 72 |ex at wh|ich we'r|
|000042e0| 65 20 74 72 79 69 6e 67 | 20 74 6f 20 73 74 6f 72 |e trying| to stor|
|000042f0| 65 20 73 6f 6d 65 74 68 | 69 6e 67 20 61 6e 64 20 |e someth|ing and |
|00004300| 74 68 65 20 76 61 6c 75 | 65 20 00 00 00 80 00 00 |the valu|e ......|
|00004310| a5 7c 00 00 40 48 dc 02 | 47 9d ca ff 27 cc ca ff |.|..@H..|G...'...|
|00004320| 20 22 00 00 77 65 27 72 | 65 20 74 72 79 69 6e 67 | "..we'r|e trying|
|00004330| 20 74 6f 20 70 75 74 20 | 74 68 65 72 65 2e 20 20 | to put |there. |
|00004340| 46 6f 72 20 65 78 61 6d | 70 6c 65 3a 0d 08 74 75 |For exam|ple:..tu|
|00004350| 14 00 00 00 13 19 7f 00 | 00 00 00 00 07 61 6e 20 |........|.....an |
|00004360| 12 30 7f 00 13 19 7f 00 | 12 30 7f 00 00 00 00 00 |.0......|.0......|
|00004370| 07 73 73 20 0c 31 7f 00 | 13 19 7f 00 12 30 7f 00 |.ss .1..|.....0..|
|00004380| 0c 31 7f 00 00 00 00 00 | 00 7c 00 00 25 24 00 00 |.1......|.|..%$..|
|00004390| 40 d0 01 01 40 36 ca ff | 50 5d ca ff 70 1a 00 00 |@...@6..|P]..p...|
|000043a0| 73 75 62 20 53 54 4f 52 | 45 20 7b 0d 00 24 00 00 |sub STOR|E {..$..|
|000043b0| 25 38 00 00 40 90 d6 02 | 60 07 ca ff 70 2e ca ff |%8..@...|`...p...|
|000043c0| 70 1a 00 00 20 20 6d 79 | 28 24 73 65 6c 66 2c 20 |p... my|($self, |
|000043d0| 24 69 64 78 2c 20 24 76 | 61 6c 75 65 29 20 3d 20 |$idx, $v|alue) = |
|000043e0| 40 5f 3b 0d 00 38 00 00 | 25 48 00 00 40 b0 1e 04 |@_;..8..|%H..@...|
|000043f0| 80 d8 c9 ff 90 ff c9 ff | 70 1a 00 00 20 20 70 72 |........|p... pr|
|00004400| 69 6e 74 20 22 5b 53 54 | 4f 52 45 20 24 76 61 6c |int "[ST|ORE $val|
|00004410| 75 65 20 61 74 20 24 69 | 64 78 5d 5c 6e 22 20 69 |ue at $i|dx]\n" i|
|00004420| 66 20 5f 64 65 62 75 67 | 3b 0d 00 00 00 48 00 00 |f _debug|;....H..|
|00004430| 25 38 00 00 40 90 d6 02 | a0 a9 c9 ff b0 d0 c9 ff |%8..@...|........|
|00004440| 70 1a 00 00 20 20 69 66 | 20 28 24 69 64 78 20 3e |p... if| ($idx >|
|00004450| 20 24 73 65 6c 66 2d 3e | 7b 42 4f 55 4e 44 7d 20 | $self->|{BOUND} |
|00004460| 29 20 7b 0d 00 38 00 00 | 25 48 00 00 40 90 4d 04 |) {..8..|%H..@.M.|
|00004470| c0 7a c9 ff d0 a1 c9 ff | 70 1a 00 00 20 20 20 20 |.z......|p... |
|00004480| 63 6f 6e 66 65 73 73 20 | 22 41 72 72 61 79 20 4f |confess |"Array O|
|00004490| 4f 42 3a 20 24 69 64 78 | 20 3e 20 24 73 65 6c 66 |OB: $idx| > $self|
|000044a0| 2d 3e 7b 42 4f 55 4e 44 | 7d 22 3b 0d 00 48 00 00 |->{BOUND|}";..H..|
|000044b0| 25 1c 00 00 40 50 46 00 | e0 4b c9 ff f0 72 c9 ff |%...@PF.|.K...r..|
|000044c0| 70 1a 00 00 20 20 7d 0d | 00 1c 00 00 25 40 00 00 |p... }.|....%@..|
|000044d0| 40 10 92 03 00 1d c9 ff | 10 44 c9 ff 70 1a 00 00 |@.......|.D..p...|
|000044e0| 20 20 72 65 74 75 72 6e | 20 24 73 65 6c 66 2d 3e | return| $self->|
|000044f0| 7b 41 52 52 41 59 7d 5b | 24 69 64 78 5d 20 3d 20 |{ARRAY}[|$idx] = |
|00004500| 24 76 61 6c 75 65 3b 0d | 00 40 00 00 a5 50 00 00 |$value;.|.@...P..|
|00004510| 40 70 17 00 20 ee c8 ff | 30 15 c9 ff 70 1a 00 00 |@p.. ...|0...p...|
|00004520| 7d 0d 08 00 0c 32 7f 00 | 13 19 7f 00 12 30 7f 00 |}....2..|.....0..|
|00004530| 00 00 00 00 08 69 08 05 | 12 00 00 00 13 19 7f 00 |.....i..|........|
|00004540| 00 00 00 00 07 53 44 3a | 18 33 7f 00 13 19 7f 00 |.....SD:|.3......|
|00004550| 18 33 7f 00 00 00 00 00 | 00 50 00 00 a5 3c 00 00 |.3......|.P...<..|
|00004560| 40 00 00 00 90 d9 c8 ff | 50 e6 c8 ff 00 00 00 00 |@.......|P.......|
|00004570| 0d 08 68 65 18 34 7f 00 | 13 19 7f 00 00 00 00 00 |..he.4..|........|
|00004580| 07 2c 20 50 09 35 7f 00 | 13 19 7f 00 09 35 7f 00 |., P.5..|.....5..|
|00004590| 00 00 00 00 00 3c 00 00 | a5 34 00 00 40 84 35 01 |.....<..|.4..@.5.|
|000045a0| c0 80 c8 ff a0 af c8 ff | 28 23 00 00 44 45 53 54 |........|(#..DEST|
|000045b0| 52 4f 59 20 74 68 69 73 | 0d 08 65 6c 09 36 7f 00 |ROY this|..el.6..|
|000045c0| 13 19 7f 00 00 00 00 00 | 00 34 00 00 05 9c 00 00 |........|.4......|
|000045d0| 04 28 f4 07 99 48 c8 ff | 79 77 c8 ff 20 22 00 00 |.(...H..|yw.. "..|
|000045e0| 12 79 28 29 50 46 00 00 | 00 00 00 00 12 61 6c 6c |.y()PF..|.....all|
|000045f0| 70 17 00 00 00 00 00 00 | 54 68 69 73 20 6d 65 74 |p.......|This met|
|00004600| 68 6f 64 20 77 69 6c 6c | 20 62 65 20 74 72 69 67 |hod will| be trig|
|00004610| 67 65 72 65 64 20 77 68 | 65 6e 20 74 68 65 20 74 |gered wh|en the t|
|00004620| 69 65 64 20 76 61 72 69 | 61 62 6c 65 20 6e 65 65 |ied vari|able nee|
|00004630| 64 73 20 74 6f 20 62 65 | 20 64 65 73 74 72 75 63 |ds to be| destruc|
|00004640| 74 65 64 2e 20 41 73 20 | 77 69 74 68 20 74 68 65 |ted. As |with the|
|00004650| 20 73 63 61 6c 61 72 20 | 74 69 65 20 63 6c 61 73 | scalar |tie clas|
|00004660| 73 2c 20 00 00 9c 00 00 | 05 80 00 00 00 28 52 07 |s, .....|.....(R.|
|00004670| 72 10 c8 ff 52 3f c8 ff | 20 22 00 00 74 68 69 73 |r...R?..| "..this|
|00004680| 20 69 73 20 61 6c 6d 6f | 73 74 20 6e 65 76 65 72 | is almo|st never|
|00004690| 20 6e 65 65 64 65 64 20 | 69 6e 20 61 20 6c 61 6e | needed |in a lan|
|000046a0| 67 75 61 67 65 20 74 68 | 61 74 20 64 6f 65 73 20 |guage th|at does |
|000046b0| 69 74 73 20 6f 77 6e 20 | 67 61 72 62 61 67 65 20 |its own |garbage |
|000046c0| 63 6f 6c 6c 65 63 74 69 | 6f 6e 2c 20 73 6f 20 74 |collecti|on, so t|
|000046d0| 68 69 73 20 74 69 6d 65 | 20 77 65 27 6c 6c 20 6a |his time| we'll j|
|000046e0| 75 73 74 20 00 80 00 00 | a5 40 00 00 40 08 dc 00 |ust ....|.@..@...|
|000046f0| 4b d8 c7 ff 2b 07 c8 ff | 20 22 00 00 6c 65 61 76 |K...+...| "..leav|
|00004700| 65 20 69 74 20 6f 75 74 | 2e 0d 08 2c 13 37 7f 00 |e it out|...,.7..|
|00004710| 00 00 00 00 07 ca 7e 00 | 14 38 7f 00 14 38 7f 00 |......~.|.8...8..|
|00004720| 00 00 00 00 00 40 00 00 | 05 84 00 00 00 0c cb 07 |.....@..|........|
|00004730| 74 69 c7 ff 54 98 c7 ff | 20 22 00 00 54 68 65 20 |ti..T...| "..The |
|00004740| 63 6f 64 65 20 77 65 20 | 70 72 65 73 65 6e 74 65 |code we |presente|
|00004750| 64 20 61 74 20 74 68 65 | 20 74 6f 70 20 6f 66 20 |d at the| top of |
|00004760| 74 68 65 20 74 69 65 64 | 20 61 72 72 61 79 20 63 |the tied| array c|
|00004770| 6c 61 73 73 20 61 63 63 | 65 73 73 65 73 20 6d 61 |lass acc|esses ma|
|00004780| 6e 79 20 65 6c 65 6d 65 | 6e 74 73 20 6f 66 20 74 |ny eleme|nts of t|
|00004790| 68 65 20 61 72 72 61 79 | 2c 20 66 61 72 20 6d 6f |he array|, far mo|
|000047a0| 72 65 20 74 68 61 6e 20 | 00 84 00 00 05 88 00 00 |re than |........|
|000047b0| 00 ec e7 07 4d 31 c7 ff | 2d 60 c7 ff 20 22 00 00 |....M1..|-`.. "..|
|000047c0| 77 65 27 76 65 20 73 65 | 74 20 74 68 65 20 62 6f |we've se|t the bo|
|000047d0| 75 6e 64 73 20 74 6f 2e | 20 20 54 68 65 72 65 66 |unds to.| Theref|
|000047e0| 6f 72 65 2c 20 69 74 20 | 77 69 6c 6c 20 62 6c 6f |ore, it |will blo|
|000047f0| 77 20 75 70 20 6f 6e 63 | 65 20 74 68 65 79 20 74 |w up onc|e they t|
|00004800| 72 79 20 74 6f 20 61 63 | 63 65 73 73 20 62 65 79 |ry to ac|cess bey|
|00004810| 6f 6e 64 20 74 68 65 20 | 32 6e 64 20 65 6c 65 6d |ond the |2nd elem|
|00004820| 65 6e 74 20 6f 66 20 40 | 61 72 79 2c 20 00 00 00 |ent of @|ary, ...|
|00004830| 00 88 00 00 a5 6c 00 00 | 40 b4 c1 02 26 f9 c6 ff |.....l..|@...&...|
|00004840| 06 28 c7 ff 20 22 00 00 | 61 73 20 74 68 65 20 66 |.(.. "..|as the f|
|00004850| 6f 6c 6c 6f 77 69 6e 67 | 20 6f 75 74 70 75 74 20 |ollowing| output |
|00004860| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 3a 0d 08 00 |demonstr|ates:...|
|00004870| 14 00 00 00 00 00 00 00 | 07 00 00 00 12 39 7f 00 |........|.....9..|
|00004880| 12 39 7f 00 00 00 00 00 | 07 cf 7e 00 0c 3a 7f 00 |.9......|..~..:..|
|00004890| 12 39 7f 00 0c 3a 7f 00 | 00 00 00 00 00 6c 00 00 |.9...:..|.....l..|
|000048a0| 25 40 00 00 40 30 63 03 | 1f 92 c6 ff 2f b9 c6 ff |%@..@0c.|..../...|
|000048b0| 70 1a 00 00 73 65 74 74 | 69 6e 67 20 69 6e 64 65 |p...sett|ing inde|
|000048c0| 78 20 30 3a 20 76 61 6c | 75 65 20 6f 66 20 65 6c |x 0: val|ue of el|
|000048d0| 74 20 30 20 6e 6f 77 20 | 30 0d 00 00 00 40 00 00 |t 0 now |0....@..|
|000048e0| 25 40 00 00 40 a0 7a 03 | 3f 63 c6 ff 4f 8a c6 ff |%@..@.z.|?c..O...|
|000048f0| 70 1a 00 00 73 65 74 74 | 69 6e 67 20 69 6e 64 65 |p...sett|ing inde|
|00004900| 78 20 31 3a 20 76 61 6c | 75 65 20 6f 66 20 65 6c |x 1: val|ue of el|
|00004910| 74 20 31 20 6e 6f 77 20 | 31 30 0d 00 00 40 00 00 |t 1 now |10...@..|
|00004920| 25 40 00 00 40 a0 7a 03 | 5f 34 c6 ff 6f 5b c6 ff |%@..@.z.|_4..o[..|
|00004930| 70 1a 00 00 73 65 74 74 | 69 6e 67 20 69 6e 64 65 |p...sett|ing inde|
|00004940| 78 20 32 3a 20 76 61 6c | 75 65 20 6f 66 20 65 6c |x 2: val|ue of el|
|00004950| 74 20 32 20 6e 6f 77 20 | 32 30 0d 00 00 40 00 00 |t 2 now |20...@..|
|00004960| 25 58 00 00 40 b0 95 05 | 7f 05 c6 ff 8f 2c c6 ff |%X..@...|.....,..|
|00004970| 70 1a 00 00 73 65 74 74 | 69 6e 67 20 69 6e 64 65 |p...sett|ing inde|
|00004980| 78 20 33 3a 20 41 72 72 | 61 79 20 4f 4f 42 3a 20 |x 3: Arr|ay OOB: |
|00004990| 33 20 3e 20 32 20 61 74 | 20 42 6f 75 6e 64 65 64 |3 > 2 at| Bounded|
|000049a0| 5f 41 72 72 61 79 2e 70 | 6d 20 6c 69 6e 65 20 33 |_Array.p|m line 3|
|000049b0| 39 0d 00 00 00 58 00 00 | a5 78 00 00 40 30 da 04 |9....X..|.x..@0..|
|000049c0| 9f d6 c5 ff af fd c5 ff | 70 1a 00 00 20 20 20 20 |........|p... |
|000049d0| 20 20 20 20 42 6f 75 6e | 64 65 64 5f 41 72 72 61 | Boun|ded_Arra|
|000049e0| 79 3a 3a 46 45 54 43 48 | 20 63 61 6c 6c 65 64 20 |y::FETCH| called |
|000049f0| 61 74 20 74 65 73 74 62 | 61 20 6c 69 6e 65 20 31 |at testb|a line 1|
|00004a00| 32 0d 08 62 0c 3b 7f 00 | 12 39 7f 00 00 00 00 00 |2..b.;..|.9......|
|00004a10| 08 24 21 22 12 00 00 00 | 00 00 00 00 07 20 20 20 |.$!"....|..... |
|00004a20| 18 3c 7f 00 18 3c 7f 00 | 00 00 00 00 00 78 00 00 |.<...<..|.....x..|
|00004a30| a5 34 00 00 40 00 00 00 | 0f c2 c5 ff cf ce c5 ff |.4..@...|........|
|00004a40| 00 00 00 00 0d 08 05 05 | 18 3d 7f 00 00 00 00 00 |........|.=......|
|00004a50| 07 00 00 00 0a 3e 7f 00 | 0a 3e 7f 00 00 00 00 00 |.....>..|.>......|
|00004a60| 00 34 00 00 a5 30 00 00 | 40 4c 4b 01 6f 61 c5 ff |.4...0..|@LK.oa..|
|00004a70| 1f 98 c5 ff 18 2b 00 00 | 54 79 69 6e 67 20 48 61 |.....+..|Tying Ha|
|00004a80| 73 68 65 73 0d 08 7e 00 | 0a 3f 7f 00 00 00 00 00 |shes..~.|.?......|
|00004a90| 00 30 00 00 05 80 00 00 | 00 c4 5b 07 3a 0c c5 ff |.0......|..[.:...|
|00004aa0| 1a 3b c5 ff 20 22 00 00 | 41 73 20 74 68 65 20 66 |.;.. "..|As the f|
|00004ab0| 69 72 73 74 20 50 65 72 | 6c 20 64 61 74 61 20 74 |irst Per|l data t|
|00004ac0| 79 70 65 20 74 6f 20 62 | 65 20 74 69 65 64 20 28 |ype to b|e tied (|
|00004ad0| 73 65 65 20 64 62 6d 6f | 70 65 6e 28 29 29 2c 20 |see dbmo|pen()), |
|00004ae0| 68 61 73 68 65 73 20 68 | 61 76 65 20 74 68 65 20 |hashes h|ave the |
|00004af0| 6d 6f 73 74 20 63 6f 6d | 70 6c 65 74 65 20 61 6e |most com|plete an|
|00004b00| 64 20 75 73 65 66 75 6c | 20 74 69 65 28 29 20 00 |d useful| tie() .|
|00004b10| 00 80 00 00 05 80 00 00 | 00 e4 bc 07 13 d4 c4 ff |........|........|
|00004b20| f3 02 c5 ff 20 22 00 00 | 69 6d 70 6c 65 6d 65 6e |.... "..|implemen|
|00004b30| 74 61 74 69 6f 6e 2e 20 | 20 41 20 63 6c 61 73 73 |tation. | A class|
|00004b40| 20 69 6d 70 6c 65 6d 65 | 6e 74 69 6e 67 20 61 20 | impleme|nting a |
|00004b50| 74 69 65 64 20 68 61 73 | 68 20 73 68 6f 75 6c 64 |tied has|h should|
|00004b60| 20 64 65 66 69 6e 65 20 | 74 68 65 20 66 6f 6c 6c | define |the foll|
|00004b70| 6f 77 69 6e 67 20 6d 65 | 74 68 6f 64 73 3a 20 54 |owing me|thods: T|
|00004b80| 49 45 48 41 53 48 20 69 | 73 20 74 68 65 20 00 00 |IEHASH i|s the ..|
|00004b90| 00 80 00 00 05 80 00 00 | 00 e8 ca 07 ec 9b c4 ff |........|........|
|00004ba0| cc ca c4 ff 20 22 00 00 | 63 6f 6e 73 74 72 75 63 |.... "..|construc|
|00004bb0| 74 6f 72 2e 20 46 45 54 | 43 48 20 61 6e 64 20 53 |tor. FET|CH and S|
|00004bc0| 54 4f 52 45 20 61 63 63 | 65 73 73 20 74 68 65 20 |TORE acc|ess the |
|00004bd0| 6b 65 79 20 61 6e 64 20 | 76 61 6c 75 65 20 70 61 |key and |value pa|
|00004be0| 69 72 73 2e 20 20 45 58 | 49 53 54 53 20 72 65 70 |irs. EX|ISTS rep|
|00004bf0| 6f 72 74 73 20 77 68 65 | 74 68 65 72 20 61 20 6b |orts whe|ther a k|
|00004c00| 65 79 20 69 73 20 70 72 | 65 73 65 6e 74 20 00 00 |ey is pr|esent ..|
|00004c10| 00 80 00 00 05 80 00 00 | 00 dc a0 07 c5 63 c4 ff |........|.....c..|
|00004c20| a5 92 c4 ff 20 22 00 00 | 69 6e 20 74 68 65 20 68 |.... "..|in the h|
|00004c30| 61 73 68 2c 20 61 6e 64 | 20 44 45 4c 45 54 45 20 |ash, and| DELETE |
|00004c40| 64 65 6c 65 74 65 73 20 | 6f 6e 65 2e 20 20 43 4c |deletes |one. CL|
|00004c50| 45 41 52 20 65 6d 70 74 | 69 65 73 20 74 68 65 20 |EAR empt|ies the |
|00004c60| 68 61 73 68 20 62 79 20 | 64 65 6c 65 74 69 6e 67 |hash by |deleting|
|00004c70| 20 61 6c 6c 20 74 68 65 | 20 6b 65 79 20 61 6e 64 | all the| key and|
|00004c80| 20 76 61 6c 75 65 20 70 | 61 69 72 73 2e 20 20 00 | value p|airs. .|
|00004c90| 00 80 00 00 05 7c 00 00 | 00 50 90 07 9e 2b c4 ff |.....|..|.P...+..|
|00004ca0| 7e 5a c4 ff 20 22 00 00 | 46 49 52 53 54 4b 45 59 |~Z.. "..|FIRSTKEY|
|00004cb0| 20 61 6e 64 20 4e 45 58 | 54 4b 45 59 20 69 6d 70 | and NEX|TKEY imp|
|00004cc0| 6c 65 6d 65 6e 74 20 74 | 68 65 20 6b 65 79 73 28 |lement t|he keys(|
|00004cd0| 29 20 61 6e 64 20 65 61 | 63 68 28 29 20 66 75 6e |) and ea|ch() fun|
|00004ce0| 63 74 69 6f 6e 73 20 74 | 6f 20 69 74 65 72 61 74 |ctions t|o iterat|
|00004cf0| 65 20 6f 76 65 72 20 61 | 6c 6c 20 74 68 65 20 6b |e over a|ll the k|
|00004d00| 65 79 73 2e 20 41 6e 64 | 20 00 00 00 00 7c 00 00 |eys. And| ....|..|
|00004d10| 25 58 00 00 40 c0 b3 04 | 77 f3 c3 ff 57 22 c4 ff |%X..@...|w...W"..|
|00004d20| 20 22 00 00 44 45 53 54 | 52 4f 59 20 69 73 20 63 | "..DEST|ROY is c|
|00004d30| 61 6c 6c 65 64 20 77 68 | 65 6e 20 74 68 65 20 74 |alled wh|en the t|
|00004d40| 69 65 64 20 76 61 72 69 | 61 62 6c 65 20 69 73 20 |ied vari|able is |
|00004d50| 67 61 72 62 61 67 65 20 | 63 6f 6c 6c 65 63 74 65 |garbage |collecte|
|00004d60| 64 2e 0d 00 00 58 00 00 | 05 88 00 00 00 20 de 07 |d....X..|..... ..|
|00004d70| a0 84 c3 ff 80 b3 c3 ff | 20 22 00 00 49 66 20 74 |........| "..If t|
|00004d80| 68 69 73 20 73 65 65 6d | 73 20 6c 69 6b 65 20 61 |his seem|s like a|
|00004d90| 20 6c 6f 74 2c 20 74 68 | 65 6e 20 66 65 65 6c 20 | lot, th|en feel |
|00004da0| 66 72 65 65 20 74 6f 20 | 69 6e 68 65 72 69 74 20 |free to |inherit |
|00004db0| 66 72 6f 6d 20 6d 65 72 | 65 6c 79 20 74 68 65 20 |from mer|ely the |
|00004dc0| 73 74 61 6e 64 61 72 64 | 20 54 69 65 3a 3a 48 61 |standard| Tie::Ha|
|00004dd0| 73 68 20 6d 6f 64 75 6c | 65 20 66 6f 72 20 6d 6f |sh modul|e for mo|
|00004de0| 73 74 20 6f 66 20 79 6f | 75 72 20 00 00 88 00 00 |st of yo|ur .....|
|00004df0| a5 8c 00 00 40 68 37 06 | 79 4c c3 ff 59 7b c3 ff |....@h7.|yL..Y{..|
|00004e00| 20 22 00 00 6d 65 74 68 | 6f 64 73 2c 20 72 65 64 | "..meth|ods, red|
|00004e10| 65 66 69 6e 69 6e 67 20 | 6f 6e 6c 79 20 74 68 65 |efining |only the|
|00004e20| 20 69 6e 74 65 72 65 73 | 74 69 6e 67 20 6f 6e 65 | interes|ting one|
|00004e30| 73 2e 20 20 53 65 65 20 | 74 68 65 20 63 68 61 70 |s. See |the chap|
|00004e40| 74 65 72 20 07 e5 7e 00 | 10 40 7f 00 10 40 7f 00 |ter ..~.|.@...@..|
|00004e50| 00 00 00 00 54 69 65 3a | 3a 48 61 73 68 08 20 24 |....Tie:|:Hash. $|
|00004e60| 10 00 00 00 00 00 00 00 | 20 66 6f 72 20 64 65 74 |........| for det|
|00004e70| 61 69 6c 73 2e 0d 00 00 | 00 8c 00 00 05 84 00 00 |ails....|........|
|00004e80| 00 80 b4 07 a2 dd c2 ff | 82 0c c3 ff 20 22 00 00 |........|.... "..|
|00004e90| 52 65 6d 65 6d 62 65 72 | 20 74 68 61 74 20 50 65 |Remember| that Pe|
|00004ea0| 72 6c 20 64 69 73 74 69 | 6e 67 75 69 73 68 65 73 |rl disti|nguishes|
|00004eb0| 20 62 65 74 77 65 65 6e | 20 61 20 6b 65 79 20 6e | between| a key n|
|00004ec0| 6f 74 20 65 78 69 73 74 | 69 6e 67 20 69 6e 20 74 |ot exist|ing in t|
|00004ed0| 68 65 20 68 61 73 68 2c | 20 61 6e 64 20 74 68 65 |he hash,| and the|
|00004ee0| 20 6b 65 79 20 65 78 69 | 73 74 69 6e 67 20 69 6e | key exi|sting in|
|00004ef0| 20 74 68 65 20 68 61 73 | 68 20 00 00 00 84 00 00 | the has|h ......|
|00004f00| 85 c4 00 00 00 fc c2 07 | 7b a5 c2 ff 5b d4 c2 ff |........|{...[...|
|00004f10| 20 22 00 00 62 75 74 20 | 68 61 76 69 6e 67 20 61 | "..but |having a|
|00004f20| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 76 | corresp|onding v|
|00004f30| 61 6c 75 65 20 6f 66 20 | 07 7d 0d 20 0e 41 7f 00 |alue of |.}. .A..|
|00004f40| 0e 41 7f 00 00 00 00 00 | 75 6e 64 65 66 08 0d 7d |.A......|undef..}|
|00004f50| 0e 42 7f 00 00 00 00 00 | 2e 20 20 54 68 65 20 74 |.B......|. The t|
|00004f60| 77 6f 20 70 6f 73 73 69 | 62 69 6c 69 74 69 65 73 |wo possi|bilities|
|00004f70| 20 63 61 6e 20 62 65 20 | 74 65 73 74 65 64 20 77 | can be |tested w|
|00004f80| 69 74 68 20 74 68 65 20 | 07 08 05 05 0e 43 7f 00 |ith the |.....C..|
|00004f90| 0e 43 7f 00 00 00 00 00 | 65 78 69 73 74 73 28 29 |.C......|exists()|
|00004fa0| 08 6d 65 20 0e 44 7f 00 | 00 00 00 00 20 61 6e 64 |.me .D..|.... and|
|00004fb0| 20 07 74 6f 0e 45 7f 00 | 0e 45 7f 00 00 00 00 00 | .to.E..|.E......|
|00004fc0| 00 c4 00 00 a5 48 00 00 | 40 08 c3 01 54 6d c2 ff |.....H..|@...Tm..|
|00004fd0| 34 9c c2 ff ba 1f 00 00 | 64 65 66 69 6e 65 64 28 |4.......|defined(|
|00004fe0| 29 08 69 6c 0e 46 7f 00 | 00 00 00 00 20 66 75 6e |).il.F..|.... fun|
|00004ff0| 63 74 69 6f 6e 73 2e 0d | 07 6f 72 20 14 47 7f 00 |ctions..|.or .G..|
|00005000| 14 47 7f 00 00 00 00 00 | 00 48 00 00 01 10 00 00 |.G......|.H......|
|00005010| 01 30 b6 07 00 00 00 00 | 00 10 00 00 02 18 00 00 |.0......|........|
|00005020| d4 08 00 00 00 00 00 00 | 14 47 7f 00 00 00 00 00 |........|.G......|
|00005030| 00 18 00 00 05 90 00 00 | 00 30 b6 07 0b 46 be ff |........|.0...F..|
|00005040| eb 74 be ff 20 22 00 00 | 16 00 00 00 b0 fc 07 00 |.t.. "..|........|
|00005050| 00 00 00 00 48 65 72 65 | 27 73 20 61 6e 20 65 78 |....Here|'s an ex|
|00005060| 61 6d 70 6c 65 20 6f 66 | 20 61 20 73 6f 6d 65 77 |ample of| a somew|
|00005070| 68 61 74 20 69 6e 74 65 | 72 65 73 74 69 6e 67 20 |hat inte|resting |
|00005080| 74 69 65 64 20 68 61 73 | 68 20 63 6c 61 73 73 3a |tied has|h class:|
|00005090| 20 20 69 74 20 67 69 76 | 65 73 20 79 6f 75 20 61 | it giv|es you a|
|000050a0| 20 68 61 73 68 20 72 65 | 70 72 65 73 65 6e 74 69 | hash re|presenti|
|000050b0| 6e 67 20 61 20 70 61 72 | 74 69 63 75 6c 61 72 20 |ng a par|ticular |
|000050c0| 00 90 00 00 05 88 00 00 | 00 38 cf 07 e4 0d be ff |........|.8......|
|000050d0| c4 3c be ff 20 22 00 00 | 75 73 65 72 27 73 20 64 |.<.. "..|user's d|
|000050e0| 6f 74 20 66 69 6c 65 73 | 2e 20 20 59 6f 75 20 69 |ot files|. You i|
|000050f0| 6e 64 65 78 20 69 6e 74 | 6f 20 74 68 65 20 68 61 |ndex int|o the ha|
|00005100| 73 68 20 77 69 74 68 20 | 74 68 65 20 6e 61 6d 65 |sh with |the name|
|00005110| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 20 28 6d 69 | of the |file (mi|
|00005120| 6e 75 73 20 74 68 65 20 | 64 6f 74 29 20 61 6e 64 |nus the |dot) and|
|00005130| 20 79 6f 75 20 67 65 74 | 20 62 61 63 6b 20 74 68 | you get| back th|
|00005140| 61 74 20 64 6f 74 20 00 | 00 88 00 00 a5 64 00 00 |at dot .|.....d..|
|00005150| 40 f0 1c 02 bd d5 bd ff | 9d 04 be ff 20 22 00 00 |@.......|.... "..|
|00005160| 66 69 6c 65 27 73 20 63 | 6f 6e 74 65 6e 74 73 2e |file's c|ontents.|
|00005170| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0d 08 | For ex|ample:..|
|00005180| 14 00 00 00 00 00 00 00 | 07 00 00 00 12 48 7f 00 |........|.....H..|
|00005190| 12 48 7f 00 00 00 00 00 | 07 6c 65 73 0c 49 7f 00 |.H......|.les.I..|
|000051a0| 12 48 7f 00 0c 49 7f 00 | 00 00 00 00 00 64 00 00 |.H...I..|.....d..|
|000051b0| 25 28 00 00 40 b0 30 01 | b6 6e bd ff c6 95 bd ff |%(..@.0.|.n......|
|000051c0| 70 1a 00 00 75 73 65 20 | 44 6f 74 46 69 6c 65 73 |p...use |DotFiles|
|000051d0| 3b 0d 00 00 00 28 00 00 | 25 30 00 00 40 30 ec 01 |;....(..|%0..@0..|
|000051e0| d6 3f bd ff e6 66 bd ff | 70 1a 00 00 74 69 65 20 |.?...f..|p...tie |
|000051f0| 25 64 6f 74 2c 20 27 44 | 6f 74 46 69 6c 65 73 27 |%dot, 'D|otFiles'|
|00005200| 3b 0d 00 00 00 30 00 00 | 25 3c 00 00 40 e0 1c 03 |;....0..|%<..@...|
|00005210| f6 10 bd ff 06 38 bd ff | 70 1a 00 00 69 66 20 28 |.....8..|p...if (|
|00005220| 20 24 64 6f 74 7b 70 72 | 6f 66 69 6c 65 7d 20 3d | $dot{pr|ofile} =|
|00005230| 7e 20 2f 4d 41 4e 50 41 | 54 48 2f 20 7c 7c 0d 00 |~ /MANPA|TH/ ||..|
|00005240| 00 3c 00 00 25 3c 00 00 | 40 e0 1c 03 16 e2 bc ff |.<..%<..|@.......|
|00005250| 26 09 bd ff 70 1a 00 00 | 20 20 20 20 20 24 64 6f |&...p...| $do|
|00005260| 74 7b 6c 6f 67 69 6e 7d | 20 20 20 3d 7e 20 2f 4d |t{login}| =~ /M|
|00005270| 41 4e 50 41 54 48 2f 20 | 7c 7c 0d 00 00 3c 00 00 |ANPATH/ |||...<..|
|00005280| 25 40 00 00 40 c0 4b 03 | 36 b3 bc ff 46 da bc ff |%@..@.K.|6...F...|
|00005290| 70 1a 00 00 20 20 20 20 | 20 24 64 6f 74 7b 63 73 |p... | $dot{cs|
|000052a0| 68 72 63 7d 20 20 20 3d | 7e 20 2f 4d 41 4e 50 41 |hrc} =|~ /MANPA|
|000052b0| 54 48 2f 20 20 20 20 29 | 0d 00 00 00 00 40 00 00 |TH/ )|.....@..|
|000052c0| 25 1c 00 00 40 70 17 00 | 56 84 bc ff 66 ab bc ff |%...@p..|V...f...|
|000052d0| 70 1a 00 00 7b 0d 00 00 | 00 1c 00 00 25 44 00 00 |p...{...|....%D..|
|000052e0| 40 d0 ef 03 76 55 bc ff | 86 7c bc ff 70 1a 00 00 |@...vU..|.|..p...|
|000052f0| 20 20 20 20 70 72 69 6e | 74 20 22 79 6f 75 20 73 | prin|t "you s|
|00005300| 65 65 6d 20 74 6f 20 73 | 65 74 20 79 6f 75 72 20 |eem to s|et your |
|00005310| 4d 41 4e 50 41 54 48 5c | 6e 22 3b 0d 00 44 00 00 |MANPATH\|n";..D..|
|00005320| a5 44 00 00 40 70 17 00 | 96 26 bc ff a6 4d bc ff |.D..@p..|.&...M..|
|00005330| 70 1a 00 00 7d 0d 08 00 | 0c 4a 7f 00 12 48 7f 00 |p...}...|.J...H..|
|00005340| 00 00 00 00 08 f3 7e 00 | 12 00 00 00 00 00 00 00 |......~.|........|
|00005350| 07 00 00 00 18 4b 7f 00 | 18 4b 7f 00 00 00 00 00 |.....K..|.K......|
|00005360| 00 44 00 00 a5 34 00 00 | 40 00 00 00 06 12 bc ff |.D...4..|@.......|
|00005370| c6 1e bc ff 00 00 00 00 | 0d 08 05 05 18 4c 7f 00 |........|.....L..|
|00005380| 00 00 00 00 07 f5 7e 00 | 14 4d 7f 00 14 4d 7f 00 |......~.|.M...M..|
|00005390| 00 00 00 00 00 34 00 00 | a5 78 00 00 40 80 85 03 |.....4..|.x..@...|
|000053a0| 36 b9 bb ff 16 e8 bb ff | 20 22 00 00 4f 72 20 68 |6.......| "..Or h|
|000053b0| 65 72 65 27 73 20 61 6e | 6f 74 68 65 72 20 73 61 |ere's an|other sa|
|000053c0| 6d 70 6c 65 20 6f 66 20 | 75 73 69 6e 67 20 6f 75 |mple of |using ou|
|000053d0| 72 20 74 69 65 64 20 63 | 6c 61 73 73 3a 0d 08 74 |r tied c|lass:..t|
|000053e0| 14 00 00 00 00 00 00 00 | 07 61 78 69 12 4e 7f 00 |........|.axi.N..|
|000053f0| 12 4e 7f 00 00 00 00 00 | 07 69 6f 72 0c 4f 7f 00 |.N......|.ior.O..|
|00005400| 12 4e 7f 00 0c 4f 7f 00 | 00 00 00 00 00 78 00 00 |.N...O..|.....x..|
|00005410| 25 38 00 00 40 90 d6 02 | 2f 52 bb ff 3f 79 bb ff |%8..@...|/R..?y..|
|00005420| 70 1a 00 00 74 69 65 20 | 25 68 69 6d 2c 20 27 44 |p...tie |%him, 'D|
|00005430| 6f 74 46 69 6c 65 73 27 | 2c 20 27 64 61 65 6d 6f |otFiles'|, 'daemo|
|00005440| 6e 27 3b 0d 00 38 00 00 | 25 34 00 00 40 60 61 02 |n';..8..|%4..@`a.|
|00005450| 4f 23 bb ff 5f 4a bb ff | 70 1a 00 00 66 6f 72 65 |O#.._J..|p...fore|
|00005460| 61 63 68 20 24 66 20 28 | 20 6b 65 79 73 20 25 68 |ach $f (| keys %h|
|00005470| 69 6d 20 29 20 7b 0d 00 | 00 34 00 00 25 48 00 00 |im ) {..|.4..%H..|
|00005480| 40 b0 1e 04 6f f4 ba ff | 7f 1b bb ff 70 1a 00 00 |@...o...|....p...|
|00005490| 20 20 20 20 70 72 69 6e | 74 66 20 22 64 61 65 6d | prin|tf "daem|
|000054a0| 6f 6e 20 64 6f 74 20 66 | 69 6c 65 20 25 73 20 69 |on dot f|ile %s i|
|000054b0| 73 20 73 69 7a 65 20 25 | 64 5c 6e 22 2c 0d 00 00 |s size %|d\n",...|
|000054c0| 00 48 00 00 25 38 00 00 | 40 40 90 02 8f c5 ba ff |.H..%8..|@@......|
|000054d0| 9f ec ba ff 70 1a 00 00 | 20 20 20 20 20 20 20 20 |....p...| |
|000054e0| 24 66 2c 20 6c 65 6e 67 | 74 68 20 24 68 69 6d 7b |$f, leng|th $him{|
|000054f0| 24 66 7d 3b 0d 00 00 00 | 00 38 00 00 a5 44 00 00 |$f};....|.8...D..|
|00005500| 40 70 17 00 af 96 ba ff | bf bd ba ff 70 1a 00 00 |@p......|....p...|
|00005510| 7d 0d 08 73 0c 50 7f 00 | 12 4e 7f 00 00 00 00 00 |}..s.P..|.N......|
|00005520| 08 69 6c 65 12 00 00 00 | 00 00 00 00 07 20 20 20 |.ile....|..... |
|00005530| 18 51 7f 00 18 51 7f 00 | 00 00 00 00 00 44 00 00 |.Q...Q..|.....D..|
|00005540| a5 24 00 00 40 00 00 00 | 1f 82 ba ff df 8e ba ff |.$..@...|........|
|00005550| 00 00 00 00 0d 08 7e 00 | 18 52 7f 00 00 00 00 00 |......~.|.R......|
|00005560| 00 24 00 00 05 88 00 00 | 00 f4 d0 07 4f 29 ba ff |.$......|....O)..|
|00005570| 2f 58 ba ff 20 22 00 00 | 49 6e 20 6f 75 72 20 74 |/X.. "..|In our t|
|00005580| 69 65 64 20 68 61 73 68 | 20 44 6f 74 46 69 6c 65 |ied hash| DotFile|
|00005590| 73 20 65 78 61 6d 70 6c | 65 2c 20 77 65 20 75 73 |s exampl|e, we us|
|000055a0| 65 20 61 20 72 65 67 75 | 6c 61 72 20 68 61 73 68 |e a regu|lar hash|
|000055b0| 20 66 6f 72 20 74 68 65 | 20 6f 62 6a 65 63 74 20 | for the| object |
|000055c0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 73 65 76 65 72 |containi|ng sever|
|000055d0| 61 6c 20 69 6d 70 6f 72 | 74 61 6e 74 20 66 69 65 |al impor|tant fie|
|000055e0| 6c 64 73 2c 20 00 00 00 | 00 88 00 00 a5 a4 00 00 |lds, ...|........|
|000055f0| 40 fc d9 05 28 f1 b9 ff | 08 20 ba ff 20 22 00 00 |@...(...|. .. "..|
|00005600| 6f 66 20 77 68 69 63 68 | 20 6f 6e 6c 79 20 74 68 |of which| only th|
|00005610| 65 20 07 41 0e 53 7f 00 | 0e 53 7f 00 00 00 00 00 |e .A.S..|.S......|
|00005620| 7b 4c 49 53 54 7d 08 20 | 0e 54 7f 00 00 00 00 00 |{LIST}. |.T......|
|00005630| 20 66 69 65 6c 64 20 77 | 69 6c 6c 20 62 65 20 77 | field w|ill be w|
|00005640| 68 61 74 20 74 68 65 20 | 75 73 65 72 20 74 68 69 |hat the |user thi|
|00005650| 6e 6b 73 20 6f 66 20 61 | 73 20 74 68 65 20 72 65 |nks of a|s the re|
|00005660| 61 6c 20 68 61 73 68 2e | 0d 07 65 73 13 55 7f 00 |al hash.|..es.U..|
|00005670| 13 55 7f 00 00 00 00 00 | 07 20 6f 62 09 56 7f 00 |.U......|. ob.V..|
|00005680| 13 55 7f 00 09 56 7f 00 | 00 00 00 00 00 a4 00 00 |.U...V..|........|
|00005690| a5 2c 00 00 40 04 7d 00 | 51 82 b9 ff 31 b1 b9 ff |.,..@.}.|Q...1...|
|000056a0| 28 23 00 00 55 53 45 52 | 0d 08 74 20 09 57 7f 00 |(#..USER|..t .W..|
|000056b0| 13 55 7f 00 00 00 00 00 | 00 2c 00 00 a5 68 00 00 |.U......|.,...h..|
|000056c0| 44 10 11 03 2a 4a b9 ff | 0a 79 b9 ff 20 22 00 00 |D...*J..|.y.. "..|
|000056d0| 12 65 74 68 50 46 00 00 | 00 00 00 00 12 6f 72 20 |.ethPF..|.....or |
|000056e0| 70 17 00 00 00 00 00 00 | 77 68 6f 73 65 20 64 6f |p.......|whose do|
|000056f0| 74 20 66 69 6c 65 73 20 | 74 68 69 73 20 6f 62 6a |t files |this obj|
|00005700| 65 63 74 20 72 65 70 72 | 65 73 65 6e 74 73 0d 07 |ect repr|esents..|
|00005710| 09 58 7f 00 13 55 7f 00 | 09 58 7f 00 00 00 00 00 |.X...U..|.X......|
|00005720| 00 68 00 00 a5 2c 00 00 | 40 74 94 00 53 db b8 ff |.h...,..|@t..S...|
|00005730| 33 0a b9 ff 28 23 00 00 | 48 4f 4d 45 0d 08 20 3d |3...(#..|HOME.. =|
|00005740| 09 59 7f 00 13 55 7f 00 | 00 00 00 00 00 2c 00 00 |.Y...U..|.....,..|
|00005750| a5 5c 00 00 44 08 35 02 | 2c a3 b8 ff 0c d2 b8 ff |.\..D.5.|,.......|
|00005760| 20 22 00 00 12 73 73 20 | 50 46 00 00 00 00 00 00 | "...ss |PF......|
|00005770| 12 3b 0d 20 70 17 00 00 | 00 00 00 00 77 68 65 72 |.;. p...|....wher|
|00005780| 65 20 74 68 6f 73 65 20 | 64 6f 74 20 66 69 6c 65 |e those |dot file|
|00005790| 73 20 6c 69 76 65 0d 07 | 09 5a 7f 00 13 55 7f 00 |s live..|.Z...U..|
|000057a0| 09 5a 7f 00 00 00 00 00 | 00 5c 00 00 a5 30 00 00 |.Z......|.\...0..|
|000057b0| 40 38 e5 00 55 34 b8 ff | 35 63 b8 ff 28 23 00 00 |@8..U4..|5c..(#..|
|000057c0| 43 4c 4f 42 42 45 52 0d | 08 c8 7e 00 09 5b 7f 00 |CLOBBER.|..~..[..|
|000057d0| 13 55 7f 00 00 00 00 00 | 00 30 00 00 a5 7c 00 00 |.U......|.0...|..|
|000057e0| 44 18 9e 04 2e fc b7 ff | 0e 2b b8 ff 20 22 00 00 |D.......|.+.. "..|
|000057f0| 12 00 00 00 50 46 00 00 | 00 00 00 00 12 00 00 00 |....PF..|........|
|00005800| 70 17 00 00 00 00 00 00 | 77 68 65 74 68 65 72 20 |p.......|whether |
|00005810| 77 65 20 73 68 6f 75 6c | 64 20 74 72 79 20 74 6f |we shoul|d try to|
|00005820| 20 63 68 61 6e 67 65 20 | 6f 72 20 72 65 6d 6f 76 | change |or remov|
|00005830| 65 20 74 68 6f 73 65 20 | 64 6f 74 20 66 69 6c 65 |e those |dot file|
|00005840| 73 0d 07 65 09 5c 7f 00 | 13 55 7f 00 09 5c 7f 00 |s..e.\..|.U...\..|
|00005850| 00 00 00 00 00 7c 00 00 | a5 2c 00 00 40 d4 6a 00 |.....|..|.,..@.j.|
|00005860| 57 8d b7 ff 37 bc b7 ff | 28 23 00 00 4c 49 53 54 |W...7...|(#..LIST|
|00005870| 0d 08 73 20 09 5d 7f 00 | 13 55 7f 00 00 00 00 00 |..s .]..|.U......|
|00005880| 00 2c 00 00 a5 7c 00 00 | 44 e4 e7 03 30 55 b7 ff |.,...|..|D...0U..|
|00005890| 10 84 b7 ff 20 22 00 00 | 12 62 75 73 50 46 00 00 |.... "..|.busPF..|
|000058a0| 00 00 00 00 12 64 20 67 | 70 17 00 00 00 00 00 00 |.....d g|p.......|
|000058b0| 74 68 65 20 68 61 73 68 | 20 6f 66 20 64 6f 74 20 |the hash| of dot |
|000058c0| 66 69 6c 65 20 6e 61 6d | 65 73 20 61 6e 64 20 63 |file nam|es and c|
|000058d0| 6f 6e 74 65 6e 74 20 6d | 61 70 70 69 6e 67 73 0d |ontent m|appings.|
|000058e0| 08 6c 79 20 13 5e 7f 00 | 00 00 00 00 07 0d 07 05 |.ly .^..|........|
|000058f0| 14 5f 7f 00 14 5f 7f 00 | 00 00 00 00 00 7c 00 00 |._..._..|.....|..|
|00005900| a5 88 00 00 40 14 98 02 | 59 e6 b6 ff 39 15 b7 ff |....@...|Y...9...|
|00005910| 20 22 00 00 48 65 72 65 | 27 73 20 74 68 65 20 73 | "..Here|'s the s|
|00005920| 74 61 72 74 20 6f 66 20 | 07 61 20 74 06 60 7f 00 |tart of |.a t.`..|
|00005930| 14 5f 7f 00 06 60 7f 00 | 00 00 00 00 44 6f 74 66 |._...`..|....Dotf|
|00005940| 69 6c 65 73 2e 70 6d 08 | 06 61 7f 00 14 5f 7f 00 |iles.pm.|.a..._..|
|00005950| 00 00 00 00 3a 0d 08 69 | 14 00 00 00 00 00 00 00 |....:..i|........|
|00005960| 07 73 3a 20 12 62 7f 00 | 12 62 7f 00 00 00 00 00 |.s: .b..|.b......|
|00005970| 07 43 48 2c 0c 63 7f 00 | 12 62 7f 00 0c 63 7f 00 |.CH,.c..|.b...c..|
|00005980| 00 00 00 00 00 88 00 00 | 25 2c 00 00 40 70 8e 01 |........|%,..@p..|
|00005990| 52 7f b6 ff 62 a6 b6 ff | 70 1a 00 00 70 61 63 6b |R...b...|p...pack|
|000059a0| 61 67 65 20 44 6f 74 46 | 69 6c 65 73 3b 0d 00 00 |age DotF|iles;...|
|000059b0| 00 2c 00 00 25 24 00 00 | 40 f0 d2 00 72 50 b6 ff |.,..%$..|@...rP..|
|000059c0| 82 77 b6 ff 70 1a 00 00 | 75 73 65 20 43 61 72 70 |.w..p...|use Carp|
|000059d0| 3b 0d 00 00 00 24 00 00 | 25 40 00 00 40 30 63 03 |;....$..|%@..@0c.|
|000059e0| 92 21 b6 ff a2 48 b6 ff | 70 1a 00 00 73 75 62 20 |.!...H..|p...sub |
|000059f0| 77 68 6f 77 61 73 69 20 | 7b 20 28 63 61 6c 6c 65 |whowasi |{ (calle|
|00005a00| 72 28 31 29 29 5b 33 5d | 20 2e 20 27 28 29 27 20 |r(1))[3]| . '()' |
|00005a10| 7d 0d 00 00 00 40 00 00 | 25 28 00 00 40 20 48 01 |}....@..|%(..@ H.|
|00005a20| b2 f2 b5 ff c2 19 b6 ff | 70 1a 00 00 6d 79 20 24 |........|p...my $|
|00005a30| 44 45 42 55 47 20 3d 20 | 30 3b 0d 00 00 28 00 00 |DEBUG = |0;...(..|
|00005a40| a5 68 00 00 40 30 63 03 | d2 c3 b5 ff e2 ea b5 ff |.h..@0c.|........|
|00005a50| 70 1a 00 00 73 75 62 20 | 64 65 62 75 67 20 7b 20 |p...sub |debug { |
|00005a60| 24 44 45 42 55 47 20 3d | 20 40 5f 20 3f 20 73 68 |$DEBUG =| @_ ? sh|
|00005a70| 69 66 74 20 3a 20 31 20 | 7d 0d 08 76 0c 64 7f 00 |ift : 1 |}..v.d..|
|00005a80| 12 62 7f 00 00 00 00 00 | 08 6e 63 74 12 00 00 00 |.b......|.nct....|
|00005a90| 00 00 00 00 07 88 9d 07 | 18 65 7f 00 18 65 7f 00 |........|.e...e..|
|00005aa0| 00 00 00 00 00 68 00 00 | a5 24 00 00 40 00 00 00 |.....h..|.$..@...|
|00005ab0| 42 af b5 ff 02 bc b5 ff | 00 00 00 00 0d 08 20 69 |B.......|...... i|
|00005ac0| 18 66 7f 00 00 00 00 00 | 00 24 00 00 05 80 00 00 |.f......|.$......|
|00005ad0| 00 2c 93 07 72 56 b5 ff | 52 85 b5 ff 20 22 00 00 |.,..rV..|R... "..|
|00005ae0| 46 6f 72 20 6f 75 72 20 | 65 78 61 6d 70 6c 65 2c |For our |example,|
|00005af0| 20 77 65 20 77 61 6e 74 | 20 74 6f 20 62 65 20 61 | we want| to be a|
|00005b00| 62 6c 65 20 74 6f 20 65 | 6d 69 74 20 64 65 62 75 |ble to e|mit debu|
|00005b10| 67 67 69 6e 67 20 69 6e | 66 6f 20 74 6f 20 68 65 |gging in|fo to he|
|00005b20| 6c 70 20 69 6e 20 74 72 | 61 63 69 6e 67 20 64 75 |lp in tr|acing du|
|00005b30| 72 69 6e 67 20 64 65 76 | 65 6c 6f 70 6d 65 6e 74 |ring dev|elopment|
|00005b40| 2e 20 20 57 65 20 00 00 | 00 80 00 00 05 80 00 00 |. We ..|........|
|00005b50| 00 f4 8b 07 4b 1e b5 ff | 2b 4d b5 ff 20 22 00 00 |....K...|+M.. "..|
|00005b60| 6b 65 65 70 20 61 6c 73 | 6f 20 6f 6e 65 20 63 6f |keep als|o one co|
|00005b70| 6e 76 65 6e 69 65 6e 63 | 65 20 66 75 6e 63 74 69 |nvenienc|e functi|
|00005b80| 6f 6e 20 61 72 6f 75 6e | 64 20 69 6e 74 65 72 6e |on aroun|d intern|
|00005b90| 61 6c 6c 79 20 74 6f 20 | 68 65 6c 70 20 70 72 69 |ally to |help pri|
|00005ba0| 6e 74 20 6f 75 74 20 77 | 61 72 6e 69 6e 67 73 3b |nt out w|arnings;|
|00005bb0| 20 77 68 6f 77 61 73 69 | 28 29 20 72 65 74 75 72 | whowasi|() retur|
|00005bc0| 6e 73 20 74 68 65 20 00 | 00 80 00 00 25 38 00 00 |ns the .|....%8..|
|00005bd0| 40 a8 f2 01 24 e6 b4 ff | 04 15 b5 ff 20 22 00 00 |@...$...|.... "..|
|00005be0| 66 75 6e 63 74 69 6f 6e | 20 6e 61 6d 65 20 74 68 |function| name th|
|00005bf0| 61 74 20 63 61 6c 6c 73 | 20 69 74 2e 0d 00 00 00 |at calls| it.....|
|00005c00| 00 38 00 00 a5 6c 00 00 | 40 94 83 03 4d 77 b4 ff |.8...l..|@...Mw..|
|00005c10| 2d a6 b4 ff 20 22 00 00 | 48 65 72 65 20 61 72 65 |-... "..|Here are|
|00005c20| 20 74 68 65 20 6d 65 74 | 68 6f 64 73 20 66 6f 72 | the met|hods for|
|00005c30| 20 74 68 65 20 44 6f 74 | 46 69 6c 65 73 20 74 69 | the Dot|Files ti|
|00005c40| 65 64 20 68 61 73 68 2e | 0d 07 31 3b 13 67 7f 00 |ed hash.|..1;.g..|
|00005c50| 13 67 7f 00 00 00 00 00 | 07 20 31 30 09 68 7f 00 |.g......|. 10.h..|
|00005c60| 13 67 7f 00 09 68 7f 00 | 00 00 00 00 00 6c 00 00 |.g...h..|.....l..|
|00005c70| a5 40 00 00 40 b4 2e 02 | 76 08 b4 ff 56 37 b4 ff |.@..@...|v...V7..|
|00005c80| 28 23 00 00 54 49 45 48 | 41 53 48 20 63 6c 61 73 |(#..TIEH|ASH clas|
|00005c90| 73 6e 61 6d 65 2c 20 4c | 49 53 54 0d 08 61 72 79 |sname, L|IST..ary|
|00005ca0| 09 69 7f 00 13 67 7f 00 | 00 00 00 00 00 40 00 00 |.i...g..|.....@..|
|00005cb0| 05 98 00 00 04 64 a6 07 | 4f d0 b3 ff 2f ff b3 ff |.....d..|O.../...|
|00005cc0| 20 22 00 00 12 6c 74 20 | 50 46 00 00 00 00 00 00 | "...lt |PF......|
|00005cd0| 12 72 79 5b 70 17 00 00 | 00 00 00 00 54 68 69 73 |.ry[p...|....This|
|00005ce0| 20 69 73 20 74 68 65 20 | 63 6f 6e 73 74 72 75 63 | is the |construc|
|00005cf0| 74 6f 72 20 66 6f 72 20 | 74 68 65 20 63 6c 61 73 |tor for |the clas|
|00005d00| 73 2e 20 20 54 68 61 74 | 20 6d 65 61 6e 73 20 69 |s. That| means i|
|00005d10| 74 20 69 73 20 65 78 70 | 65 63 74 65 64 20 74 6f |t is exp|ected to|
|00005d20| 20 72 65 74 75 72 6e 20 | 61 20 62 6c 65 73 73 65 | return |a blesse|
|00005d30| 64 20 72 65 66 65 72 65 | 6e 63 65 20 74 68 72 6f |d refere|nce thro|
|00005d40| 75 67 68 20 00 98 00 00 | 25 70 00 00 40 f8 91 06 |ugh ....|%p..@...|
|00005d50| 28 98 b3 ff 08 c7 b3 ff | 20 22 00 00 77 68 69 63 |(.......| "..whic|
|00005d60| 68 20 74 68 65 20 6e 65 | 77 20 6f 62 6a 65 63 74 |h the ne|w object|
|00005d70| 20 28 70 72 6f 62 61 62 | 6c 79 20 62 75 74 20 6e | (probab|ly but n|
|00005d80| 6f 74 20 6e 65 63 65 73 | 73 61 72 69 6c 79 20 61 |ot neces|sarily a|
|00005d90| 6e 20 61 6e 6f 6e 79 6d | 6f 75 73 20 68 61 73 68 |n anonym|ous hash|
|00005da0| 29 20 77 69 6c 6c 20 62 | 65 20 61 63 63 65 73 73 |) will b|e access|
|00005db0| 65 64 2e 0d 00 70 00 00 | a5 98 00 00 44 24 04 02 |ed...p..|....D$..|
|00005dc0| 51 29 b3 ff 31 58 b3 ff | 20 22 00 00 12 17 7f 00 |Q)..1X..| "......|
|00005dd0| 50 46 00 00 00 00 00 00 | 12 08 05 05 70 17 00 00 |PF......|....p...|
|00005de0| 00 00 00 00 07 05 05 05 | 14 6a 7f 00 13 67 7f 00 |........|.j...g..|
|00005df0| 14 6a 7f 00 00 00 00 00 | 48 65 72 65 27 73 20 74 |.j......|Here's t|
|00005e00| 68 65 20 63 6f 6e 73 74 | 72 75 63 74 6f 72 3a 0d |he const|ructor:.|
|00005e10| 08 63 6c 61 14 00 00 00 | 13 67 7f 00 00 00 00 00 |.cla....|.g......|
|00005e20| 07 08 05 05 12 6b 7f 00 | 13 67 7f 00 12 6b 7f 00 |.....k..|.g...k..|
|00005e30| 00 00 00 00 07 73 20 69 | 0c 6c 7f 00 13 67 7f 00 |.....s i|.l...g..|
|00005e40| 12 6b 7f 00 0c 6c 7f 00 | 00 00 00 00 00 98 00 00 |.k...l..|........|
|00005e50| 01 10 00 00 41 b0 30 01 | 00 00 00 00 00 10 00 00 |....A.0.|........|
|00005e60| 02 20 00 00 70 0a 00 00 | 00 00 00 00 13 67 7f 00 |. ..p...|.....g..|
|00005e70| 12 6b 7f 00 0c 6c 7f 00 | 00 00 00 00 00 20 00 00 |.k...l..|..... ..|
|00005e80| 25 34 00 00 40 b0 30 01 | 2a 4e b1 ff 3a 75 b1 ff |%4..@.0.|*N..:u..|
|00005e90| 70 1a 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 |p.......|........|
|00005ea0| 73 75 62 20 54 49 45 48 | 41 53 48 20 7b 0d 00 00 |sub TIEH|ASH {...|
|00005eb0| 00 34 00 00 25 30 00 00 | 40 30 ec 01 4a 1f b1 ff |.4..%0..|@0..J...|
|00005ec0| 5a 46 b1 ff 70 1a 00 00 | 20 20 20 20 6d 79 20 24 |ZF..p...| my $|
|00005ed0| 73 65 6c 66 20 3d 20 73 | 68 69 66 74 3b 0d 00 00 |self = s|hift;...|
|00005ee0| 00 30 00 00 25 34 00 00 | 40 d0 78 02 6a f0 b0 ff |.0..%4..|@.x.j...|
|00005ef0| 7a 17 b1 ff 70 1a 00 00 | 20 20 20 20 6d 79 20 24 |z...p...| my $|
|00005f00| 75 73 65 72 20 3d 20 73 | 68 69 66 74 20 7c 7c 20 |user = s|hift || |
|00005f10| 24 3e 3b 0d 00 34 00 00 | 25 38 00 00 40 b0 a7 02 |$>;..4..|%8..@...|
|00005f20| 8a c1 b0 ff 9a e8 b0 ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00005f30| 6d 79 20 24 64 6f 74 64 | 69 72 20 3d 20 73 68 69 |my $dotd|ir = shi|
|00005f40| 66 74 20 7c 7c 20 27 27 | 3b 0d 00 00 00 38 00 00 |ft || ''|;....8..|
|00005f50| 25 50 00 00 40 10 09 05 | aa 92 b0 ff ba b9 b0 ff |%P..@...|........|
|00005f60| 70 1a 00 00 20 20 20 20 | 63 72 6f 61 6b 20 22 75 |p... |croak "u|
|00005f70| 73 61 67 65 3a 20 40 7b | 5b 26 77 68 6f 77 61 73 |sage: @{|[&whowas|
|00005f80| 69 5d 7d 20 5b 55 53 45 | 52 20 5b 44 4f 54 44 49 |i]} [USE|R [DOTDI|
|00005f90| 52 5d 5d 22 20 69 66 20 | 40 5f 3b 0d 00 50 00 00 |R]]" if |@_;..P..|
|00005fa0| 25 4c 00 00 40 00 65 04 | ca 63 b0 ff da 8a b0 ff |%L..@.e.|.c......|
|00005fb0| 70 1a 00 00 20 20 20 20 | 24 75 73 65 72 20 3d 20 |p... |$user = |
|00005fc0| 67 65 74 70 77 75 69 64 | 28 24 75 73 65 72 29 20 |getpwuid|($user) |
|00005fd0| 69 66 20 24 75 73 65 72 | 20 3d 7e 20 2f 5e 5c 64 |if $user| =~ /^\d|
|00005fe0| 2b 24 2f 3b 0d 00 00 00 | 00 4c 00 00 25 3c 00 00 |+$/;....|.L..%<..|
|00005ff0| 40 e0 1c 03 ea 34 b0 ff | fa 5b b0 ff 70 1a 00 00 |@....4..|.[..p...|
|00006000| 20 20 20 20 6d 79 20 24 | 64 69 72 20 3d 20 28 67 | my $|dir = (g|
|00006010| 65 74 70 77 6e 61 6d 28 | 24 75 73 65 72 29 29 5b |etpwnam(|$user))[|
|00006020| 37 5d 0d 00 00 3c 00 00 | 25 50 00 00 40 c0 c2 04 |7]...<..|%P..@...|
|00006030| 0a 06 b0 ff 1a 2d b0 ff | 70 1a 00 00 20 20 20 20 |.....-..|p... |
|00006040| 20 20 20 20 20 20 20 20 | 7c 7c 20 63 72 6f 61 6b | ||| croak|
|00006050| 20 22 40 7b 5b 26 77 68 | 6f 77 61 73 69 5d 7d 3a | "@{[&wh|owasi]}:|
|00006060| 20 6e 6f 20 75 73 65 72 | 20 24 75 73 65 72 22 3b | no user| $user";|
|00006070| 0d 00 00 00 00 50 00 00 | a5 70 00 00 40 e0 1c 03 |.....P..|.p..@...|
|00006080| 2a d7 af ff 3a fe af ff | 70 1a 00 00 20 20 20 20 |*...:...|p... |
|00006090| 24 64 69 72 20 2e 3d 20 | 22 2f 24 64 6f 74 64 69 |$dir .= |"/$dotdi|
|000060a0| 72 22 20 69 66 20 24 64 | 6f 74 64 69 72 3b 0d 08 |r" if $d|otdir;..|
|000060b0| 0c 6d 7f 00 13 67 7f 00 | 12 6b 7f 00 00 00 00 00 |.m...g..|.k......|
|000060c0| 08 73 20 62 12 00 00 00 | 13 67 7f 00 00 00 00 00 |.s b....|.g......|
|000060d0| 07 73 6f 6d 18 6e 7f 00 | 13 67 7f 00 18 6e 7f 00 |.som.n..|.g...n..|
|000060e0| 00 00 00 00 00 70 00 00 | a5 54 00 00 40 00 00 00 |.....p..|.T..@...|
|000060f0| 9a c2 af ff 5a cf af ff | 00 00 00 00 0d 08 20 6f |....Z...|...... o|
|00006100| 18 6f 7f 00 13 67 7f 00 | 00 00 00 00 07 65 72 20 |.o...g..|.....er |
|00006110| 12 70 7f 00 13 67 7f 00 | 12 70 7f 00 00 00 00 00 |.p...g..|.p......|
|00006120| 07 2d 7f 00 0c 71 7f 00 | 13 67 7f 00 12 70 7f 00 |.-...q..|.g...p..|
|00006130| 0c 71 7f 00 00 00 00 00 | 00 54 00 00 25 28 00 00 |.q......|.T..%(..|
|00006140| 40 40 19 01 9a 71 af ff | aa 98 af ff 70 1a 00 00 |@@...q..|....p...|
|00006150| 6d 79 20 24 6e 6f 64 65 | 20 3d 20 7b 0d 00 00 00 |my $node| = {....|
|00006160| 00 28 00 00 25 30 00 00 | 40 30 ec 01 ba 42 af ff |.(..%0..|@0...B..|
|00006170| ca 69 af ff 70 1a 00 00 | 20 20 20 20 55 53 45 52 |.i..p...| USER|
|00006180| 20 20 20 20 3d 3e 20 24 | 75 73 65 72 2c 0d 00 00 | => $|user,...|
|00006190| 00 30 00 00 25 30 00 00 | 40 c0 d4 01 da 13 af ff |.0..%0..|@.......|
|000061a0| ea 3a af ff 70 1a 00 00 | 20 20 20 20 48 4f 4d 45 |.:..p...| HOME|
|000061b0| 20 20 20 20 3d 3e 20 24 | 64 69 72 2c 0d 00 00 00 | => $|dir,....|
|000061c0| 00 30 00 00 25 2c 00 00 | 40 e0 a5 01 fa e4 ae ff |.0..%,..|@.......|
|000061d0| 0a 0c af ff 70 1a 00 00 | 20 20 20 20 4c 49 53 54 |....p...| LIST|
|000061e0| 20 20 20 20 3d 3e 20 7b | 7d 2c 0d 00 00 2c 00 00 | => {|},...,..|
|000061f0| 25 2c 00 00 40 70 8e 01 | 1a b6 ae ff 2a dd ae ff |%,..@p..|....*...|
|00006200| 70 1a 00 00 20 20 20 20 | 43 4c 4f 42 42 45 52 20 |p... |CLOBBER |
|00006210| 3d 3e 20 30 2c 0d 00 00 | 00 2c 00 00 a5 50 00 00 |=> 0,...|.,...P..|
|00006220| 40 e0 2e 00 3a 87 ae ff | 4a ae ae ff 70 1a 00 00 |@...:...|J...p...|
|00006230| 7d 3b 0d 08 0c 72 7f 00 | 13 67 7f 00 12 70 7f 00 |};...r..|.g...p..|
|00006240| 00 00 00 00 08 68 65 72 | 12 00 00 00 13 67 7f 00 |.....her|.....g..|
|00006250| 00 00 00 00 07 6c 65 3a | 18 73 7f 00 13 67 7f 00 |.....le:|.s...g..|
|00006260| 18 73 7f 00 00 00 00 00 | 00 50 00 00 a5 54 00 00 |.s......|.P...T..|
|00006270| 40 00 00 00 aa 72 ae ff | 6a 7f ae ff 00 00 00 00 |@....r..|j.......|
|00006280| 0d 08 7f 00 18 74 7f 00 | 13 67 7f 00 00 00 00 00 |.....t..|.g......|
|00006290| 07 00 00 00 12 75 7f 00 | 13 67 7f 00 12 75 7f 00 |.....u..|.g...u..|
|000062a0| 00 00 00 00 07 24 73 65 | 0c 76 7f 00 13 67 7f 00 |.....$se|.v...g..|
|000062b0| 12 75 7f 00 0c 76 7f 00 | 00 00 00 00 00 54 00 00 |.u...v..|.....T..|
|000062c0| 25 30 00 00 40 a0 03 02 | aa 21 ae ff ba 48 ae ff |%0..@...|.!...H..|
|000062d0| 70 1a 00 00 20 20 20 20 | 6f 70 65 6e 64 69 72 28 |p... |opendir(|
|000062e0| 44 49 52 2c 20 24 64 69 | 72 29 0d 00 00 30 00 00 |DIR, $di|r)...0..|
|000062f0| 25 58 00 00 40 b0 95 05 | ca f2 ad ff da 19 ae ff |%X..@...|........|
|00006300| 70 1a 00 00 20 20 20 20 | 20 20 20 20 20 20 20 20 |p... | |
|00006310| 7c 7c 20 63 72 6f 61 6b | 20 22 40 7b 5b 26 77 68 ||| croak| "@{[&wh|
|00006320| 6f 77 61 73 69 5d 7d 3a | 20 63 61 6e 27 74 20 6f |owasi]}:| can't o|
|00006330| 70 65 6e 64 69 72 20 24 | 64 69 72 3a 20 24 21 22 |pendir $|dir: $!"|
|00006340| 3b 0d 00 00 00 58 00 00 | 25 58 00 00 40 20 ad 05 |;....X..|%X..@ ..|
|00006350| ea c3 ad ff fa ea ad ff | 70 1a 00 00 20 20 20 20 |........|p... |
|00006360| 66 6f 72 65 61 63 68 20 | 24 64 6f 74 20 28 20 67 |foreach |$dot ( g|
|00006370| 72 65 70 20 2f 5e 5c 2e | 2f 20 26 26 20 2d 66 20 |rep /^\.|/ && -f |
|00006380| 22 24 64 69 72 2f 24 5f | 22 2c 20 72 65 61 64 64 |"$dir/$_|", readd|
|00006390| 69 72 28 44 49 52 29 29 | 20 7b 0d 00 00 58 00 00 |ir(DIR))| {...X..|
|000063a0| 25 34 00 00 40 80 32 02 | 0a 95 ad ff 1a bc ad ff |%4..@.2.|........|
|000063b0| 70 1a 00 00 20 20 20 20 | 20 20 20 20 24 64 6f 74 |p... | $dot|
|000063c0| 20 3d 7e 20 73 2f 5e 5c | 2e 2f 2f 3b 0d 00 00 00 | =~ s/^\|.//;....|
|000063d0| 00 34 00 00 25 40 00 00 | 40 c0 4b 03 2a 66 ad ff |.4..%@..|@.K.*f..|
|000063e0| 3a 8d ad ff 70 1a 00 00 | 20 20 20 20 20 20 20 20 |:...p...| |
|000063f0| 24 6e 6f 64 65 2d 3e 7b | 4c 49 53 54 7d 7b 24 64 |$node->{|LIST}{$d|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.