home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-08-20 | 253.0 KB | [ TEXT/ALFA]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Aug 20 14:46:15 1994, modified Sat Aug 20 14:46:15 1994, creator Alpha editor, type ASCII, 230857 bytes "Perl Commands" , at 0x38649 27939 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ ALFA]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0d 50 65 72 6c 20 43 | 6f 6d 6d 61 6e 64 73 00 |..Perl C|ommands.| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 41 4c 46 | 41 01 00 00 00 00 00 00 |.TEXTALF|A.......| |00000050| 00 00 00 00 03 85 c9 00 | 00 6d 23 aa 7b ff f7 aa |........|.m#.{...| |00000060| 7b ff f7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |{.......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 21 b0 00 00 |........|....!...| |00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000000d0| 0d 0d 20 4e 6f 74 65 3a | 20 54 6f 20 69 6e 73 74 |.. Note:| To inst| |000000e0| 61 6c 6c 20 74 68 65 20 | 50 65 72 6c 20 6d 6f 64 |all the |Perl mod| |000000f0| 65 20 61 6e 64 20 6d 65 | 6e 75 2c 20 73 65 6c 65 |e and me|nu, sele| |00000100| 63 74 20 74 68 65 20 6d | 65 6e 75 20 69 74 65 6d |ct the m|enu item| |00000110| 0d 09 20 22 55 74 69 6c | 73 3a 49 6e 73 74 61 6c |.. "Util|s:Instal| |00000120| 6c 3a 4d 61 63 50 65 72 | 6c 22 2e 0d 0d 3d 3d 3d |l:MacPer|l"...===| |00000130| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000140| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000150| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000160| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000170| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 0d 4e |========|=====..N| |00000180| 41 4d 45 0d 20 20 20 20 | 20 70 65 72 6c 20 2d 20 |AME. | perl - | |00000190| 50 72 61 63 74 69 63 61 | 6c 20 45 78 74 72 61 63 |Practica|l Extrac| |000001a0| 74 69 6f 6e 20 61 6e 64 | 20 52 65 70 6f 72 74 20 |tion and| Report | |000001b0| 4c 61 6e 67 75 61 67 65 | 0d 0d 53 59 4e 4f 50 53 |Language|..SYNOPS| |000001c0| 49 53 0d 20 20 20 20 20 | 70 65 72 6c 20 5b 6f 70 |IS. |perl [op| |000001d0| 74 69 6f 6e 73 5d 20 66 | 69 6c 65 6e 61 6d 65 20 |tions] f|ilename | |000001e0| 61 72 67 73 0d 0d 44 45 | 53 43 52 49 50 54 49 4f |args..DE|SCRIPTIO| |000001f0| 4e 0d 20 20 20 20 20 50 | 65 72 6c 20 69 73 20 61 |N. P|erl is a| |00000200| 6e 20 69 6e 74 65 72 70 | 72 65 74 65 64 20 6c 61 |n interp|reted la| |00000210| 6e 67 75 61 67 65 20 6f | 70 74 69 6d 69 7a 65 64 |nguage o|ptimized| |00000220| 20 66 6f 72 20 73 63 61 | 6e 6e 69 6e 67 20 61 72 | for sca|nning ar| |00000230| 62 69 2d 0d 20 20 20 20 | 20 74 72 61 72 79 20 20 |bi-. | trary | |00000240| 74 65 78 74 20 20 66 69 | 6c 65 73 2c 20 20 65 78 |text fi|les, ex| |00000250| 74 72 61 63 74 69 6e 67 | 20 20 69 6e 66 6f 72 6d |tracting| inform| |00000260| 61 74 69 6f 6e 20 66 72 | 6f 6d 20 74 68 6f 73 65 |ation fr|om those| |00000270| 20 74 65 78 74 0d 20 20 | 20 20 20 66 69 6c 65 73 | text. | files| |00000280| 2c 20 61 6e 64 20 70 72 | 69 6e 74 69 6e 67 20 72 |, and pr|inting r| |00000290| 65 70 6f 72 74 73 20 62 | 61 73 65 64 20 6f 6e 20 |eports b|ased on | |000002a0| 74 68 61 74 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |that inf|ormation| |000002b0| 2e 20 20 49 74 27 73 0d | 20 20 20 20 20 61 6c 73 |. It's.| als| |000002c0| 6f 20 20 61 20 67 6f 6f | 64 20 6c 61 6e 67 75 61 |o a goo|d langua| |000002d0| 67 65 20 66 6f 72 20 6d | 61 6e 79 20 73 79 73 74 |ge for m|any syst| |000002e0| 65 6d 20 6d 61 6e 61 67 | 65 6d 65 6e 74 20 74 61 |em manag|ement ta| |000002f0| 73 6b 73 2e 20 20 54 68 | 65 0d 20 20 20 20 20 6c |sks. Th|e. l| |00000300| 61 6e 67 75 61 67 65 20 | 69 73 20 69 6e 74 65 6e |anguage |is inten| |00000310| 64 65 64 20 74 6f 20 62 | 65 20 70 72 61 63 74 69 |ded to b|e practi| |00000320| 63 61 6c 20 20 28 65 61 | 73 79 20 20 74 6f 20 20 |cal (ea|sy to | |00000330| 75 73 65 2c 20 20 65 66 | 66 69 2d 0d 20 20 20 20 |use, ef|fi-. | |00000340| 20 63 69 65 6e 74 2c 20 | 20 63 6f 6d 70 6c 65 74 | cient, | complet| |00000350| 65 29 20 20 72 61 74 68 | 65 72 20 20 74 68 61 6e |e) rath|er than| |00000360| 20 20 62 65 61 75 74 69 | 66 75 6c 20 20 28 74 69 | beauti|ful (ti| |00000370| 6e 79 2c 20 20 65 6c 65 | 67 61 6e 74 2c 0d 20 20 |ny, ele|gant,. | |00000380| 20 20 20 6d 69 6e 69 6d | 61 6c 29 2e 20 20 49 74 | minim|al). It| |00000390| 20 63 6f 6d 62 69 6e 65 | 73 20 28 69 6e 20 20 74 | combine|s (in t| |000003a0| 68 65 20 20 61 75 74 68 | 6f 72 27 73 20 20 6f 70 |he auth|or's op| |000003b0| 69 6e 69 6f 6e 2c 20 20 | 61 6e 79 77 61 79 29 0d |inion, |anyway).| |000003c0| 20 20 20 20 20 73 6f 6d | 65 20 20 6f 66 20 74 68 | som|e of th| |000003d0| 65 20 62 65 73 74 20 66 | 65 61 74 75 72 65 73 20 |e best f|eatures | |000003e0| 6f 66 20 43 2c 20 73 65 | 64 2c 20 61 77 6b 2c 20 |of C, se|d, awk, | |000003f0| 61 6e 64 20 73 68 2c 20 | 73 6f 20 70 65 6f 70 6c |and sh, |so peopl| |00000400| 65 0d 20 20 20 20 20 66 | 61 6d 69 6c 69 61 72 20 |e. f|amiliar | |00000410| 77 69 74 68 20 74 68 6f | 73 65 20 6c 61 6e 67 75 |with tho|se langu| |00000420| 61 67 65 73 20 73 68 6f | 75 6c 64 20 68 61 76 65 |ages sho|uld have| |00000430| 20 6c 69 74 74 6c 65 20 | 20 64 69 66 66 69 63 75 | little | difficu| |00000440| 6c 74 79 0d 20 20 20 20 | 20 77 69 74 68 20 20 69 |lty. | with i| |00000450| 74 2e 20 20 28 4c 61 6e | 67 75 61 67 65 20 68 69 |t. (Lan|guage hi| |00000460| 73 74 6f 72 69 61 6e 73 | 20 77 69 6c 6c 20 61 6c |storians| will al| |00000470| 73 6f 20 6e 6f 74 65 20 | 73 6f 6d 65 20 76 65 73 |so note |some ves| |00000480| 74 69 67 65 73 0d 20 20 | 20 20 20 6f 66 20 63 73 |tiges. | of cs| |00000490| 68 2c 20 50 61 73 63 61 | 6c 2c 20 20 61 6e 64 20 |h, Pasca|l, and | |000004a0| 20 65 76 65 6e 20 20 42 | 41 53 49 43 2d 50 4c 55 | even B|ASIC-PLU| |000004b0| 53 2e 29 20 20 45 78 70 | 72 65 73 73 69 6f 6e 20 |S.) Exp|ression | |000004c0| 20 73 79 6e 74 61 78 0d | 20 20 20 20 20 63 6f 72 | syntax.| cor| |000004d0| 72 65 73 70 6f 6e 64 73 | 20 20 71 75 69 74 65 20 |responds| quite | |000004e0| 20 63 6c 6f 73 65 6c 79 | 20 20 74 6f 20 43 20 65 | closely| to C e| |000004f0| 78 70 72 65 73 73 69 6f | 6e 20 73 79 6e 74 61 78 |xpressio|n syntax| |00000500| 2e 20 20 55 6e 6c 69 6b | 65 0d 20 20 20 20 20 6d |. Unlik|e. m| |00000510| 6f 73 74 20 55 6e 69 78 | 20 75 74 69 6c 69 74 69 |ost Unix| utiliti| |00000520| 65 73 2c 20 70 65 72 6c | 20 64 6f 65 73 20 20 6e |es, perl| does n| |00000530| 6f 74 20 20 61 72 62 69 | 74 72 61 72 69 6c 79 20 |ot arbi|trarily | |00000540| 20 6c 69 6d 69 74 20 20 | 74 68 65 0d 20 20 20 20 | limit |the. | |00000550| 20 73 69 7a 65 20 20 6f | 66 20 79 6f 75 72 20 64 | size o|f your d| |00000560| 61 74 61 2d 2d 69 66 20 | 79 6f 75 27 76 65 20 67 |ata--if |you've g| |00000570| 6f 74 20 74 68 65 20 6d | 65 6d 6f 72 79 2c 20 70 |ot the m|emory, p| |00000580| 65 72 6c 20 63 61 6e 20 | 73 6c 75 72 70 0d 20 20 |erl can |slurp. | |00000590| 20 20 20 69 6e 20 79 6f | 75 72 20 77 68 6f 6c 65 | in yo|ur whole| |000005a0| 20 66 69 6c 65 20 61 73 | 20 61 20 20 73 69 6e 67 | file as| a sing| |000005b0| 6c 65 20 20 73 74 72 69 | 6e 67 2e 20 20 20 52 65 |le stri|ng. Re| |000005c0| 63 75 72 73 69 6f 6e 20 | 20 69 73 20 20 6f 66 0d |cursion | is of.| |000005d0| 20 20 20 20 20 75 6e 6c | 69 6d 69 74 65 64 20 20 | unl|imited | |000005e0| 64 65 70 74 68 2e 20 20 | 20 41 6e 64 20 20 74 68 |depth. | And th| |000005f0| 65 20 68 61 73 68 20 74 | 61 62 6c 65 73 20 75 73 |e hash t|ables us| |00000600| 65 64 20 62 79 20 61 73 | 73 6f 63 69 61 74 69 76 |ed by as|sociativ| |00000610| 65 0d 20 20 20 20 20 61 | 72 72 61 79 73 20 67 72 |e. a|rrays gr| |00000620| 6f 77 20 61 73 20 6e 65 | 63 65 73 73 61 72 79 20 |ow as ne|cessary | |00000630| 74 6f 20 20 70 72 65 76 | 65 6e 74 20 20 64 65 67 |to prev|ent deg| |00000640| 72 61 64 65 64 20 20 70 | 65 72 66 6f 72 6d 61 6e |raded p|erforman| |00000650| 63 65 2e 0d 20 20 20 20 | 20 50 65 72 6c 20 20 75 |ce.. | Perl u| |00000660| 73 65 73 20 73 6f 70 68 | 69 73 74 69 63 61 74 65 |ses soph|isticate| |00000670| 64 20 70 61 74 74 65 72 | 6e 20 6d 61 74 63 68 69 |d patter|n matchi| |00000680| 6e 67 20 74 65 63 68 6e | 69 71 75 65 73 20 74 6f |ng techn|iques to| |00000690| 20 73 63 61 6e 0d 20 20 | 20 20 20 6c 61 72 67 65 | scan. | large| |000006a0| 20 61 6d 6f 75 6e 74 73 | 20 6f 66 20 64 61 74 61 | amounts| of data| |000006b0| 20 76 65 72 79 20 71 75 | 69 63 6b 6c 79 2e 20 20 | very qu|ickly. | |000006c0| 41 6c 74 68 6f 75 67 68 | 20 6f 70 74 69 6d 69 7a |Although| optimiz| |000006d0| 65 64 20 20 66 6f 72 0d | 20 20 20 20 20 73 63 61 |ed for.| sca| |000006e0| 6e 6e 69 6e 67 20 20 74 | 65 78 74 2c 20 70 65 72 |nning t|ext, per| |000006f0| 6c 20 63 61 6e 20 61 6c | 73 6f 20 64 65 61 6c 20 |l can al|so deal | |00000700| 77 69 74 68 20 62 69 6e | 61 72 79 20 64 61 74 61 |with bin|ary data| |00000710| 2c 20 61 6e 64 20 63 61 | 6e 0d 20 20 20 20 20 6d |, and ca|n. m| |00000720| 61 6b 65 20 64 62 6d 20 | 66 69 6c 65 73 20 6c 6f |ake dbm |files lo| |00000730| 6f 6b 20 6c 69 6b 65 20 | 61 73 73 6f 63 69 61 74 |ok like |associat| |00000740| 69 76 65 20 61 72 72 61 | 79 73 20 20 28 77 68 65 |ive arra|ys (whe| |00000750| 72 65 20 20 64 62 6d 20 | 20 69 73 0d 20 20 20 20 |re dbm | is. | |00000760| 20 61 76 61 69 6c 61 62 | 6c 65 29 2e 20 20 20 53 | availab|le). S| |00000770| 65 74 75 69 64 20 20 70 | 65 72 6c 20 73 63 72 69 |etuid p|erl scri| |00000780| 70 74 73 20 61 72 65 20 | 73 61 66 65 72 20 74 68 |pts are |safer th| |00000790| 61 6e 20 43 20 70 72 6f | 67 72 61 6d 73 0d 20 20 |an C pro|grams. | |000007a0| 20 20 20 74 68 72 6f 75 | 67 68 20 61 20 64 61 74 | throu|gh a dat| |000007b0| 61 66 6c 6f 77 20 74 72 | 61 63 69 6e 67 20 20 6d |aflow tr|acing m| |000007c0| 65 63 68 61 6e 69 73 6d | 20 20 77 68 69 63 68 20 |echanism| which | |000007d0| 20 70 72 65 76 65 6e 74 | 73 20 20 6d 61 6e 79 0d | prevent|s many.| |000007e0| 20 20 20 20 20 73 74 75 | 70 69 64 20 20 73 65 63 | stu|pid sec| |000007f0| 75 72 69 74 79 20 20 68 | 6f 6c 65 73 2e 20 20 20 |urity h|oles. | |00000800| 49 66 20 20 79 6f 75 20 | 68 61 76 65 20 61 20 70 |If you |have a p| |00000810| 72 6f 62 6c 65 6d 20 74 | 68 61 74 20 77 6f 75 6c |roblem t|hat woul| |00000820| 64 0d 20 20 20 20 20 6f | 72 64 69 6e 61 72 69 6c |d. o|rdinaril| |00000830| 79 20 75 73 65 20 73 65 | 64 20 6f 72 20 61 77 6b |y use se|d or awk| |00000840| 20 6f 72 20 73 68 2c 20 | 62 75 74 20 69 74 20 65 | or sh, |but it e| |00000850| 78 63 65 65 64 73 20 74 | 68 65 69 72 20 20 63 61 |xceeds t|heir ca| |00000860| 70 61 2d 0d 20 20 20 20 | 20 62 69 6c 69 74 69 65 |pa-. | bilitie| |00000870| 73 20 20 6f 72 20 6d 75 | 73 74 20 72 75 6e 20 61 |s or mu|st run a| |00000880| 20 6c 69 74 74 6c 65 20 | 66 61 73 74 65 72 2c 20 | little |faster, | |00000890| 61 6e 64 20 79 6f 75 20 | 64 6f 6e 27 74 20 77 61 |and you |don't wa| |000008a0| 6e 74 20 74 6f 0d 20 20 | 20 20 20 77 72 69 74 65 |nt to. | write| |000008b0| 20 74 68 65 20 73 69 6c | 6c 79 20 74 68 69 6e 67 | the sil|ly thing| |000008c0| 20 69 6e 20 43 2c 20 74 | 68 65 6e 20 70 65 72 6c | in C, t|hen perl| |000008d0| 20 6d 61 79 20 62 65 20 | 66 6f 72 20 79 6f 75 2e | may be |for you.| |000008e0| 20 20 54 68 65 72 65 0d | 20 20 20 20 20 61 72 65 | There.| are| |000008f0| 20 20 61 6c 73 6f 20 20 | 74 72 61 6e 73 6c 61 74 | also |translat| |00000900| 6f 72 73 20 74 6f 20 74 | 75 72 6e 20 79 6f 75 72 |ors to t|urn your| |00000910| 20 73 65 64 20 61 6e 64 | 20 61 77 6b 20 73 63 72 | sed and| awk scr| |00000920| 69 70 74 73 20 69 6e 74 | 6f 0d 20 20 20 20 20 70 |ipts int|o. p| |00000930| 65 72 6c 20 73 63 72 69 | 70 74 73 2e 20 20 4f 4b |erl scri|pts. OK| |00000940| 2c 20 65 6e 6f 75 67 68 | 20 68 79 70 65 2e 0d 0d |, enough| hype...| |00000950| 20 20 20 20 20 55 70 6f | 6e 20 73 74 61 72 74 75 | Upo|n startu| |00000960| 70 2c 20 70 65 72 6c 20 | 6c 6f 6f 6b 73 20 66 6f |p, perl |looks fo| |00000970| 72 20 79 6f 75 72 20 73 | 63 72 69 70 74 20 69 6e |r your s|cript in| |00000980| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 20 66 6f 6c | one of |the fol| |00000990| 2d 0d 20 20 20 20 20 6c | 6f 77 69 6e 67 20 70 6c |-. l|owing pl| |000009a0| 61 63 65 73 3a 0d 0d 20 | 20 20 20 20 31 2e 20 20 |aces:.. | 1. | |000009b0| 53 70 65 63 69 66 69 65 | 64 20 6c 69 6e 65 20 62 |Specifie|d line b| |000009c0| 79 20 6c 69 6e 65 20 76 | 69 61 20 2d 65 20 73 77 |y line v|ia -e sw| |000009d0| 69 74 63 68 65 73 20 20 | 6f 6e 20 20 74 68 65 20 |itches |on the | |000009e0| 20 63 6f 6d 6d 61 6e 64 | 0d 20 20 20 20 20 20 20 | command|. | |000009f0| 20 20 6c 69 6e 65 2e 0d | 0d 20 20 20 20 20 32 2e | line..|. 2.| |00000a00| 20 20 43 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 74 | Contai|ned in t| |00000a10| 68 65 20 66 69 6c 65 20 | 73 70 65 63 69 66 69 65 |he file |specifie| |00000a20| 64 20 62 79 20 74 68 65 | 20 66 69 72 73 74 20 66 |d by the| first f| |00000a30| 69 6c 65 6e 61 6d 65 20 | 6f 6e 0d 20 20 20 20 20 |ilename |on. | |00000a40| 20 20 20 20 74 68 65 20 | 20 63 6f 6d 6d 61 6e 64 | the | command| |00000a50| 20 6c 69 6e 65 2e 20 20 | 28 4e 6f 74 65 20 74 68 | line. |(Note th| |00000a60| 61 74 20 73 79 73 74 65 | 6d 73 20 73 75 70 70 6f |at syste|ms suppo| |00000a70| 72 74 69 6e 67 20 74 68 | 65 20 23 21 0d 20 20 20 |rting th|e #!. | |00000a80| 20 20 20 20 20 20 6e 6f | 74 61 74 69 6f 6e 20 69 | no|tation i| |00000a90| 6e 76 6f 6b 65 20 69 6e | 74 65 72 70 72 65 74 65 |nvoke in|terprete| |00000aa0| 72 73 20 74 68 69 73 20 | 77 61 79 2e 29 0d 0d 20 |rs this |way.).. | |00000ab0| 20 20 20 20 33 2e 20 20 | 50 61 73 73 65 64 20 69 | 3. |Passed i| |00000ac0| 6e 20 69 6d 70 6c 69 63 | 69 74 6c 79 20 20 76 69 |n implic|itly vi| |00000ad0| 61 20 20 73 74 61 6e 64 | 61 72 64 20 20 69 6e 70 |a stand|ard inp| |00000ae0| 75 74 2e 20 20 20 54 68 | 69 73 20 20 6f 6e 6c 79 |ut. Th|is only| |00000af0| 0d 20 20 20 20 20 20 20 | 20 20 77 6f 72 6b 73 20 |. | works | |00000b00| 20 69 66 20 74 68 65 72 | 65 20 61 72 65 20 6e 6f | if ther|e are no| |00000b10| 20 66 69 6c 65 6e 61 6d | 65 20 61 72 67 75 6d 65 | filenam|e argume| |00000b20| 6e 74 73 2d 2d 74 6f 20 | 70 61 73 73 20 61 72 67 |nts--to |pass arg| |00000b30| 75 2d 0d 20 20 20 20 20 | 20 20 20 20 6d 65 6e 74 |u-. | ment| |00000b40| 73 20 74 6f 20 61 20 73 | 74 64 69 6e 20 73 63 72 |s to a s|tdin scr| |00000b50| 69 70 74 20 79 6f 75 20 | 6d 75 73 74 20 65 78 70 |ipt you |must exp| |00000b60| 6c 69 63 69 74 6c 79 20 | 73 70 65 63 69 66 79 20 |licitly |specify | |00000b70| 61 20 20 2d 0d 20 20 20 | 20 20 20 20 20 20 66 6f |a -. | fo| |00000b80| 72 20 74 68 65 20 73 63 | 72 69 70 74 20 6e 61 6d |r the sc|ript nam| |00000b90| 65 2e 0d 0d 20 20 20 20 | 20 41 66 74 65 72 20 6c |e... | After l| |00000ba0| 6f 63 61 74 69 6e 67 20 | 79 6f 75 72 20 73 63 72 |ocating |your scr| |00000bb0| 69 70 74 2c 20 70 65 72 | 6c 20 63 6f 6d 70 69 6c |ipt, per|l compil| |00000bc0| 65 73 20 69 74 20 74 6f | 20 61 6e 20 20 69 6e 74 |es it to| an int| |00000bd0| 65 72 6e 61 6c 0d 20 20 | 20 20 20 66 6f 72 6d 2e |ernal. | form.| |00000be0| 20 20 20 49 66 20 20 74 | 68 65 20 20 73 63 72 69 | If t|he scri| |00000bf0| 70 74 20 69 73 20 73 79 | 6e 74 61 63 74 69 63 61 |pt is sy|ntactica| |00000c00| 6c 6c 79 20 63 6f 72 72 | 65 63 74 2c 20 69 74 20 |lly corr|ect, it | |00000c10| 69 73 20 65 78 65 2d 0d | 20 20 20 20 20 63 75 74 |is exe-.| cut| |00000c20| 65 64 2e 0d 0d 20 20 20 | 20 20 4f 70 74 69 6f 6e |ed... | Option| |00000c30| 73 0d 0d 20 20 20 20 20 | 4e 6f 74 65 3a 20 6f 6e |s.. |Note: on| |00000c40| 20 66 69 72 73 74 20 72 | 65 61 64 69 6e 67 20 74 | first r|eading t| |00000c50| 68 69 73 20 73 65 63 74 | 69 6f 6e 20 6d 61 79 20 |his sect|ion may | |00000c60| 6e 6f 74 20 6d 61 6b 65 | 20 6d 75 63 68 20 20 73 |not make| much s| |00000c70| 65 6e 73 65 0d 20 20 20 | 20 20 74 6f 20 79 6f 75 |ense. | to you| |00000c80| 2e 20 20 49 74 27 73 20 | 68 65 72 65 20 61 74 20 |. It's |here at | |00000c90| 74 68 65 20 66 72 6f 6e | 74 20 66 6f 72 20 65 61 |the fron|t for ea| |00000ca0| 73 79 20 72 65 66 65 72 | 65 6e 63 65 2e 0d 0d 20 |sy refer|ence... | |00000cb0| 20 20 20 20 41 20 73 69 | 6e 67 6c 65 2d 63 68 61 | A si|ngle-cha| |00000cc0| 72 61 63 74 65 72 20 6f | 70 74 69 6f 6e 20 6d 61 |racter o|ption ma| |00000cd0| 79 20 62 65 20 63 6f 6d | 62 69 6e 65 64 20 77 69 |y be com|bined wi| |00000ce0| 74 68 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |th the f|ollowing| |00000cf0| 0d 20 20 20 20 20 6f 70 | 74 69 6f 6e 2c 20 69 66 |. op|tion, if| |00000d00| 20 61 6e 79 2e 20 20 54 | 68 69 73 20 69 73 20 70 | any. T|his is p| |00000d10| 61 72 74 69 63 75 6c 61 | 72 6c 79 20 75 73 65 66 |articula|rly usef| |00000d20| 75 6c 20 77 68 65 6e 20 | 69 6e 76 6f 6b 69 6e 67 |ul when |invoking| |00000d30| 20 61 0d 20 20 20 20 20 | 73 63 72 69 70 74 20 75 | a. |script u| |00000d40| 73 69 6e 67 20 74 68 65 | 20 23 21 20 63 6f 6e 73 |sing the| #! cons| |00000d50| 74 72 75 63 74 20 77 68 | 69 63 68 20 6f 6e 6c 79 |truct wh|ich only| |00000d60| 20 20 61 6c 6c 6f 77 73 | 20 20 6f 6e 65 20 20 61 | allows| one a| |00000d70| 72 67 75 2d 0d 20 20 20 | 20 20 6d 65 6e 74 2e 20 |rgu-. | ment. | |00000d80| 20 45 78 61 6d 70 6c 65 | 3a 0d 0d 20 20 20 20 20 | Example|:.. | |00000d90| 20 20 20 20 20 23 21 2f | 75 73 72 2f 62 69 6e 2f | #!/|usr/bin/| |00000da0| 70 65 72 6c 20 2d 73 70 | 69 2e 62 61 6b 20 23 20 |perl -sp|i.bak # | |00000db0| 73 61 6d 65 20 61 73 20 | 2d 73 20 2d 70 20 2d 69 |same as |-s -p -i| |00000dc0| 2e 62 61 6b 0d 20 20 20 | 20 20 20 20 20 20 20 2e |.bak. | .| |00000dd0| 2e 2e 0d 0d 20 20 20 20 | 20 4f 70 74 69 6f 6e 73 |.... | Options| |00000de0| 20 69 6e 63 6c 75 64 65 | 3a 0d 0d 20 20 20 20 20 | include|:.. | |00000df0| 2d 30 64 69 67 69 74 73 | 0d 20 20 20 20 20 20 20 |-0digits|. | |00000e00| 20 20 20 73 70 65 63 69 | 66 69 65 73 20 74 68 65 | speci|fies the| |00000e10| 20 72 65 63 6f 72 64 20 | 73 65 70 61 72 61 74 6f | record |separato| |00000e20| 72 20 28 24 2f 29 20 61 | 73 20 61 6e 20 6f 63 74 |r ($/) a|s an oct| |00000e30| 61 6c 20 6e 75 6d 62 65 | 72 2e 0d 20 20 20 20 20 |al numbe|r.. | |00000e40| 20 20 20 20 20 49 66 20 | 20 74 68 65 72 65 20 20 | If | there | |00000e50| 61 72 65 20 20 6e 6f 20 | 20 64 69 67 69 74 73 2c |are no | digits,| |00000e60| 20 20 74 68 65 20 20 6e | 75 6c 6c 20 63 68 61 72 | the n|ull char| |00000e70| 61 63 74 65 72 20 69 73 | 20 74 68 65 0d 20 20 20 |acter is| the. | |00000e80| 20 20 20 20 20 20 20 73 | 65 70 61 72 61 74 6f 72 | s|eparator| |00000e90| 2e 20 20 4f 74 68 65 72 | 20 73 77 69 74 63 68 65 |. Other| switche| |00000ea0| 73 20 6d 61 79 20 70 72 | 65 63 65 64 65 20 20 6f |s may pr|ecede o| |00000eb0| 72 20 20 66 6f 6c 6c 6f | 77 20 20 74 68 65 0d 20 |r follo|w the. | |00000ec0| 20 20 20 20 20 20 20 20 | 20 64 69 67 69 74 73 2e | | digits.| |00000ed0| 20 20 20 46 6f 72 20 20 | 65 78 61 6d 70 6c 65 2c | For |example,| |00000ee0| 20 20 69 66 20 20 79 6f | 75 20 68 61 76 65 20 61 | if yo|u have a| |00000ef0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 66 69 6e 64 | version| of find| |00000f00| 0d 20 20 20 20 20 20 20 | 20 20 20 77 68 69 63 68 |. | which| |00000f10| 20 63 61 6e 20 70 72 69 | 6e 74 20 66 69 6c 65 6e | can pri|nt filen| |00000f20| 61 6d 65 73 20 74 65 72 | 6d 69 6e 61 74 65 64 20 |ames ter|minated | |00000f30| 62 79 20 74 68 65 20 6e | 75 6c 6c 20 20 63 68 61 |by the n|ull cha| |00000f40| 72 2d 0d 20 20 20 20 20 | 20 20 20 20 20 61 63 74 |r-. | act| |00000f50| 65 72 2c 20 79 6f 75 20 | 63 61 6e 20 73 61 79 20 |er, you |can say | |00000f60| 74 68 69 73 3a 0d 0d 20 | 20 20 20 20 20 20 20 20 |this:.. | | |00000f70| 20 20 20 20 20 66 69 6e | 64 20 2e 20 2d 6e 61 6d | fin|d . -nam| |00000f80| 65 20 27 2a 2e 62 61 6b | 27 20 2d 70 72 69 6e 74 |e '*.bak|' -print| |00000f90| 30 20 7c 20 70 65 72 6c | 20 2d 6e 30 65 20 75 6e |0 | perl| -n0e un| |00000fa0| 6c 69 6e 6b 0d 0d 20 20 | 20 20 20 20 20 20 20 20 |link.. | | |00000fb0| 54 68 65 20 73 70 65 63 | 69 61 6c 20 76 61 6c 75 |The spec|ial valu| |00000fc0| 65 20 30 30 20 77 69 6c | 6c 20 63 61 75 73 65 20 |e 00 wil|l cause | |00000fd0| 50 65 72 6c 20 74 6f 20 | 73 6c 75 72 70 20 66 69 |Perl to |slurp fi| |00000fe0| 6c 65 73 20 20 69 6e 0d | 20 20 20 20 20 20 20 20 |les in.| | |00000ff0| 20 20 70 61 72 61 67 72 | 61 70 68 20 20 6d 6f 64 | paragr|aph mod| |00001000| 65 2e 20 20 20 54 68 65 | 20 20 76 61 6c 75 65 20 |e. The| value | |00001010| 20 30 37 37 37 20 20 77 | 69 6c 6c 20 63 61 75 73 | 0777 w|ill caus| |00001020| 65 20 50 65 72 6c 20 74 | 6f 0d 20 20 20 20 20 20 |e Perl t|o. | |00001030| 20 20 20 20 73 6c 75 72 | 70 20 66 69 6c 65 73 20 | slur|p files | |00001040| 77 68 6f 6c 65 20 73 69 | 6e 63 65 20 74 68 65 72 |whole si|nce ther| |00001050| 65 20 20 69 73 20 20 6e | 6f 20 20 6c 65 67 61 6c |e is n|o legal| |00001060| 20 20 63 68 61 72 61 63 | 74 65 72 0d 20 20 20 20 | charac|ter. | |00001070| 20 20 20 20 20 20 77 69 | 74 68 20 74 68 61 74 20 | wi|th that | |00001080| 76 61 6c 75 65 2e 0d 0d | 20 20 20 20 20 2d 61 20 |value...| -a | |00001090| 20 20 74 75 72 6e 73 20 | 6f 6e 20 61 75 74 6f 73 | turns |on autos| |000010a0| 70 6c 69 74 20 6d 6f 64 | 65 20 77 68 65 6e 20 75 |plit mod|e when u| |000010b0| 73 65 64 20 77 69 74 68 | 20 61 20 2d 6e 20 6f 72 |sed with| a -n or| |000010c0| 20 2d 70 2e 20 20 20 41 | 6e 0d 20 20 20 20 20 20 | -p. A|n. | |000010d0| 20 20 20 20 69 6d 70 6c | 69 63 69 74 20 20 73 70 | impl|icit sp| |000010e0| 6c 69 74 20 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 |lit com|mand to | |000010f0| 74 68 65 20 40 46 20 61 | 72 72 61 79 20 69 73 20 |the @F a|rray is | |00001100| 64 6f 6e 65 20 61 73 20 | 74 68 65 0d 20 20 20 20 |done as |the. | |00001110| 20 20 20 20 20 20 66 69 | 72 73 74 20 74 68 69 6e | fi|rst thin| |00001120| 67 20 69 6e 73 69 64 65 | 20 74 68 65 20 69 6d 70 |g inside| the imp| |00001130| 6c 69 63 69 74 20 77 68 | 69 6c 65 20 6c 6f 6f 70 |licit wh|ile loop| |00001140| 20 70 72 6f 64 75 63 65 | 64 20 20 62 79 0d 20 20 | produce|d by. | |00001150| 20 20 20 20 20 20 20 20 | 74 68 65 20 2d 6e 20 6f | |the -n o| |00001160| 72 20 2d 70 2e 0d 0d 20 | 20 20 20 20 20 20 20 20 |r -p... | | |00001170| 20 20 20 20 20 20 70 65 | 72 6c 20 2d 61 6e 65 20 | pe|rl -ane | |00001180| 27 70 72 69 6e 74 20 70 | 6f 70 28 40 46 29 2c 20 |'print p|op(@F), | |00001190| 22 5c 6e 22 3b 27 0d 0d | 20 20 20 20 20 20 20 20 |"\n";'..| | |000011a0| 20 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 | is equ|ivalent | |000011b0| 74 6f 0d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |to.. | | |000011c0| 20 20 20 77 68 69 6c 65 | 20 28 3c 3e 29 20 7b 0d | while| (<>) {.| |000011d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000011e0| 20 20 20 20 40 46 20 3d | 20 73 70 6c 69 74 28 27 | @F =| split('| |000011f0| 20 27 29 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 | ');. | | |00001200| 20 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 20 70 | | print p| |00001210| 6f 70 28 40 46 29 2c 20 | 22 5c 6e 22 3b 0d 20 20 |op(@F), |"\n";. | |00001220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0d 0d | | }..| |00001230| 20 20 20 20 20 2d 63 20 | 20 20 63 61 75 73 65 73 | -c | causes| |00001240| 20 70 65 72 6c 20 74 6f | 20 63 68 65 63 6b 20 74 | perl to| check t| |00001250| 68 65 20 73 79 6e 74 61 | 78 20 6f 66 20 74 68 65 |he synta|x of the| |00001260| 20 73 63 72 69 70 74 20 | 61 6e 64 20 20 74 68 65 | script |and the| |00001270| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 65 78 69 74 |n. | exit| |00001280| 20 77 69 74 68 6f 75 74 | 20 65 78 65 63 75 74 69 | without| executi| |00001290| 6e 67 20 69 74 2e 0d 0d | 20 20 20 20 20 2d 64 20 |ng it...| -d | |000012a0| 20 20 72 75 6e 73 20 74 | 68 65 20 73 63 72 69 70 | runs t|he scrip| |000012b0| 74 20 75 6e 64 65 72 20 | 74 68 65 20 70 65 72 6c |t under |the perl| |000012c0| 20 64 65 62 75 67 67 65 | 72 2e 20 20 53 65 65 20 | debugge|r. See | |000012d0| 74 68 65 20 20 73 65 63 | 2d 0d 20 20 20 20 20 20 |the sec|-. | |000012e0| 20 20 20 20 74 69 6f 6e | 20 6f 6e 20 44 65 62 75 | tion| on Debu| |000012f0| 67 67 69 6e 67 2e 0d 0d | 20 20 20 20 20 2d 44 6e |gging...| -Dn| |00001300| 75 6d 62 65 72 0d 20 20 | 20 20 20 20 20 20 20 20 |umber. | | |00001310| 73 65 74 73 20 64 65 62 | 75 67 67 69 6e 67 20 66 |sets deb|ugging f| |00001320| 6c 61 67 73 2e 20 20 54 | 6f 20 77 61 74 63 68 20 |lags. T|o watch | |00001330| 68 6f 77 20 20 69 74 20 | 20 65 78 65 63 75 74 65 |how it | execute| |00001340| 73 20 20 79 6f 75 72 0d | 20 20 20 20 20 20 20 20 |s your.| | |00001350| 20 20 73 63 72 69 70 74 | 2c 20 20 75 73 65 20 20 | script|, use | |00001360| 2d 44 31 34 2e 20 20 20 | 28 54 68 69 73 20 20 6f |-D14. |(This o| |00001370| 6e 6c 79 20 77 6f 72 6b | 73 20 69 66 20 64 65 62 |nly work|s if deb| |00001380| 75 67 67 69 6e 67 20 69 | 73 0d 20 20 20 20 20 20 |ugging i|s. | |00001390| 20 20 20 20 63 6f 6d 70 | 69 6c 65 64 20 69 6e 74 | comp|iled int| |000013a0| 6f 20 79 6f 75 72 20 70 | 65 72 6c 2e 29 20 41 6e |o your p|erl.) An| |000013b0| 6f 74 68 65 72 20 6e 69 | 63 65 20 76 61 6c 75 65 |other ni|ce value| |000013c0| 20 69 73 20 2d 44 31 30 | 32 34 2c 0d 20 20 20 20 | is -D10|24,. | |000013d0| 20 20 20 20 20 20 77 68 | 69 63 68 20 20 6c 69 73 | wh|ich lis| |000013e0| 74 73 20 20 79 6f 75 72 | 20 20 63 6f 6d 70 69 6c |ts your| compil| |000013f0| 65 64 20 20 73 79 6e 74 | 61 78 20 20 74 72 65 65 |ed synt|ax tree| |00001400| 2e 20 20 20 41 6e 64 20 | 2d 44 35 31 32 0d 20 20 |. And |-D512. | |00001410| 20 20 20 20 20 20 20 20 | 64 69 73 70 6c 61 79 73 | |displays| |00001420| 20 63 6f 6d 70 69 6c 65 | 64 20 72 65 67 75 6c 61 | compile|d regula| |00001430| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 73 2e 0d 0d |r expres|sions...| |00001440| 20 20 20 20 20 2d 65 20 | 63 6f 6d 6d 61 6e 64 6c | -e |commandl| |00001450| 69 6e 65 0d 20 20 20 20 | 20 20 20 20 20 20 6d 61 |ine. | ma| |00001460| 79 20 62 65 20 75 73 65 | 64 20 74 6f 20 65 6e 74 |y be use|d to ent| |00001470| 65 72 20 6f 6e 65 20 6c | 69 6e 65 20 6f 66 20 73 |er one l|ine of s| |00001480| 63 72 69 70 74 2e 20 20 | 20 4d 75 6c 74 69 70 6c |cript. | Multipl| |00001490| 65 20 20 2d 65 0d 20 20 | 20 20 20 20 20 20 20 20 |e -e. | | |000014a0| 63 6f 6d 6d 61 6e 64 73 | 20 20 6d 61 79 20 62 65 |commands| may be| |000014b0| 20 67 69 76 65 6e 20 74 | 6f 20 62 75 69 6c 64 20 | given t|o build | |000014c0| 75 70 20 61 20 6d 75 6c | 74 69 2d 6c 69 6e 65 20 |up a mul|ti-line | |000014d0| 73 63 72 69 70 74 2e 0d | 20 20 20 20 20 20 20 20 |script..| | |000014e0| 20 20 49 66 20 2d 65 20 | 69 73 20 20 67 69 76 65 | If -e |is give| |000014f0| 6e 2c 20 20 70 65 72 6c | 20 20 77 69 6c 6c 20 20 |n, perl| will | |00001500| 6e 6f 74 20 20 6c 6f 6f | 6b 20 20 66 6f 72 20 20 |not loo|k for | |00001510| 61 20 20 73 63 72 69 70 | 74 0d 20 20 20 20 20 20 |a scrip|t. | |00001520| 20 20 20 20 66 69 6c 65 | 6e 61 6d 65 20 69 6e 20 | file|name in | |00001530| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 6c 69 73 |the argu|ment lis| |00001540| 74 2e 0d 0d 20 20 20 20 | 20 2d 69 65 78 74 65 6e |t... | -iexten| |00001550| 73 69 6f 6e 0d 20 20 20 | 20 20 20 20 20 20 20 73 |sion. | s| |00001560| 70 65 63 69 66 69 65 73 | 20 74 68 61 74 20 66 69 |pecifies| that fi| |00001570| 6c 65 73 20 70 72 6f 63 | 65 73 73 65 64 20 62 79 |les proc|essed by| |00001580| 20 74 68 65 20 3c 3e 20 | 63 6f 6e 73 74 72 75 63 | the <> |construc| |00001590| 74 20 20 61 72 65 0d 20 | 20 20 20 20 20 20 20 20 |t are. | | |000015a0| 20 74 6f 20 20 62 65 20 | 20 65 64 69 74 65 64 20 | to be | edited | |000015b0| 20 69 6e 2d 70 6c 61 63 | 65 2e 20 20 49 74 20 64 | in-plac|e. It d| |000015c0| 6f 65 73 20 74 68 69 73 | 20 62 79 20 72 65 6e 61 |oes this| by rena| |000015d0| 6d 69 6e 67 20 74 68 65 | 0d 20 20 20 20 20 20 20 |ming the|. | |000015e0| 20 20 20 69 6e 70 75 74 | 20 66 69 6c 65 2c 20 6f | input| file, o| |000015f0| 70 65 6e 69 6e 67 20 74 | 68 65 20 6f 75 74 70 75 |pening t|he outpu| |00001600| 74 20 66 69 6c 65 20 62 | 79 20 74 68 65 20 20 73 |t file b|y the s| |00001610| 61 6d 65 20 20 6e 61 6d | 65 2c 0d 20 20 20 20 20 |ame nam|e,. | |00001620| 20 20 20 20 20 61 6e 64 | 20 73 65 6c 65 63 74 69 | and| selecti| |00001630| 6e 67 20 74 68 61 74 20 | 6f 75 74 70 75 74 20 66 |ng that |output f| |00001640| 69 6c 65 20 61 73 20 74 | 68 65 20 64 65 66 61 75 |ile as t|he defau| |00001650| 6c 74 20 66 6f 72 20 70 | 72 69 6e 74 0d 20 20 20 |lt for p|rint. | |00001660| 20 20 20 20 20 20 20 73 | 74 61 74 65 6d 65 6e 74 | s|tatement| |00001670| 73 2e 20 20 54 68 65 20 | 65 78 74 65 6e 73 69 6f |s. The |extensio| |00001680| 6e 2c 20 69 66 20 73 75 | 70 70 6c 69 65 64 2c 20 |n, if su|pplied, | |00001690| 20 69 73 20 20 61 64 64 | 65 64 20 20 74 6f 0d 20 | is add|ed to. | |000016a0| 20 20 20 20 20 20 20 20 | 20 74 68 65 20 20 6e 61 | | the na| |000016b0| 6d 65 20 6f 66 20 74 68 | 65 20 6f 6c 64 20 66 69 |me of th|e old fi| |000016c0| 6c 65 20 74 6f 20 6d 61 | 6b 65 20 61 20 62 61 63 |le to ma|ke a bac| |000016d0| 6b 75 70 20 63 6f 70 79 | 2e 20 20 49 66 20 6e 6f |kup copy|. If no| |000016e0| 0d 20 20 20 20 20 20 20 | 20 20 20 65 78 74 65 6e |. | exten| |000016f0| 73 69 6f 6e 20 69 73 20 | 73 75 70 70 6c 69 65 64 |sion is |supplied| |00001700| 2c 20 6e 6f 20 62 61 63 | 6b 75 70 20 69 73 20 6d |, no bac|kup is m| |00001710| 61 64 65 2e 20 20 53 61 | 79 69 6e 67 20 22 70 65 |ade. Sa|ying "pe| |00001720| 72 6c 0d 20 20 20 20 20 | 20 20 20 20 20 2d 70 20 |rl. | -p | |00001730| 20 2d 69 2e 62 61 6b 20 | 20 2d 65 20 22 73 2f 66 | -i.bak | -e "s/f| |00001740| 6f 6f 2f 62 61 72 2f 3b | 22 20 2e 2e 2e 20 22 20 |oo/bar/;|" ... " | |00001750| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 75 |is the s|ame as u| |00001760| 73 69 6e 67 0d 20 20 20 | 20 20 20 20 20 20 20 74 |sing. | t| |00001770| 68 65 20 73 63 72 69 70 | 74 3a 0d 0d 20 20 20 20 |he scrip|t:.. | |00001780| 20 20 20 20 20 20 20 20 | 20 20 20 23 21 2f 75 73 | | #!/us| |00001790| 72 2f 62 69 6e 2f 70 65 | 72 6c 20 2d 70 69 2e 62 |r/bin/pe|rl -pi.b| |000017a0| 61 6b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ak. | | |000017b0| 20 20 73 2f 66 6f 6f 2f | 62 61 72 2f 3b 0d 0d 20 | s/foo/|bar/;.. | |000017c0| 20 20 20 20 20 20 20 20 | 20 77 68 69 63 68 20 69 | | which i| |000017d0| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 0d |s equiva|lent to.| |000017e0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |000017f0| 23 21 2f 75 73 72 2f 62 | 69 6e 2f 70 65 72 6c 0d |#!/usr/b|in/perl.| |00001800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 77 | | w| |00001810| 68 69 6c 65 20 28 3c 3e | 29 20 7b 0d 20 20 20 20 |hile (<>|) {. | |00001820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001830| 69 66 20 28 24 41 52 47 | 56 20 6e 65 20 24 6f 6c |if ($ARG|V ne $ol| |00001840| 64 61 72 67 76 29 20 7b | 0d 20 20 20 20 20 20 20 |dargv) {|. | |00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001860| 20 20 72 65 6e 61 6d 65 | 28 24 41 52 47 56 2c 20 | rename|($ARGV, | |00001870| 24 41 52 47 56 20 2e 20 | 27 2e 62 61 6b 27 29 3b |$ARGV . |'.bak');| |00001880| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00001890| 20 20 20 20 20 20 20 20 | 20 20 6f 70 65 6e 28 41 | | open(A| |000018a0| 52 47 56 4f 55 54 2c 20 | 22 3e 24 41 52 47 56 22 |RGVOUT, |">$ARGV"| |000018b0| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | | |000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 65 6c 65 | | sele| |000018d0| 63 74 28 41 52 47 56 4f | 55 54 29 3b 0d 20 20 20 |ct(ARGVO|UT);. | |000018e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000018f0| 20 20 20 20 20 20 24 6f | 6c 64 61 72 67 76 20 3d | $o|ldargv =| |00001900| 20 24 41 52 47 56 3b 0d | 20 20 20 20 20 20 20 20 | $ARGV;.| | |00001910| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0d 20 20 | | }. | |00001920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001930| 20 20 73 2f 66 6f 6f 2f | 62 61 72 2f 3b 0d 20 20 | s/foo/|bar/;. | |00001940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0d 20 | | }. | |00001950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6f | | co| |00001960| 6e 74 69 6e 75 65 20 7b | 0d 20 20 20 20 20 20 20 |ntinue {|. | |00001970| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 72 69 6e | | prin| |00001980| 74 3b 20 20 20 20 20 23 | 20 74 68 69 73 20 70 72 |t; #| this pr| |00001990| 69 6e 74 73 20 74 6f 20 | 6f 72 69 67 69 6e 61 6c |ints to |original| |000019a0| 20 66 69 6c 65 6e 61 6d | 65 0d 20 20 20 20 20 20 | filenam|e. | |000019b0| 20 20 20 20 20 20 20 20 | 20 7d 0d 20 20 20 20 20 | | }. | |000019c0| 20 20 20 20 20 20 20 20 | 20 20 73 65 6c 65 63 74 | | select| |000019d0| 28 53 54 44 4f 55 54 29 | 3b 0d 0d 20 20 20 20 20 |(STDOUT)|;.. | |000019e0| 20 20 20 20 20 65 78 63 | 65 70 74 20 74 68 61 74 | exc|ept that| |000019f0| 20 74 68 65 20 2d 69 20 | 66 6f 72 6d 20 64 6f 65 | the -i |form doe| |00001a00| 73 6e 27 74 20 6e 65 65 | 64 20 74 6f 20 20 63 6f |sn't nee|d to co| |00001a10| 6d 70 61 72 65 20 20 24 | 41 52 47 56 0d 20 20 20 |mpare $|ARGV. | |00001a20| 20 20 20 20 20 20 20 74 | 6f 20 20 24 6f 6c 64 61 | t|o $olda| |00001a30| 72 67 76 20 74 6f 20 6b | 6e 6f 77 20 77 68 65 6e |rgv to k|now when| |00001a40| 20 74 68 65 20 66 69 6c | 65 6e 61 6d 65 20 68 61 | the fil|ename ha| |00001a50| 73 20 63 68 61 6e 67 65 | 64 2e 20 20 49 74 0d 20 |s change|d. It. | |00001a60| 20 20 20 20 20 20 20 20 | 20 64 6f 65 73 2c 20 68 | | does, h| |00001a70| 6f 77 65 76 65 72 2c 20 | 75 73 65 20 41 52 47 56 |owever, |use ARGV| |00001a80| 4f 55 54 20 66 6f 72 20 | 74 68 65 20 73 65 6c 65 |OUT for |the sele| |00001a90| 63 74 65 64 20 66 69 6c | 65 68 61 6e 64 6c 65 2e |cted fil|ehandle.| |00001aa0| 0d 20 20 20 20 20 20 20 | 20 20 20 4e 6f 74 65 20 |. | Note | |00001ab0| 20 74 68 61 74 20 20 53 | 54 44 4f 55 54 20 20 69 | that S|TDOUT i| |00001ac0| 73 20 20 72 65 73 74 6f | 72 65 64 20 20 61 73 20 |s resto|red as | |00001ad0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 6f 75 74 70 |the defa|ult outp| |00001ae0| 75 74 0d 20 20 20 20 20 | 20 20 20 20 20 66 69 6c |ut. | fil| |00001af0| 65 68 61 6e 64 6c 65 20 | 61 66 74 65 72 20 74 68 |ehandle |after th| |00001b00| 65 20 6c 6f 6f 70 2e 0d | 0d 20 20 20 20 20 20 20 |e loop..|. | |00001b10| 20 20 20 59 6f 75 20 63 | 61 6e 20 75 73 65 20 65 | You c|an use e| |00001b20| 6f 66 20 74 6f 20 6c 6f | 63 61 74 65 20 74 68 65 |of to lo|cate the| |00001b30| 20 65 6e 64 20 6f 66 20 | 65 61 63 68 20 20 69 6e | end of |each in| |00001b40| 70 75 74 20 20 66 69 6c | 65 2c 0d 20 20 20 20 20 |put fil|e,. | |00001b50| 20 20 20 20 20 69 6e 20 | 20 63 61 73 65 20 79 6f | in | case yo| |00001b60| 75 20 77 61 6e 74 20 74 | 6f 20 61 70 70 65 6e 64 |u want t|o append| |00001b70| 20 74 6f 20 65 61 63 68 | 20 66 69 6c 65 2c 20 6f | to each| file, o| |00001b80| 72 20 72 65 73 65 74 20 | 6c 69 6e 65 0d 20 20 20 |r reset |line. | |00001b90| 20 20 20 20 20 20 20 6e | 75 6d 62 65 72 69 6e 67 | n|umbering| |00001ba0| 20 28 73 65 65 20 65 78 | 61 6d 70 6c 65 20 75 6e | (see ex|ample un| |00001bb0| 64 65 72 20 65 6f 66 29 | 2e 0d 0d 20 20 20 20 20 |der eof)|... | |00001bc0| 2d 49 64 69 72 65 63 74 | 6f 72 79 0d 20 20 20 20 |-Idirect|ory. | |00001bd0| 20 20 20 20 20 20 6d 61 | 79 20 62 65 20 75 73 65 | ma|y be use| |00001be0| 64 20 69 6e 20 20 63 6f | 6e 6a 75 6e 63 74 69 6f |d in co|njunctio| |00001bf0| 6e 20 20 77 69 74 68 20 | 20 2d 50 20 20 74 6f 20 |n with | -P to | |00001c00| 20 74 65 6c 6c 20 20 74 | 68 65 20 20 43 0d 20 20 | tell t|he C. | |00001c10| 20 20 20 20 20 20 20 20 | 70 72 65 70 72 6f 63 65 | |preproce| |00001c20| 73 73 6f 72 20 20 77 68 | 65 72 65 20 20 74 6f 20 |ssor wh|ere to | |00001c30| 20 6c 6f 6f 6b 20 20 66 | 6f 72 20 20 69 6e 63 6c | look f|or incl| |00001c40| 75 64 65 20 20 66 69 6c | 65 73 2e 20 20 42 79 0d |ude fil|es. By.| |00001c50| 20 20 20 20 20 20 20 20 | 20 20 64 65 66 61 75 6c | | defaul| |00001c60| 74 20 2f 75 73 72 2f 69 | 6e 63 6c 75 64 65 20 61 |t /usr/i|nclude a| |00001c70| 6e 64 20 2f 75 73 72 2f | 6c 69 62 2f 70 65 72 6c |nd /usr/|lib/perl| |00001c80| 20 61 72 65 20 73 65 61 | 72 63 68 65 64 2e 0d 0d | are sea|rched...| |00001c90| 20 20 20 20 20 2d 6c 6f | 63 74 6e 75 6d 0d 20 20 | -lo|ctnum. | |00001ca0| 20 20 20 20 20 20 20 20 | 65 6e 61 62 6c 65 73 20 | |enables | |00001cb0| 61 75 74 6f 6d 61 74 69 | 63 20 6c 69 6e 65 2d 65 |automati|c line-e| |00001cc0| 6e 64 69 6e 67 20 70 72 | 6f 63 65 73 73 69 6e 67 |nding pr|ocessing| |00001cd0| 2e 20 20 49 74 20 20 68 | 61 73 20 20 74 77 6f 0d |. It h|as two.| |00001ce0| 20 20 20 20 20 20 20 20 | 20 20 65 66 66 65 63 74 | | effect| |00001cf0| 73 3a 20 20 66 69 72 73 | 74 2c 20 69 74 20 61 75 |s: firs|t, it au| |00001d00| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 63 68 6f 70 |tomatica|lly chop| |00001d10| 73 20 74 68 65 20 6c 69 | 6e 65 20 74 65 72 6d 69 |s the li|ne termi| |00001d20| 2d 0d 20 20 20 20 20 20 | 20 20 20 20 6e 61 74 6f |-. | nato| |00001d30| 72 20 77 68 65 6e 20 75 | 73 65 64 20 77 69 74 68 |r when u|sed with| |00001d40| 20 2d 6e 20 6f 72 20 2d | 70 20 2c 20 61 6e 64 20 | -n or -|p , and | |00001d50| 73 65 63 6f 6e 64 2c 20 | 69 74 20 20 61 73 73 69 |second, |it assi| |00001d60| 67 6e 73 0d 20 20 20 20 | 20 20 20 20 20 20 24 5c |gns. | $\| |00001d70| 20 74 6f 20 68 61 76 65 | 20 74 68 65 20 76 61 6c | to have| the val| |00001d80| 75 65 20 6f 66 20 6f 63 | 74 6e 75 6d 20 73 6f 20 |ue of oc|tnum so | |00001d90| 74 68 61 74 20 61 6e 79 | 20 70 72 69 6e 74 20 73 |that any| print s| |00001da0| 74 61 74 65 2d 0d 20 20 | 20 20 20 20 20 20 20 20 |tate-. | | |00001db0| 6d 65 6e 74 73 20 77 69 | 6c 6c 20 68 61 76 65 20 |ments wi|ll have | |00001dc0| 74 68 61 74 20 6c 69 6e | 65 20 74 65 72 6d 69 6e |that lin|e termin| |00001dd0| 61 74 6f 72 20 61 64 64 | 65 64 20 62 61 63 6b 20 |ator add|ed back | |00001de0| 6f 6e 2e 20 20 49 66 0d | 20 20 20 20 20 20 20 20 |on. If.| | |00001df0| 20 20 6f 63 74 6e 75 6d | 20 20 69 73 20 6f 6d 69 | octnum| is omi| |00001e00| 74 74 65 64 2c 20 73 65 | 74 73 20 24 5c 20 74 6f |tted, se|ts $\ to| |00001e10| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 76 61 6c | the cur|rent val| |00001e20| 75 65 20 6f 66 20 24 2f | 2e 0d 20 20 20 20 20 20 |ue of $/|.. | |00001e30| 20 20 20 20 46 6f 72 20 | 69 6e 73 74 61 6e 63 65 | For |instance| |00001e40| 2c 20 74 6f 20 74 72 69 | 6d 20 6c 69 6e 65 73 20 |, to tri|m lines | |00001e50| 74 6f 20 38 30 20 63 6f | 6c 75 6d 6e 73 3a 0d 0d |to 80 co|lumns:..| |00001e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p| |00001e70| 65 72 6c 20 2d 6c 70 65 | 20 27 73 75 62 73 74 72 |erl -lpe| 'substr| |00001e80| 28 24 5f 2c 20 38 30 29 | 20 3d 20 22 22 27 0d 0d |($_, 80)| = ""'..| |00001e90| 20 20 20 20 20 20 20 20 | 20 20 4e 6f 74 65 20 74 | | Note t| |00001ea0| 68 61 74 20 74 68 65 20 | 61 73 73 69 67 6e 6d 65 |hat the |assignme| |00001eb0| 6e 74 20 24 5c 20 20 3d | 20 20 24 2f 20 20 69 73 |nt $\ =| $/ is| |00001ec0| 20 20 64 6f 6e 65 20 20 | 77 68 65 6e 20 20 74 68 | done |when th| |00001ed0| 65 0d 20 20 20 20 20 20 | 20 20 20 20 73 77 69 74 |e. | swit| |00001ee0| 63 68 20 20 69 73 20 70 | 72 6f 63 65 73 73 65 64 |ch is p|rocessed| |00001ef0| 2c 20 73 6f 20 74 68 65 | 20 69 6e 70 75 74 20 72 |, so the| input r| |00001f00| 65 63 6f 72 64 20 73 65 | 70 61 72 61 74 6f 72 20 |ecord se|parator | |00001f10| 63 61 6e 0d 20 20 20 20 | 20 20 20 20 20 20 62 65 |can. | be| |00001f20| 20 64 69 66 66 65 72 65 | 6e 74 20 74 68 61 6e 20 | differe|nt than | |00001f30| 74 68 65 20 6f 75 74 70 | 75 74 20 72 65 63 6f 72 |the outp|ut recor| |00001f40| 64 20 73 65 70 61 72 61 | 74 6f 72 20 69 66 20 74 |d separa|tor if t| |00001f50| 68 65 20 2d 6c 0d 20 20 | 20 20 20 20 20 20 20 20 |he -l. | | |00001f60| 73 77 69 74 63 68 20 69 | 73 20 66 6f 6c 6c 6f 77 |switch i|s follow| |00001f70| 65 64 20 62 79 20 61 20 | 2d 30 20 73 77 69 74 63 |ed by a |-0 switc| |00001f80| 68 3a 0d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |h:.. | | |00001f90| 20 20 20 67 6e 75 66 69 | 6e 64 20 2f 20 2d 70 72 | gnufi|nd / -pr| |00001fa0| 69 6e 74 30 20 7c 20 70 | 65 72 6c 20 2d 6c 6e 30 |int0 | p|erl -ln0| |00001fb0| 65 20 27 70 72 69 6e 74 | 20 22 66 6f 75 6e 64 20 |e 'print| "found | |00001fc0| 24 5f 22 20 69 66 20 2d | 70 27 0d 0d 20 20 20 20 |$_" if -|p'.. | |00001fd0| 20 20 20 20 20 20 54 68 | 69 73 20 73 65 74 73 20 | Th|is sets | |00001fe0| 24 5c 20 74 6f 20 6e 65 | 77 6c 69 6e 65 20 61 6e |$\ to ne|wline an| |00001ff0| 64 20 74 68 65 6e 20 73 | 65 74 73 20 24 2f 20 20 |d then s|ets $/ | |00002000| 74 6f 20 20 74 68 65 20 | 20 6e 75 6c 6c 0d 20 20 |to the | null. | |00002010| 20 20 20 20 20 20 20 20 | 63 68 61 72 61 63 74 65 | |characte| |00002020| 72 2e 0d 0d 20 20 20 20 | 20 2d 6e 20 20 20 63 61 |r... | -n ca| |00002030| 75 73 65 73 20 70 65 72 | 6c 20 74 6f 20 61 73 73 |uses per|l to ass| |00002040| 75 6d 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ume the |followin| |00002050| 67 20 20 6c 6f 6f 70 20 | 20 61 72 6f 75 6e 64 20 |g loop | around | |00002060| 20 79 6f 75 72 0d 20 20 | 20 20 20 20 20 20 20 20 | your. | | |00002070| 73 63 72 69 70 74 2c 20 | 20 77 68 69 63 68 20 6d |script, | which m| |00002080| 61 6b 65 73 20 69 74 20 | 69 74 65 72 61 74 65 20 |akes it |iterate | |00002090| 6f 76 65 72 20 66 69 6c | 65 6e 61 6d 65 20 61 72 |over fil|ename ar| |000020a0| 67 75 6d 65 6e 74 73 0d | 20 20 20 20 20 20 20 20 |guments.| | |000020b0| 20 20 73 6f 6d 65 77 68 | 61 74 20 6c 69 6b 65 20 | somewh|at like | |000020c0| 22 73 65 64 20 2d 6e 22 | 20 6f 72 20 61 77 6b 3a |"sed -n"| or awk:| |000020d0| 0d 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | | |000020e0| 20 77 68 69 6c 65 20 28 | 3c 3e 29 20 7b 0d 20 20 | while (|<>) {. | |000020f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002100| 20 20 2e 2e 2e 20 20 20 | 20 20 20 20 23 20 79 6f | ... | # yo| |00002110| 75 72 20 73 63 72 69 70 | 74 20 67 6f 65 73 20 68 |ur scrip|t goes h| |00002120| 65 72 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ere. | | |00002130| 20 20 20 7d 0d 0d 20 20 | 20 20 20 20 20 20 20 20 | }.. | | |00002140| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 6c 69 |Note tha|t the li| |00002150| 6e 65 73 20 61 72 65 20 | 6e 6f 74 20 70 72 69 6e |nes are |not prin| |00002160| 74 65 64 20 62 79 20 64 | 65 66 61 75 6c 74 2e 20 |ted by d|efault. | |00002170| 20 53 65 65 20 2d 70 0d | 20 20 20 20 20 20 20 20 | See -p.| | |00002180| 20 20 74 6f 20 20 68 61 | 76 65 20 20 6c 69 6e 65 | to ha|ve line| |00002190| 73 20 20 70 72 69 6e 74 | 65 64 2e 20 20 20 48 65 |s print|ed. He| |000021a0| 72 65 20 69 73 20 61 6e | 20 65 66 66 69 63 69 65 |re is an| efficie| |000021b0| 6e 74 20 77 61 79 20 74 | 6f 0d 20 20 20 20 20 20 |nt way t|o. | |000021c0| 20 20 20 20 64 65 6c 65 | 74 65 20 61 6c 6c 20 66 | dele|te all f| |000021d0| 69 6c 65 73 20 6f 6c 64 | 65 72 20 74 68 61 6e 20 |iles old|er than | |000021e0| 61 20 77 65 65 6b 3a 0d | 0d 20 20 20 20 20 20 20 |a week:.|. | |000021f0| 20 20 20 20 20 20 20 20 | 66 69 6e 64 20 2e 20 2d | |find . -| |00002200| 6d 74 69 6d 65 20 2b 37 | 20 2d 70 72 69 6e 74 20 |mtime +7| -print | |00002210| 7c 20 70 65 72 6c 20 2d | 6e 6c 65 20 27 75 6e 6c || perl -|nle 'unl| |00002220| 69 6e 6b 3b 27 0d 0d 20 | 20 20 20 20 20 20 20 20 |ink;'.. | | |00002230| 20 54 68 69 73 20 69 73 | 20 66 61 73 74 65 72 20 | This is| faster | |00002240| 74 68 61 6e 20 75 73 69 | 6e 67 20 20 74 68 65 20 |than usi|ng the | |00002250| 20 2d 65 78 65 63 20 20 | 73 77 69 74 63 68 20 20 | -exec |switch | |00002260| 6f 66 20 20 66 69 6e 64 | 0d 20 20 20 20 20 20 20 |of find|. | |00002270| 20 20 20 62 65 63 61 75 | 73 65 20 20 79 6f 75 20 | becau|se you | |00002280| 20 64 6f 6e 27 74 20 20 | 68 61 76 65 20 20 74 6f | don't |have to| |00002290| 20 20 73 74 61 72 74 20 | 61 20 70 72 6f 63 65 73 | start |a proces| |000022a0| 73 20 6f 6e 20 65 76 65 | 72 79 0d 20 20 20 20 20 |s on eve|ry. | |000022b0| 20 20 20 20 20 66 69 6c | 65 6e 61 6d 65 20 66 6f | fil|ename fo| |000022c0| 75 6e 64 2e 0d 0d 20 20 | 20 20 20 2d 70 20 20 20 |und... | -p | |000022d0| 63 61 75 73 65 73 20 70 | 65 72 6c 20 74 6f 20 61 |causes p|erl to a| |000022e0| 73 73 75 6d 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ssume th|e follow| |000022f0| 69 6e 67 20 20 6c 6f 6f | 70 20 20 61 72 6f 75 6e |ing loo|p aroun| |00002300| 64 20 20 79 6f 75 72 0d | 20 20 20 20 20 20 20 20 |d your.| | |00002310| 20 20 73 63 72 69 70 74 | 2c 20 20 77 68 69 63 68 | script|, which| |00002320| 20 6d 61 6b 65 73 20 69 | 74 20 69 74 65 72 61 74 | makes i|t iterat| |00002330| 65 20 6f 76 65 72 20 66 | 69 6c 65 6e 61 6d 65 20 |e over f|ilename | |00002340| 61 72 67 75 6d 65 6e 74 | 73 0d 20 20 20 20 20 20 |argument|s. | |00002350| 20 20 20 20 73 6f 6d 65 | 77 68 61 74 20 6c 69 6b | some|what lik| |00002360| 65 20 73 65 64 3a 0d 0d | 20 20 20 20 20 20 20 20 |e sed:..| | |00002370| 20 20 20 20 20 20 20 77 | 68 69 6c 65 20 28 3c 3e | w|hile (<>| |00002380| 29 20 7b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |00002390| 20 20 20 20 20 20 20 20 | 2e 2e 2e 20 20 20 20 20 | |... | |000023a0| 20 20 23 20 79 6f 75 72 | 20 73 63 72 69 70 74 20 | # your| script | |000023b0| 67 6f 65 73 20 68 65 72 | 65 0d 20 20 20 20 20 20 |goes her|e. | |000023c0| 20 20 20 20 20 20 20 20 | 20 7d 20 63 6f 6e 74 69 | | } conti| |000023d0| 6e 75 65 20 7b 0d 20 20 | 20 20 20 20 20 20 20 20 |nue {. | | |000023e0| 20 20 20 20 20 20 20 20 | 20 20 70 72 69 6e 74 3b | | print;| |000023f0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00002400| 7d 0d 0d 20 20 20 20 20 | 20 20 20 20 20 4e 6f 74 |}.. | Not| |00002410| 65 20 74 68 61 74 20 74 | 68 65 20 20 6c 69 6e 65 |e that t|he line| |00002420| 73 20 20 61 72 65 20 20 | 70 72 69 6e 74 65 64 20 |s are |printed | |00002430| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 2e 20 | automat|ically. | |00002440| 20 20 54 6f 0d 20 20 20 | 20 20 20 20 20 20 20 73 | To. | s| |00002450| 75 70 70 72 65 73 73 20 | 20 70 72 69 6e 74 69 6e |uppress | printin| |00002460| 67 20 75 73 65 20 74 68 | 65 20 2d 6e 20 73 77 69 |g use th|e -n swi| |00002470| 74 63 68 2e 20 20 41 20 | 2d 70 20 6f 76 65 72 72 |tch. A |-p overr| |00002480| 69 64 65 73 20 61 0d 20 | 20 20 20 20 20 20 20 20 |ides a. | | |00002490| 20 2d 6e 20 73 77 69 74 | 63 68 2e 0d 0d 20 20 20 | -n swit|ch... | |000024a0| 20 20 2d 50 20 20 20 63 | 61 75 73 65 73 20 79 6f | -P c|auses yo| |000024b0| 75 72 20 73 63 72 69 70 | 74 20 74 6f 20 62 65 20 |ur scrip|t to be | |000024c0| 72 75 6e 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |run thro|ugh the | |000024d0| 43 20 70 72 65 70 72 6f | 63 65 73 73 6f 72 0d 20 |C prepro|cessor. | |000024e0| 20 20 20 20 20 20 20 20 | 20 62 65 66 6f 72 65 20 | | before | |000024f0| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 20 62 79 | compila|tion by| |00002500| 20 70 65 72 6c 2e 20 20 | 28 53 69 6e 63 65 20 62 | perl. |(Since b| |00002510| 6f 74 68 20 63 6f 6d 6d | 65 6e 74 73 20 61 6e 64 |oth comm|ents and| |00002520| 0d 20 20 20 20 20 20 20 | 20 20 20 63 70 70 20 64 |. | cpp d| |00002530| 69 72 65 63 74 69 76 65 | 73 20 62 65 67 69 6e 20 |irective|s begin | |00002540| 77 69 74 68 20 74 68 65 | 20 23 20 63 68 61 72 61 |with the| # chara| |00002550| 63 74 65 72 2c 20 20 79 | 6f 75 20 20 73 68 6f 75 |cter, y|ou shou| |00002560| 6c 64 0d 20 20 20 20 20 | 20 20 20 20 20 61 76 6f |ld. | avo| |00002570| 69 64 20 20 73 74 61 72 | 74 69 6e 67 20 20 63 6f |id star|ting co| |00002580| 6d 6d 65 6e 74 73 20 20 | 77 69 74 68 20 61 6e 79 |mments |with any| |00002590| 20 77 6f 72 64 73 20 72 | 65 63 6f 67 6e 69 7a 65 | words r|ecognize| |000025a0| 64 20 62 79 0d 20 20 20 | 20 20 20 20 20 20 20 74 |d by. | t| |000025b0| 68 65 20 43 20 70 72 65 | 70 72 6f 63 65 73 73 6f |he C pre|processo| |000025c0| 72 20 73 75 63 68 20 61 | 73 20 22 69 66 22 2c 20 |r such a|s "if", | |000025d0| 22 65 6c 73 65 22 20 6f | 72 20 22 64 65 66 69 6e |"else" o|r "defin| |000025e0| 65 22 2e 29 0d 0d 20 20 | 20 20 20 2d 73 20 20 20 |e".).. | -s | |000025f0| 65 6e 61 62 6c 65 73 20 | 73 6f 6d 65 20 72 75 64 |enables |some rud| |00002600| 69 6d 65 6e 74 61 72 79 | 20 73 77 69 74 63 68 20 |imentary| switch | |00002610| 70 61 72 73 69 6e 67 20 | 66 6f 72 20 73 77 69 74 |parsing |for swit| |00002620| 63 68 65 73 20 6f 6e 0d | 20 20 20 20 20 20 20 20 |ches on.| | |00002630| 20 20 74 68 65 20 20 63 | 6f 6d 6d 61 6e 64 20 20 | the c|ommand | |00002640| 6c 69 6e 65 20 61 66 74 | 65 72 20 74 68 65 20 73 |line aft|er the s| |00002650| 63 72 69 70 74 20 6e 61 | 6d 65 20 62 75 74 20 62 |cript na|me but b| |00002660| 65 66 6f 72 65 20 61 6e | 79 0d 20 20 20 20 20 20 |efore an|y. | |00002670| 20 20 20 20 66 69 6c 65 | 6e 61 6d 65 20 61 72 67 | file|name arg| |00002680| 75 6d 65 6e 74 73 20 28 | 6f 72 20 62 65 66 6f 72 |uments (|or befor| |00002690| 65 20 61 20 2d 2d 29 2e | 20 20 41 6e 79 20 73 77 |e a --).| Any sw| |000026a0| 69 74 63 68 20 20 66 6f | 75 6e 64 0d 20 20 20 20 |itch fo|und. | |000026b0| 20 20 20 20 20 20 74 68 | 65 72 65 20 20 69 73 20 | th|ere is | |000026c0| 72 65 6d 6f 76 65 64 20 | 66 72 6f 6d 20 40 41 52 |removed |from @AR| |000026d0| 47 56 20 61 6e 64 20 73 | 65 74 73 20 74 68 65 20 |GV and s|ets the | |000026e0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 0d 20 20 |correspo|nding. | |000026f0| 20 20 20 20 20 20 20 20 | 76 61 72 69 61 62 6c 65 | |variable| |00002700| 20 69 6e 20 74 68 65 20 | 20 70 65 72 6c 20 20 73 | in the | perl s| |00002710| 63 72 69 70 74 2e 20 20 | 20 54 68 65 20 20 66 6f |cript. | The fo| |00002720| 6c 6c 6f 77 69 6e 67 20 | 20 73 63 72 69 70 74 0d |llowing | script.| |00002730| 20 20 20 20 20 20 20 20 | 20 20 70 72 69 6e 74 73 | | prints| |00002740| 20 22 74 72 75 65 22 20 | 69 66 20 61 6e 64 20 6f | "true" |if and o| |00002750| 6e 6c 79 20 69 66 20 74 | 68 65 20 73 63 72 69 70 |nly if t|he scrip| |00002760| 74 20 69 73 20 69 6e 76 | 6f 6b 65 64 20 77 69 74 |t is inv|oked wit| |00002770| 68 0d 20 20 20 20 20 20 | 20 20 20 20 61 20 2d 78 |h. | a -x| |00002780| 79 7a 20 73 77 69 74 63 | 68 2e 0d 0d 20 20 20 20 |yz switc|h... | |00002790| 20 20 20 20 20 20 20 20 | 20 20 20 23 21 2f 75 73 | | #!/us| |000027a0| 72 2f 62 69 6e 2f 70 65 | 72 6c 20 2d 73 0d 20 20 |r/bin/pe|rl -s. | |000027b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if | |000027c0| 28 24 78 79 7a 29 20 7b | 20 70 72 69 6e 74 20 22 |($xyz) {| print "| |000027d0| 74 72 75 65 5c 6e 22 3b | 20 7d 0d 0d 20 20 20 20 |true\n";| }.. | |000027e0| 20 2d 53 20 20 20 6d 61 | 6b 65 73 20 70 65 72 6c | -S ma|kes perl| |000027f0| 20 75 73 65 20 74 68 65 | 20 50 41 54 48 20 65 6e | use the| PATH en| |00002800| 76 69 72 6f 6e 6d 65 6e | 74 20 76 61 72 69 61 62 |vironmen|t variab| |00002810| 6c 65 20 74 6f 20 20 73 | 65 61 72 63 68 0d 20 20 |le to s|earch. | |00002820| 20 20 20 20 20 20 20 20 | 66 6f 72 20 20 74 68 65 | |for the| |00002830| 20 20 73 63 72 69 70 74 | 20 20 28 75 6e 6c 65 73 | script| (unles| |00002840| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th| |00002850| 65 20 73 63 72 69 70 74 | 20 73 74 61 72 74 73 0d |e script| starts.| |00002860| 20 20 20 20 20 20 20 20 | 20 20 77 69 74 68 20 61 | | with a| |00002870| 20 73 6c 61 73 68 29 2e | 20 20 54 79 70 69 63 61 | slash).| Typica| |00002880| 6c 6c 79 20 74 68 69 73 | 20 69 73 20 75 73 65 64 |lly this| is used| |00002890| 20 20 74 6f 20 20 65 6d | 75 6c 61 74 65 20 20 23 | to em|ulate #| |000028a0| 21 0d 20 20 20 20 20 20 | 20 20 20 20 73 74 61 72 |!. | star| |000028b0| 74 75 70 20 20 6f 6e 20 | 6d 61 63 68 69 6e 65 73 |tup on |machines| |000028c0| 20 74 68 61 74 20 64 6f | 6e 27 74 20 73 75 70 70 | that do|n't supp| |000028d0| 6f 72 74 20 23 21 2c 20 | 69 6e 20 74 68 65 20 66 |ort #!, |in the f| |000028e0| 6f 6c 2d 0d 20 20 20 20 | 20 20 20 20 20 20 6c 6f |ol-. | lo| |000028f0| 77 69 6e 67 20 6d 61 6e | 6e 65 72 3a 0d 0d 20 20 |wing man|ner:.. | |00002900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 21 2f | | #!/| |00002910| 75 73 72 2f 62 69 6e 2f | 70 65 72 6c 0d 20 20 20 |usr/bin/|perl. | |00002920| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 76 61 6c | | eval| |00002930| 20 22 65 78 65 63 20 2f | 75 73 72 2f 62 69 6e 2f | "exec /|usr/bin/| |00002940| 70 65 72 6c 20 2d 53 20 | 24 30 20 24 2a 22 0d 20 |perl -S |$0 $*". | |00002950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002960| 20 20 20 69 66 20 24 72 | 75 6e 6e 69 6e 67 5f 75 | if $r|unning_u| |00002970| 6e 64 65 72 5f 73 6f 6d | 65 5f 73 68 65 6c 6c 3b |nder_som|e_shell;| |00002980| 0d 0d 20 20 20 20 20 20 | 20 20 20 20 54 68 65 20 |.. | The | |00002990| 73 79 73 74 65 6d 20 69 | 67 6e 6f 72 65 73 20 74 |system i|gnores t| |000029a0| 68 65 20 66 69 72 73 74 | 20 6c 69 6e 65 20 61 6e |he first| line an| |000029b0| 64 20 66 65 65 64 73 20 | 74 68 65 20 20 73 63 72 |d feeds |the scr| |000029c0| 69 70 74 0d 20 20 20 20 | 20 20 20 20 20 20 74 6f |ipt. | to| |000029d0| 20 20 2f 62 69 6e 2f 73 | 68 2c 20 20 77 68 69 63 | /bin/s|h, whic| |000029e0| 68 20 70 72 6f 63 65 65 | 64 73 20 74 6f 20 74 72 |h procee|ds to tr| |000029f0| 79 20 74 6f 20 65 78 65 | 63 75 74 65 20 74 68 65 |y to exe|cute the| |00002a00| 20 70 65 72 6c 0d 20 20 | 20 20 20 20 20 20 20 20 | perl. | | |00002a10| 73 63 72 69 70 74 20 61 | 73 20 61 20 20 73 68 65 |script a|s a she| |00002a20| 6c 6c 20 20 73 63 72 69 | 70 74 2e 20 20 20 54 68 |ll scri|pt. Th| |00002a30| 65 20 20 73 68 65 6c 6c | 20 20 65 78 65 63 75 74 |e shell| execut| |00002a40| 65 73 20 20 74 68 65 0d | 20 20 20 20 20 20 20 20 |es the.| | |00002a50| 20 20 73 65 63 6f 6e 64 | 20 20 6c 69 6e 65 20 61 | second| line a| |00002a60| 73 20 61 20 6e 6f 72 6d | 61 6c 20 73 68 65 6c 6c |s a norm|al shell| |00002a70| 20 63 6f 6d 6d 61 6e 64 | 2c 20 61 6e 64 20 74 68 | command|, and th| |00002a80| 75 73 20 73 74 61 72 74 | 73 0d 20 20 20 20 20 20 |us start|s. | |00002a90| 20 20 20 20 75 70 20 74 | 68 65 20 70 65 72 6c 20 | up t|he perl | |00002aa0| 69 6e 74 65 72 70 72 65 | 74 65 72 2e 20 20 4f 6e |interpre|ter. On| |00002ab0| 20 73 6f 6d 65 20 20 73 | 79 73 74 65 6d 73 20 20 | some s|ystems | |00002ac0| 24 30 20 20 64 6f 65 73 | 6e 27 74 0d 20 20 20 20 |$0 does|n't. | |00002ad0| 20 20 20 20 20 20 61 6c | 77 61 79 73 20 20 63 6f | al|ways co| |00002ae0| 6e 74 61 69 6e 20 74 68 | 65 20 66 75 6c 6c 20 70 |ntain th|e full p| |00002af0| 61 74 68 6e 61 6d 65 2c | 20 73 6f 20 74 68 65 20 |athname,| so the | |00002b00| 2d 53 20 74 65 6c 6c 73 | 20 70 65 72 6c 0d 20 20 |-S tells| perl. | |00002b10| 20 20 20 20 20 20 20 20 | 74 6f 20 73 65 61 72 63 | |to searc| |00002b20| 68 20 66 6f 72 20 74 68 | 65 20 20 73 63 72 69 70 |h for th|e scrip| |00002b30| 74 20 20 69 66 20 20 6e | 65 63 65 73 73 61 72 79 |t if n|ecessary| |00002b40| 2e 20 20 20 41 66 74 65 | 72 20 20 70 65 72 6c 0d |. Afte|r perl.| |00002b50| 20 20 20 20 20 20 20 20 | 20 20 6c 6f 63 61 74 65 | | locate| |00002b60| 73 20 20 74 68 65 20 20 | 73 63 72 69 70 74 2c 20 |s the |script, | |00002b70| 20 69 74 20 20 70 61 72 | 73 65 73 20 74 68 65 20 | it par|ses the | |00002b80| 6c 69 6e 65 73 20 61 6e | 64 20 69 67 6e 6f 72 65 |lines an|d ignore| |00002b90| 73 0d 20 20 20 20 20 20 | 20 20 20 20 74 68 65 6d |s. | them| |00002ba0| 20 62 65 63 61 75 73 65 | 20 74 68 65 20 76 61 72 | because| the var| |00002bb0| 69 61 62 6c 65 20 24 72 | 75 6e 6e 69 6e 67 5f 75 |iable $r|unning_u| |00002bc0| 6e 64 65 72 5f 73 6f 6d | 65 5f 73 68 65 6c 6c 20 |nder_som|e_shell | |00002bd0| 20 69 73 0d 20 20 20 20 | 20 20 20 20 20 20 6e 65 | is. | ne| |00002be0| 76 65 72 20 20 74 72 75 | 65 2e 20 20 20 41 20 20 |ver tru|e. A | |00002bf0| 62 65 74 74 65 72 20 20 | 63 6f 6e 73 74 72 75 63 |better |construc| |00002c00| 74 20 20 74 68 61 6e 20 | 20 24 2a 20 20 77 6f 75 |t than | $* wou| |00002c10| 6c 64 20 62 65 0d 20 20 | 20 20 20 20 20 20 20 20 |ld be. | | |00002c20| 24 7b 31 2b 22 24 40 22 | 7d 2c 20 77 68 69 63 68 |${1+"$@"|}, which| |00002c30| 20 68 61 6e 64 6c 65 73 | 20 65 6d 62 65 64 64 65 | handles| embedde| |00002c40| 64 20 73 70 61 63 65 73 | 20 20 61 6e 64 20 20 73 |d spaces| and s| |00002c50| 75 63 68 20 20 69 6e 0d | 20 20 20 20 20 20 20 20 |uch in.| | |00002c60| 20 20 74 68 65 20 20 66 | 69 6c 65 6e 61 6d 65 73 | the f|ilenames| |00002c70| 2c 20 62 75 74 20 64 6f | 65 73 6e 27 74 20 77 6f |, but do|esn't wo| |00002c80| 72 6b 20 69 66 20 74 68 | 65 20 73 63 72 69 70 74 |rk if th|e script| |00002c90| 20 69 73 20 62 65 69 6e | 67 0d 20 20 20 20 20 20 | is bein|g. | |00002ca0| 20 20 20 20 69 6e 74 65 | 72 70 72 65 74 65 64 20 | inte|rpreted | |00002cb0| 62 79 20 63 73 68 2e 20 | 20 49 6e 20 6f 72 64 65 |by csh. | In orde| |00002cc0| 72 20 74 6f 20 20 73 74 | 61 72 74 20 20 75 70 20 |r to st|art up | |00002cd0| 20 73 68 20 20 72 61 74 | 68 65 72 0d 20 20 20 20 | sh rat|her. | |00002ce0| 20 20 20 20 20 20 74 68 | 61 6e 20 20 63 73 68 2c | th|an csh,| |00002cf0| 20 73 6f 6d 65 20 73 79 | 73 74 65 6d 73 20 6d 61 | some sy|stems ma| |00002d00| 79 20 68 61 76 65 20 74 | 6f 20 72 65 70 6c 61 63 |y have t|o replac| |00002d10| 65 20 74 68 65 20 23 21 | 20 6c 69 6e 65 0d 20 20 |e the #!| line. | |00002d20| 20 20 20 20 20 20 20 20 | 77 69 74 68 20 61 20 6c | |with a l| |00002d30| 69 6e 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 6a |ine cont|aining j| |00002d40| 75 73 74 20 61 20 63 6f | 6c 6f 6e 2c 20 77 68 69 |ust a co|lon, whi| |00002d50| 63 68 20 77 69 6c 6c 20 | 62 65 20 70 6f 6c 2d 0d |ch will |be pol-.| |00002d60| 20 20 20 20 20 20 20 20 | 20 20 69 74 65 6c 79 20 | | itely | |00002d70| 20 69 67 6e 6f 72 65 64 | 20 20 62 79 20 20 70 65 | ignored| by pe| |00002d80| 72 6c 2e 20 20 20 4f 74 | 68 65 72 20 73 79 73 74 |rl. Ot|her syst| |00002d90| 65 6d 73 20 63 61 6e 27 | 74 20 63 6f 6e 74 72 6f |ems can'|t contro| |00002da0| 6c 0d 20 20 20 20 20 20 | 20 20 20 20 74 68 61 74 |l. | that| |00002db0| 2c 20 61 6e 64 20 6e 65 | 65 64 20 61 20 74 6f 74 |, and ne|ed a tot| |00002dc0| 61 6c 6c 79 20 64 65 76 | 69 6f 75 73 20 20 63 6f |ally dev|ious co| |00002dd0| 6e 73 74 72 75 63 74 20 | 20 74 68 61 74 20 20 77 |nstruct | that w| |00002de0| 69 6c 6c 0d 20 20 20 20 | 20 20 20 20 20 20 77 6f |ill. | wo| |00002df0| 72 6b 20 20 75 6e 64 65 | 72 20 61 6e 79 20 6f 66 |rk unde|r any of| |00002e00| 20 63 73 68 2c 20 73 68 | 20 6f 72 20 70 65 72 6c | csh, sh| or perl| |00002e10| 2c 20 73 75 63 68 20 61 | 73 20 74 68 65 20 66 6f |, such a|s the fo| |00002e20| 6c 6c 6f 77 2d 0d 20 20 | 20 20 20 20 20 20 20 20 |llow-. | | |00002e30| 69 6e 67 3a 0d 0d 20 20 | 20 20 20 20 20 20 20 20 |ing:.. | | |00002e40| 20 20 20 20 20 65 76 61 | 6c 20 27 28 65 78 69 74 | eva|l '(exit| |00002e50| 20 24 3f 30 29 27 20 26 | 26 20 65 76 61 6c 20 27 | $?0)' &|& eval '| |00002e60| 65 78 65 63 20 2f 75 73 | 72 2f 62 69 6e 2f 70 65 |exec /us|r/bin/pe| |00002e70| 72 6c 20 2d 53 20 24 30 | 20 24 7b 31 2b 22 24 40 |rl -S $0| ${1+"$@| |00002e80| 22 7d 27 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |"}'. | | |00002e90| 20 20 20 26 20 65 76 61 | 6c 20 27 65 78 65 63 20 | & eva|l 'exec | |00002ea0| 2f 75 73 72 2f 62 69 6e | 2f 70 65 72 6c 20 2d 53 |/usr/bin|/perl -S| |00002eb0| 20 24 30 20 24 61 72 67 | 76 3a 71 27 0d 20 20 20 | $0 $arg|v:q'. | |00002ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00002ed0| 20 69 66 20 30 3b 0d 0d | 20 20 20 20 20 2d 75 20 | if 0;..| -u | |00002ee0| 20 20 63 61 75 73 65 73 | 20 70 65 72 6c 20 74 6f | causes| perl to| |00002ef0| 20 64 75 6d 70 20 63 6f | 72 65 20 61 66 74 65 72 | dump co|re after| |00002f00| 20 63 6f 6d 70 69 6c 69 | 6e 67 20 20 79 6f 75 72 | compili|ng your| |00002f10| 20 20 73 63 72 69 70 74 | 2e 0d 20 20 20 20 20 20 | script|.. | |00002f20| 20 20 20 20 59 6f 75 20 | 20 63 61 6e 20 20 74 68 | You | can th| |00002f30| 65 6e 20 20 74 61 6b 65 | 20 74 68 69 73 20 63 6f |en take| this co| |00002f40| 72 65 20 64 75 6d 70 20 | 61 6e 64 20 74 75 72 6e |re dump |and turn| |00002f50| 20 69 74 20 69 6e 74 6f | 20 61 6e 0d 20 20 20 20 | it into| an. | |00002f60| 20 20 20 20 20 20 65 78 | 65 63 75 74 61 62 6c 65 | ex|ecutable| |00002f70| 20 66 69 6c 65 20 62 79 | 20 75 73 69 6e 67 20 74 | file by| using t| |00002f80| 68 65 20 75 6e 64 75 6d | 70 20 70 72 6f 67 72 61 |he undum|p progra| |00002f90| 6d 20 20 28 6e 6f 74 20 | 20 73 75 70 2d 0d 20 20 |m (not | sup-. | |00002fa0| 20 20 20 20 20 20 20 20 | 70 6c 69 65 64 29 2e 20 | |plied). | |00002fb0| 20 20 54 68 69 73 20 20 | 73 70 65 65 64 73 20 20 | This |speeds | |00002fc0| 73 74 61 72 74 75 70 20 | 20 61 74 20 74 68 65 20 |startup | at the | |00002fd0| 65 78 70 65 6e 73 65 20 | 6f 66 20 73 6f 6d 65 0d |expense |of some.| |00002fe0| 20 20 20 20 20 20 20 20 | 20 20 64 69 73 6b 20 73 | | disk s| |00002ff0| 70 61 63 65 20 28 77 68 | 69 63 68 20 79 6f 75 20 |pace (wh|ich you | |00003000| 63 61 6e 20 20 6d 69 6e | 69 6d 69 7a 65 20 20 62 |can min|imize b| |00003010| 79 20 20 73 74 72 69 70 | 70 69 6e 67 20 20 74 68 |y strip|ping th| |00003020| 65 0d 20 20 20 20 20 20 | 20 20 20 20 65 78 65 63 |e. | exec| |00003030| 75 74 61 62 6c 65 29 2e | 20 20 20 28 53 74 69 6c |utable).| (Stil| |00003040| 6c 2c 20 61 20 22 68 65 | 6c 6c 6f 20 77 6f 72 6c |l, a "he|llo worl| |00003050| 64 22 20 65 78 65 63 75 | 74 61 62 6c 65 20 63 6f |d" execu|table co| |00003060| 6d 65 73 0d 20 20 20 20 | 20 20 20 20 20 20 6f 75 |mes. | ou| |00003070| 74 20 74 6f 20 61 62 6f | 75 74 20 32 30 30 4b 20 |t to abo|ut 200K | |00003080| 6f 6e 20 6d 79 20 6d 61 | 63 68 69 6e 65 2e 29 20 |on my ma|chine.) | |00003090| 49 66 20 79 6f 75 20 61 | 72 65 20 20 67 6f 69 6e |If you a|re goin| |000030a0| 67 20 20 74 6f 0d 20 20 | 20 20 20 20 20 20 20 20 |g to. | | |000030b0| 72 75 6e 20 79 6f 75 72 | 20 65 78 65 63 75 74 61 |run your| executa| |000030c0| 62 6c 65 20 61 73 20 61 | 20 73 65 74 2d 69 64 20 |ble as a| set-id | |000030d0| 70 72 6f 67 72 61 6d 20 | 74 68 65 6e 20 79 6f 75 |program |then you| |000030e0| 20 73 68 6f 75 6c 64 0d | 20 20 20 20 20 20 20 20 | should.| | |000030f0| 20 20 70 72 6f 62 61 62 | 6c 79 20 63 6f 6d 70 69 | probab|ly compi| |00003100| 6c 65 20 69 74 20 75 73 | 69 6e 67 20 74 61 69 6e |le it us|ing tain| |00003110| 74 70 65 72 6c 20 72 61 | 74 68 65 72 20 74 68 61 |tperl ra|ther tha| |00003120| 6e 20 20 6e 6f 72 6d 61 | 6c 0d 20 20 20 20 20 20 |n norma|l. | |00003130| 20 20 20 20 70 65 72 6c | 2e 20 20 20 49 66 20 79 | perl|. If y| |00003140| 6f 75 20 77 61 6e 74 20 | 74 6f 20 65 78 65 63 75 |ou want |to execu| |00003150| 74 65 20 61 20 70 6f 72 | 74 69 6f 6e 20 6f 66 20 |te a por|tion of | |00003160| 79 6f 75 72 20 73 63 72 | 69 70 74 0d 20 20 20 20 |your scr|ipt. | |00003170| 20 20 20 20 20 20 62 65 | 66 6f 72 65 20 64 75 6d | be|fore dum| |00003180| 70 69 6e 67 2c 20 75 73 | 65 20 74 68 65 20 64 75 |ping, us|e the du| |00003190| 6d 70 20 6f 70 65 72 61 | 74 6f 72 20 20 69 6e 73 |mp opera|tor ins| |000031a0| 74 65 61 64 2e 20 20 20 | 4e 6f 74 65 3a 0d 20 20 |tead. |Note:. | |000031b0| 20 20 20 20 20 20 20 20 | 61 76 61 69 6c 61 62 69 | |availabi| |000031c0| 6c 69 74 79 20 6f 66 20 | 75 6e 64 75 6d 70 20 69 |lity of |undump i| |000031d0| 73 20 70 6c 61 74 66 6f | 72 6d 20 73 70 65 63 69 |s platfo|rm speci| |000031e0| 66 69 63 20 61 6e 64 20 | 6d 61 79 20 6e 6f 74 0d |fic and |may not.| |000031f0| 20 20 20 20 20 20 20 20 | 20 20 62 65 20 61 76 61 | | be ava| |00003200| 69 6c 61 62 6c 65 20 66 | 6f 72 20 61 20 73 70 65 |ilable f|or a spe| |00003210| 63 69 66 69 63 20 70 6f | 72 74 20 6f 66 20 70 65 |cific po|rt of pe| |00003220| 72 6c 2e 0d 0d 20 20 20 | 20 20 2d 55 20 20 20 61 |rl... | -U a| |00003230| 6c 6c 6f 77 73 20 70 65 | 72 6c 20 74 6f 20 64 6f |llows pe|rl to do| |00003240| 20 20 75 6e 73 61 66 65 | 20 20 6f 70 65 72 61 74 | unsafe| operat| |00003250| 69 6f 6e 73 2e 20 20 20 | 43 75 72 72 65 6e 74 6c |ions. |Currentl| |00003260| 79 20 20 74 68 65 0d 20 | 20 20 20 20 20 20 20 20 |y the. | | |00003270| 20 6f 6e 6c 79 20 20 22 | 75 6e 73 61 66 65 22 20 | only "|unsafe" | |00003280| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 20 61 72 65 | operati|ons are| |00003290| 20 74 68 65 20 75 6e 6c | 69 6e 6b 69 6e 67 20 6f | the unl|inking o| |000032a0| 66 20 64 69 72 65 63 2d | 0d 20 20 20 20 20 20 20 |f direc-|. | |000032b0| 20 20 20 74 6f 72 69 65 | 73 20 77 68 69 6c 65 20 | torie|s while | |000032c0| 72 75 6e 6e 69 6e 67 20 | 61 73 20 73 75 70 65 72 |running |as super| |000032d0| 75 73 65 72 2c 20 61 6e | 64 20 20 72 75 6e 6e 69 |user, an|d runni| |000032e0| 6e 67 20 20 73 65 74 75 | 69 64 0d 20 20 20 20 20 |ng setu|id. | |000032f0| 20 20 20 20 20 70 72 6f | 67 72 61 6d 73 20 77 69 | pro|grams wi| |00003300| 74 68 20 66 61 74 61 6c | 20 74 61 69 6e 74 20 63 |th fatal| taint c| |00003310| 68 65 63 6b 73 20 74 75 | 72 6e 65 64 20 69 6e 74 |hecks tu|rned int| |00003320| 6f 20 77 61 72 6e 69 6e | 67 73 2e 0d 0d 20 20 20 |o warnin|gs... | |00003330| 20 20 2d 76 20 20 20 70 | 72 69 6e 74 73 20 74 68 | -v p|rints th| |00003340| 65 20 76 65 72 73 69 6f | 6e 20 61 6e 64 20 70 61 |e versio|n and pa| |00003350| 74 63 68 6c 65 76 65 6c | 20 6f 66 20 79 6f 75 72 |tchlevel| of your| |00003360| 20 70 65 72 6c 20 20 65 | 78 65 63 75 74 2d 0d 20 | perl e|xecut-. | |00003370| 20 20 20 20 20 20 20 20 | 20 61 62 6c 65 2e 0d 0d | | able...| |00003380| 20 20 20 20 20 2d 77 20 | 20 20 70 72 69 6e 74 73 | -w | prints| |00003390| 20 77 61 72 6e 69 6e 67 | 73 20 61 62 6f 75 74 20 | warning|s about | |000033a0| 69 64 65 6e 74 69 66 69 | 65 72 73 20 20 74 68 61 |identifi|ers tha| |000033b0| 74 20 20 61 72 65 20 20 | 6d 65 6e 74 69 6f 6e 65 |t are |mentione| |000033c0| 64 0d 20 20 20 20 20 20 | 20 20 20 20 6f 6e 6c 79 |d. | only| |000033d0| 20 20 6f 6e 63 65 2c 20 | 20 61 6e 64 20 20 73 63 | once, | and sc| |000033e0| 61 6c 61 72 20 76 61 72 | 69 61 62 6c 65 73 20 74 |alar var|iables t| |000033f0| 68 61 74 20 61 72 65 20 | 75 73 65 64 20 62 65 66 |hat are |used bef| |00003400| 6f 72 65 0d 20 20 20 20 | 20 20 20 20 20 20 62 65 |ore. | be| |00003410| 69 6e 67 20 73 65 74 2e | 20 20 41 6c 73 6f 20 77 |ing set.| Also w| |00003420| 61 72 6e 73 20 61 62 6f | 75 74 20 72 65 64 65 66 |arns abo|ut redef| |00003430| 69 6e 65 64 20 73 75 62 | 72 6f 75 74 69 6e 65 73 |ined sub|routines| |00003440| 2c 20 61 6e 64 0d 20 20 | 20 20 20 20 20 20 20 20 |, and. | | |00003450| 72 65 66 65 72 65 6e 63 | 65 73 20 20 74 6f 20 20 |referenc|es to | |00003460| 75 6e 64 65 66 69 6e 65 | 64 20 20 66 69 6c 65 68 |undefine|d fileh| |00003470| 61 6e 64 6c 65 73 20 20 | 6f 72 20 20 66 69 6c 65 |andles |or file| |00003480| 68 61 6e 64 6c 65 73 0d | 20 20 20 20 20 20 20 20 |handles.| | |00003490| 20 20 6f 70 65 6e 65 64 | 20 72 65 61 64 6f 6e 6c | opened| readonl| |000034a0| 79 20 74 68 61 74 20 79 | 6f 75 20 61 72 65 20 61 |y that y|ou are a| |000034b0| 74 74 65 6d 70 74 69 6e | 67 20 20 74 6f 20 20 77 |ttemptin|g to w| |000034c0| 72 69 74 65 20 20 6f 6e | 2e 0d 20 20 20 20 20 20 |rite on|.. | |000034d0| 20 20 20 20 41 6c 73 6f | 20 20 77 61 72 6e 73 20 | Also| warns | |000034e0| 79 6f 75 20 69 66 20 79 | 6f 75 20 75 73 65 20 3d |you if y|ou use =| |000034f0| 3d 20 6f 6e 20 76 61 6c | 75 65 73 20 74 68 61 74 |= on val|ues that| |00003500| 20 64 6f 6e 27 74 20 6c | 6f 6f 6b 0d 20 20 20 20 | don't l|ook. | |00003510| 20 20 20 20 20 20 6c 69 | 6b 65 20 6e 75 6d 62 65 | li|ke numbe| |00003520| 72 73 2c 20 61 6e 64 20 | 69 66 20 79 6f 75 72 20 |rs, and |if your | |00003530| 73 75 62 72 6f 75 74 69 | 6e 65 73 20 72 65 63 75 |subrouti|nes recu| |00003540| 72 73 65 20 6d 6f 72 65 | 20 74 68 61 6e 0d 20 20 |rse more| than. | |00003550| 20 20 20 20 20 20 20 20 | 31 30 30 20 64 65 65 70 | |100 deep| |00003560| 2e 0d 0d 20 20 20 20 20 | 2d 78 64 69 72 65 63 74 |... |-xdirect| |00003570| 6f 72 79 0d 20 20 20 20 | 20 20 20 20 20 20 74 65 |ory. | te| |00003580| 6c 6c 73 20 70 65 72 6c | 20 74 68 61 74 20 74 68 |lls perl| that th| |00003590| 65 20 73 63 72 69 70 74 | 20 69 73 20 65 6d 62 65 |e script| is embe| |000035a0| 64 64 65 64 20 20 69 6e | 20 20 61 20 20 6d 65 73 |dded in| a mes| |000035b0| 73 61 67 65 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |sage.. | | |000035c0| 4c 65 61 64 69 6e 67 20 | 20 67 61 72 62 61 67 65 |Leading | garbage| |000035d0| 20 77 69 6c 6c 20 62 65 | 20 64 69 73 63 61 72 64 | will be| discard| |000035e0| 65 64 20 75 6e 74 69 6c | 20 74 68 65 20 66 69 72 |ed until| the fir| |000035f0| 73 74 20 6c 69 6e 65 0d | 20 20 20 20 20 20 20 20 |st line.| | |00003600| 20 20 74 68 61 74 20 73 | 74 61 72 74 73 20 77 69 | that s|tarts wi| |00003610| 74 68 20 23 21 20 61 6e | 64 20 20 63 6f 6e 74 61 |th #! an|d conta| |00003620| 69 6e 73 20 20 74 68 65 | 20 20 73 74 72 69 6e 67 |ins the| string| |00003630| 20 20 22 70 65 72 6c 22 | 2e 0d 20 20 20 20 20 20 | "perl"|.. | |00003640| 20 20 20 20 41 6e 79 20 | 20 6d 65 61 6e 69 6e 67 | Any | meaning| |00003650| 66 75 6c 20 20 73 77 69 | 74 63 68 65 73 20 20 6f |ful swi|tches o| |00003660| 6e 20 74 68 61 74 20 6c | 69 6e 65 20 77 69 6c 6c |n that l|ine will| |00003670| 20 62 65 20 61 70 70 6c | 69 65 64 0d 20 20 20 20 | be appl|ied. | |00003680| 20 20 20 20 20 20 28 62 | 75 74 20 6f 6e 6c 79 20 | (b|ut only | |00003690| 6f 6e 65 20 67 72 6f 75 | 70 20 6f 66 20 73 77 69 |one grou|p of swi| |000036a0| 74 63 68 65 73 2c 20 61 | 73 20 77 69 74 68 20 6e |tches, a|s with n| |000036b0| 6f 72 6d 61 6c 20 23 21 | 20 70 72 6f 2d 0d 20 20 |ormal #!| pro-. | |000036c0| 20 20 20 20 20 20 20 20 | 63 65 73 73 69 6e 67 29 | |cessing)| |000036d0| 2e 20 20 20 49 66 20 61 | 20 64 69 72 65 63 74 6f |. If a| directo| |000036e0| 72 79 20 6e 61 6d 65 20 | 69 73 20 73 70 65 63 69 |ry name |is speci| |000036f0| 66 69 65 64 2c 20 50 65 | 72 6c 20 77 69 6c 6c 0d |fied, Pe|rl will.| |00003700| 20 20 20 20 20 20 20 20 | 20 20 73 77 69 74 63 68 | | switch| |00003710| 20 74 6f 20 74 68 61 74 | 20 64 69 72 65 63 74 6f | to that| directo| |00003720| 72 79 20 20 62 65 66 6f | 72 65 20 20 72 75 6e 6e |ry befo|re runn| |00003730| 69 6e 67 20 20 74 68 65 | 20 20 73 63 72 69 70 74 |ing the| script| |00003740| 2e 0d 20 20 20 20 20 20 | 20 20 20 20 54 68 65 20 |.. | The | |00003750| 2d 78 20 73 77 69 74 63 | 68 20 6f 6e 6c 79 20 63 |-x switc|h only c| |00003760| 6f 6e 74 72 6f 6c 73 20 | 74 68 65 20 74 68 65 20 |ontrols |the the | |00003770| 64 69 73 70 6f 73 61 6c | 20 6f 66 20 6c 65 61 64 |disposal| of lead| |00003780| 69 6e 67 0d 20 20 20 20 | 20 20 20 20 20 20 67 61 |ing. | ga| |00003790| 72 62 61 67 65 2e 20 20 | 54 68 65 20 73 63 72 69 |rbage. |The scri| |000037a0| 70 74 20 6d 75 73 74 20 | 62 65 20 74 65 72 6d 69 |pt must |be termi| |000037b0| 6e 61 74 65 64 20 77 69 | 74 68 20 5f 5f 45 4e 44 |nated wi|th __END| |000037c0| 5f 5f 20 69 66 0d 20 20 | 20 20 20 20 20 20 20 20 |__ if. | | |000037d0| 74 68 65 72 65 20 69 73 | 20 74 72 61 69 6c 69 6e |there is| trailin| |000037e0| 67 20 67 61 72 62 61 67 | 65 20 74 6f 20 62 65 20 |g garbag|e to be | |000037f0| 69 67 6e 6f 72 65 64 20 | 28 74 68 65 20 73 63 72 |ignored |(the scr| |00003800| 69 70 74 20 63 61 6e 0d | 20 20 20 20 20 20 20 20 |ipt can.| | |00003810| 20 20 70 72 6f 63 65 73 | 73 20 61 6e 79 20 6f 72 | proces|s any or| |00003820| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 74 72 61 69 | all of |the trai| |00003830| 6c 69 6e 67 20 67 61 72 | 62 61 67 65 20 76 69 61 |ling gar|bage via| |00003840| 20 74 68 65 20 44 41 54 | 41 0d 20 20 20 20 20 20 | the DAT|A. | |00003850| 20 20 20 20 66 69 6c 65 | 68 61 6e 64 6c 65 20 69 | file|handle i| |00003860| 66 20 64 65 73 69 72 65 | 64 29 2e 0d 0d 20 20 20 |f desire|d)... | |00003870| 20 20 44 61 74 61 20 54 | 79 70 65 73 20 61 6e 64 | Data T|ypes and| |00003880| 20 4f 62 6a 65 63 74 73 | 0d 0d 20 20 20 20 20 50 | Objects|.. P| |00003890| 65 72 6c 20 68 61 73 20 | 74 68 72 65 65 20 64 61 |erl has |three da| |000038a0| 74 61 20 74 79 70 65 73 | 3a 20 73 63 61 6c 61 72 |ta types|: scalar| |000038b0| 73 2c 20 61 72 72 61 79 | 73 20 6f 66 20 20 73 63 |s, array|s of sc| |000038c0| 61 6c 61 72 73 2c 20 20 | 61 6e 64 0d 20 20 20 20 |alars, |and. | |000038d0| 20 61 73 73 6f 63 69 61 | 74 69 76 65 20 61 72 72 | associa|tive arr| |000038e0| 61 79 73 20 6f 66 20 73 | 63 61 6c 61 72 73 2e 20 |ays of s|calars. | |000038f0| 20 4e 6f 72 6d 61 6c 20 | 61 72 72 61 79 73 20 61 | Normal |arrays a| |00003900| 72 65 20 69 6e 64 65 78 | 65 64 20 62 79 0d 20 20 |re index|ed by. | |00003910| 20 20 20 6e 75 6d 62 65 | 72 2c 20 61 6e 64 20 61 | numbe|r, and a| |00003920| 73 73 6f 63 69 61 74 69 | 76 65 20 61 72 72 61 79 |ssociati|ve array| |00003930| 73 20 62 79 20 73 74 72 | 69 6e 67 2e 0d 0d 20 20 |s by str|ing... | |00003940| 20 20 20 54 68 65 20 69 | 6e 74 65 72 70 72 65 74 | The i|nterpret| |00003950| 61 74 69 6f 6e 20 6f 66 | 20 6f 70 65 72 61 74 69 |ation of| operati| |00003960| 6f 6e 73 20 61 6e 64 20 | 76 61 6c 75 65 73 20 20 |ons and |values | |00003970| 69 6e 20 20 70 65 72 6c | 20 20 73 6f 6d 65 2d 0d |in perl| some-.| |00003980| 20 20 20 20 20 74 69 6d | 65 73 20 20 64 65 70 65 | tim|es depe| |00003990| 6e 64 73 20 6f 6e 20 74 | 68 65 20 72 65 71 75 69 |nds on t|he requi| |000039a0| 72 65 6d 65 6e 74 73 20 | 6f 66 20 74 68 65 20 63 |rements |of the c| |000039b0| 6f 6e 74 65 78 74 20 61 | 72 6f 75 6e 64 20 74 68 |ontext a|round th| |000039c0| 65 0d 20 20 20 20 20 6f | 70 65 72 61 74 69 6f 6e |e. o|peration| |000039d0| 20 6f 72 20 76 61 6c 75 | 65 2e 20 20 54 68 65 72 | or valu|e. Ther| |000039e0| 65 20 61 72 65 20 74 68 | 72 65 65 20 6d 61 6a 6f |e are th|ree majo| |000039f0| 72 20 63 6f 6e 74 65 78 | 74 73 3a 20 73 74 72 69 |r contex|ts: stri| |00003a00| 6e 67 2c 0d 20 20 20 20 | 20 6e 75 6d 65 72 69 63 |ng,. | numeric| |00003a10| 20 20 61 6e 64 20 20 61 | 72 72 61 79 2e 20 20 43 | and a|rray. C| |00003a20| 65 72 74 61 69 6e 20 6f | 70 65 72 61 74 69 6f 6e |ertain o|peration| |00003a30| 73 20 72 65 74 75 72 6e | 20 61 72 72 61 79 20 76 |s return| array v| |00003a40| 61 6c 75 65 73 0d 20 20 | 20 20 20 69 6e 20 63 6f |alues. | in co| |00003a50| 6e 74 65 78 74 73 20 77 | 61 6e 74 69 6e 67 20 61 |ntexts w|anting a| |00003a60| 6e 20 61 72 72 61 79 2c | 20 61 6e 64 20 73 63 61 |n array,| and sca| |00003a70| 6c 61 72 20 20 76 61 6c | 75 65 73 20 20 6f 74 68 |lar val|ues oth| |00003a80| 65 72 77 69 73 65 2e 0d | 20 20 20 20 20 28 49 66 |erwise..| (If| |00003a90| 20 74 68 69 73 20 69 73 | 20 74 72 75 65 20 6f 66 | this is| true of| |00003aa0| 20 61 6e 20 6f 70 65 72 | 61 74 69 6f 6e 20 69 74 | an oper|ation it| |00003ab0| 20 77 69 6c 6c 20 62 65 | 20 6d 65 6e 74 69 6f 6e | will be| mention| |00003ac0| 65 64 20 69 6e 20 74 68 | 65 0d 20 20 20 20 20 64 |ed in th|e. d| |00003ad0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for| |00003ae0| 20 74 68 61 74 20 6f 70 | 65 72 61 74 69 6f 6e 2e | that op|eration.| |00003af0| 29 20 4f 70 65 72 61 74 | 69 6f 6e 73 20 20 77 68 |) Operat|ions wh| |00003b00| 69 63 68 20 20 72 65 74 | 75 72 6e 0d 20 20 20 20 |ich ret|urn. | |00003b10| 20 73 63 61 6c 61 72 73 | 20 20 64 6f 6e 27 74 20 | scalars| don't | |00003b20| 20 63 61 72 65 20 20 77 | 68 65 74 68 65 72 20 20 | care w|hether | |00003b30| 74 68 65 20 20 63 6f 6e | 74 65 78 74 20 69 73 20 |the con|text is | |00003b40| 6c 6f 6f 6b 69 6e 67 20 | 66 6f 72 20 61 0d 20 20 |looking |for a. | |00003b50| 20 20 20 73 74 72 69 6e | 67 20 6f 72 20 61 20 6e | strin|g or a n| |00003b60| 75 6d 62 65 72 2c 20 62 | 75 74 20 20 73 63 61 6c |umber, b|ut scal| |00003b70| 61 72 20 20 76 61 72 69 | 61 62 6c 65 73 20 20 61 |ar vari|ables a| |00003b80| 6e 64 20 20 76 61 6c 75 | 65 73 20 20 61 72 65 0d |nd valu|es are.| |00003b90| 20 20 20 20 20 69 6e 74 | 65 72 70 72 65 74 65 64 | int|erpreted| |00003ba0| 20 61 73 20 73 74 72 69 | 6e 67 73 20 6f 72 20 6e | as stri|ngs or n| |00003bb0| 75 6d 62 65 72 73 20 61 | 73 20 61 70 70 72 6f 70 |umbers a|s approp| |00003bc0| 72 69 61 74 65 20 74 6f | 20 74 68 65 20 63 6f 6e |riate to| the con| |00003bd0| 2d 0d 20 20 20 20 20 74 | 65 78 74 2e 20 20 41 20 |-. t|ext. A | |00003be0| 73 63 61 6c 61 72 20 69 | 73 20 69 6e 74 65 72 70 |scalar i|s interp| |00003bf0| 72 65 74 65 64 20 61 73 | 20 54 52 55 45 20 69 6e |reted as| TRUE in| |00003c00| 20 74 68 65 20 62 6f 6f | 6c 65 61 6e 20 20 73 65 | the boo|lean se| |00003c10| 6e 73 65 0d 20 20 20 20 | 20 69 66 20 20 69 74 20 |nse. | if it | |00003c20| 20 69 73 20 20 6e 6f 74 | 20 20 74 68 65 20 6e 75 | is not| the nu| |00003c30| 6c 6c 20 73 74 72 69 6e | 67 20 6f 72 20 30 2e 20 |ll strin|g or 0. | |00003c40| 20 42 6f 6f 6c 65 61 6e | 73 20 72 65 74 75 72 6e | Boolean|s return| |00003c50| 65 64 20 62 79 0d 20 20 | 20 20 20 6f 70 65 72 61 |ed by. | opera| |00003c60| 74 6f 72 73 20 61 72 65 | 20 31 20 66 6f 72 20 74 |tors are| 1 for t| |00003c70| 72 75 65 20 61 6e 64 20 | 30 20 6f 72 20 27 27 20 |rue and |0 or '' | |00003c80| 28 74 68 65 20 6e 75 6c | 6c 20 20 73 74 72 69 6e |(the nul|l strin| |00003c90| 67 29 20 20 66 6f 72 0d | 20 20 20 20 20 66 61 6c |g) for.| fal| |00003ca0| 73 65 2e 0d 0d 20 20 20 | 20 20 54 68 65 72 65 20 |se... | There | |00003cb0| 61 72 65 20 61 63 74 75 | 61 6c 6c 79 20 74 77 6f |are actu|ally two| |00003cc0| 20 76 61 72 69 65 74 69 | 65 73 20 6f 66 20 6e 75 | varieti|es of nu| |00003cd0| 6c 6c 20 73 74 72 69 6e | 67 3a 20 64 65 66 69 6e |ll strin|g: defin| |00003ce0| 65 64 20 61 6e 64 0d 20 | 20 20 20 20 75 6e 64 65 |ed and. | unde| |00003cf0| 66 69 6e 65 64 2e 20 20 | 20 55 6e 64 65 66 69 6e |fined. | Undefin| |00003d00| 65 64 20 20 6e 75 6c 6c | 20 73 74 72 69 6e 67 73 |ed null| strings| |00003d10| 20 61 72 65 20 72 65 74 | 75 72 6e 65 64 20 77 68 | are ret|urned wh| |00003d20| 65 6e 20 74 68 65 72 65 | 0d 20 20 20 20 20 69 73 |en there|. is| |00003d30| 20 6e 6f 20 72 65 61 6c | 20 76 61 6c 75 65 20 66 | no real| value f| |00003d40| 6f 72 20 73 6f 6d 65 74 | 68 69 6e 67 2c 20 73 75 |or somet|hing, su| |00003d50| 63 68 20 61 73 20 77 68 | 65 6e 20 20 74 68 65 72 |ch as wh|en ther| |00003d60| 65 20 20 77 61 73 20 20 | 61 6e 0d 20 20 20 20 20 |e was |an. | |00003d70| 65 72 72 6f 72 2c 20 6f | 72 20 61 74 20 65 6e 64 |error, o|r at end| |00003d80| 20 6f 66 20 66 69 6c 65 | 2c 20 6f 72 20 77 68 65 | of file|, or whe| |00003d90| 6e 20 79 6f 75 20 72 65 | 66 65 72 20 74 6f 20 61 |n you re|fer to a| |00003da0| 6e 20 75 6e 69 6e 69 74 | 69 61 6c 2d 0d 20 20 20 |n uninit|ial-. | |00003db0| 20 20 69 7a 65 64 20 76 | 61 72 69 61 62 6c 65 20 | ized v|ariable | |00003dc0| 6f 72 20 65 6c 65 6d 65 | 6e 74 20 6f 66 20 61 6e |or eleme|nt of an| |00003dd0| 20 20 61 72 72 61 79 2e | 20 20 20 41 6e 20 20 75 | array.| An u| |00003de0| 6e 64 65 66 69 6e 65 64 | 20 20 6e 75 6c 6c 0d 20 |ndefined| null. | |00003df0| 20 20 20 20 73 74 72 69 | 6e 67 20 20 6d 61 79 20 | stri|ng may | |00003e00| 62 65 63 6f 6d 65 20 64 | 65 66 69 6e 65 64 20 74 |become d|efined t| |00003e10| 68 65 20 66 69 72 73 74 | 20 74 69 6d 65 20 79 6f |he first| time yo| |00003e20| 75 20 61 63 63 65 73 73 | 20 69 74 2c 20 62 75 74 |u access| it, but| |00003e30| 0d 20 20 20 20 20 70 72 | 69 6f 72 20 74 6f 20 74 |. pr|ior to t| |00003e40| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |hat you |can use | |00003e50| 74 68 65 20 64 65 66 69 | 6e 65 64 28 29 20 6f 70 |the defi|ned() op| |00003e60| 65 72 61 74 6f 72 20 20 | 74 6f 20 20 64 65 74 65 |erator |to dete| |00003e70| 72 2d 0d 20 20 20 20 20 | 6d 69 6e 65 20 77 68 65 |r-. |mine whe| |00003e80| 74 68 65 72 20 74 68 65 | 20 76 61 6c 75 65 20 69 |ther the| value i| |00003e90| 73 20 64 65 66 69 6e 65 | 64 20 6f 72 20 6e 6f 74 |s define|d or not| |00003ea0| 2e 0d 0d 20 20 20 20 20 | 52 65 66 65 72 65 6e 63 |... |Referenc| |00003eb0| 65 73 20 74 6f 20 73 63 | 61 6c 61 72 20 76 61 72 |es to sc|alar var| |00003ec0| 69 61 62 6c 65 73 20 61 | 6c 77 61 79 73 20 62 65 |iables a|lways be| |00003ed0| 67 69 6e 20 77 69 74 68 | 20 20 27 24 27 2c 20 20 |gin with| '$', | |00003ee0| 65 76 65 6e 0d 20 20 20 | 20 20 77 68 65 6e 20 72 |even. | when r| |00003ef0| 65 66 65 72 72 69 6e 67 | 20 74 6f 20 61 20 73 63 |eferring| to a sc| |00003f00| 61 6c 61 72 20 74 68 61 | 74 20 69 73 20 70 61 72 |alar tha|t is par| |00003f10| 74 20 6f 66 20 61 6e 20 | 61 72 72 61 79 2e 20 20 |t of an |array. | |00003f20| 54 68 75 73 3a 0d 0d 20 | 20 20 20 20 20 20 20 20 |Thus:.. | | |00003f30| 24 64 61 79 73 20 20 20 | 20 20 20 20 20 20 20 20 |$days | | |00003f40| 23 20 61 20 73 69 6d 70 | 6c 65 20 73 63 61 6c 61 |# a simp|le scala| |00003f50| 72 20 76 61 72 69 61 62 | 6c 65 0d 20 20 20 20 20 |r variab|le. | |00003f60| 20 20 20 20 24 64 61 79 | 73 5b 32 38 5d 20 20 20 | $day|s[28] | |00003f70| 20 20 20 20 23 20 32 39 | 74 68 20 65 6c 65 6d 65 | # 29|th eleme| |00003f80| 6e 74 20 6f 66 20 61 72 | 72 61 79 20 40 64 61 79 |nt of ar|ray @day| |00003f90| 73 0d 20 20 20 20 20 20 | 20 20 20 24 64 61 79 73 |s. | $days| |00003fa0| 7b 27 46 65 62 27 7d 20 | 20 20 20 23 20 6f 6e 65 |{'Feb'} | # one| |00003fb0| 20 76 61 6c 75 65 20 66 | 72 6f 6d 20 61 6e 20 61 | value f|rom an a| |00003fc0| 73 73 6f 63 69 61 74 69 | 76 65 20 61 72 72 61 79 |ssociati|ve array| |00003fd0| 0d 20 20 20 20 20 20 20 | 20 20 24 23 64 61 79 73 |. | $#days| |00003fe0| 20 20 20 20 20 20 20 20 | 20 20 23 20 6c 61 73 74 | | # last| |00003ff0| 20 69 6e 64 65 78 20 6f | 66 20 61 72 72 61 79 20 | index o|f array | |00004000| 40 64 61 79 73 0d 0d 20 | 20 20 20 20 62 75 74 20 |@days.. | but | |00004010| 65 6e 74 69 72 65 20 61 | 72 72 61 79 73 20 6f 72 |entire a|rrays or| |00004020| 20 61 72 72 61 79 20 73 | 6c 69 63 65 73 20 61 72 | array s|lices ar| |00004030| 65 20 64 65 6e 6f 74 65 | 64 20 62 79 20 27 40 27 |e denote|d by '@'| |00004040| 3a 0d 0d 20 20 20 20 20 | 20 20 20 20 40 64 61 79 |:.. | @day| |00004050| 73 20 20 20 20 20 20 20 | 20 20 20 20 23 20 28 24 |s | # ($| |00004060| 64 61 79 73 5b 30 5d 2c | 20 24 64 61 79 73 5b 31 |days[0],| $days[1| |00004070| 5d 2c 2e 2e 2e 20 24 64 | 61 79 73 5b 6e 5d 29 0d |],... $d|ays[n]).| |00004080| 20 20 20 20 20 20 20 20 | 20 40 64 61 79 73 5b 33 | | @days[3| |00004090| 2c 34 2c 35 5d 20 20 20 | 20 23 20 73 61 6d 65 20 |,4,5] | # same | |000040a0| 61 73 20 40 64 61 79 73 | 5b 33 2e 2e 35 5d 0d 20 |as @days|[3..5]. | |000040b0| 20 20 20 20 20 20 20 20 | 40 64 61 79 73 7b 27 61 | |@days{'a| |000040c0| 27 2c 27 63 27 7d 20 20 | 23 20 73 61 6d 65 20 61 |','c'} |# same a| |000040d0| 73 20 28 24 64 61 79 73 | 7b 27 61 27 7d 2c 24 64 |s ($days|{'a'},$d| |000040e0| 61 79 73 7b 27 63 27 7d | 29 0d 0d 20 20 20 20 20 |ays{'c'}|).. | |000040f0| 61 6e 64 20 65 6e 74 69 | 72 65 20 61 73 73 6f 63 |and enti|re assoc| |00004100| 69 61 74 69 76 65 20 61 | 72 72 61 79 73 20 61 72 |iative a|rrays ar| |00004110| 65 20 64 65 6e 6f 74 65 | 64 20 62 79 20 27 25 27 |e denote|d by '%'| |00004120| 3a 0d 0d 20 20 20 20 20 | 20 20 20 20 25 64 61 79 |:.. | %day| |00004130| 73 20 20 20 20 20 20 20 | 20 20 20 20 23 20 28 6b |s | # (k| |00004140| 65 79 31 2c 20 76 61 6c | 31 2c 20 6b 65 79 32 2c |ey1, val|1, key2,| |00004150| 20 76 61 6c 32 20 2e 2e | 2e 29 0d 0d 20 20 20 20 | val2 ..|.).. | |00004160| 20 41 6e 79 20 6f 66 20 | 74 68 65 73 65 20 65 69 | Any of |these ei| |00004170| 67 68 74 20 63 6f 6e 73 | 74 72 75 63 74 73 20 6d |ght cons|tructs m| |00004180| 61 79 20 73 65 72 76 65 | 20 61 73 20 61 6e 20 20 |ay serve| as an | |00004190| 6c 76 61 6c 75 65 2c 20 | 20 74 68 61 74 0d 20 20 |lvalue, | that. | |000041a0| 20 20 20 69 73 2c 20 20 | 6d 61 79 20 62 65 20 61 | is, |may be a| |000041b0| 73 73 69 67 6e 65 64 20 | 74 6f 2e 20 20 28 49 74 |ssigned |to. (It| |000041c0| 20 61 6c 73 6f 20 74 75 | 72 6e 73 20 6f 75 74 20 | also tu|rns out | |000041d0| 74 68 61 74 20 61 6e 20 | 61 73 73 69 67 6e 2d 0d |that an |assign-.| |000041e0| 20 20 20 20 20 6d 65 6e | 74 20 69 73 20 69 74 73 | men|t is its| |000041f0| 65 6c 66 20 61 6e 20 6c | 76 61 6c 75 65 20 69 6e |elf an l|value in| |00004200| 20 63 65 72 74 61 69 6e | 20 20 63 6f 6e 74 65 78 | certain| contex| |00004210| 74 73 2d 2d 73 65 65 20 | 20 65 78 61 6d 70 6c 65 |ts--see | example| |00004220| 73 0d 20 20 20 20 20 75 | 6e 64 65 72 20 20 73 2c |s. u|nder s,| |00004230| 20 74 72 20 61 6e 64 20 | 63 68 6f 70 2e 29 20 41 | tr and |chop.) A| |00004240| 73 73 69 67 6e 6d 65 6e | 74 20 74 6f 20 61 20 73 |ssignmen|t to a s| |00004250| 63 61 6c 61 72 20 65 76 | 61 6c 75 61 74 65 73 20 |calar ev|aluates | |00004260| 74 68 65 0d 20 20 20 20 | 20 72 69 67 68 74 68 61 |the. | rightha| |00004270| 6e 64 20 73 69 64 65 20 | 69 6e 20 61 20 73 63 61 |nd side |in a sca| |00004280| 6c 61 72 20 63 6f 6e 74 | 65 78 74 2c 20 77 68 69 |lar cont|ext, whi| |00004290| 6c 65 20 61 73 73 69 67 | 6e 6d 65 6e 74 20 20 74 |le assig|nment t| |000042a0| 6f 20 20 61 6e 0d 20 20 | 20 20 20 61 72 72 61 79 |o an. | array| |000042b0| 20 20 6f 72 20 20 61 72 | 72 61 79 20 20 73 6c 69 | or ar|ray sli| |000042c0| 63 65 20 20 65 76 61 6c | 75 61 74 65 73 20 20 74 |ce eval|uates t| |000042d0| 68 65 20 72 69 67 68 74 | 68 61 6e 64 20 73 69 64 |he right|hand sid| |000042e0| 65 20 69 6e 20 61 6e 0d | 20 20 20 20 20 61 72 72 |e in an.| arr| |000042f0| 61 79 20 63 6f 6e 74 65 | 78 74 2e 0d 0d 20 20 20 |ay conte|xt... | |00004300| 20 20 59 6f 75 20 6d 61 | 79 20 20 66 69 6e 64 20 | You ma|y find | |00004310| 20 74 68 65 20 20 6c 65 | 6e 67 74 68 20 20 6f 66 | the le|ngth of| |00004320| 20 20 61 72 72 61 79 20 | 20 40 64 61 79 73 20 20 | array | @days | |00004330| 62 79 20 20 65 76 61 6c | 75 61 74 69 6e 67 0d 20 |by eval|uating. | |00004340| 20 20 20 20 22 24 23 64 | 61 79 73 22 2c 20 20 61 | "$#d|ays", a| |00004350| 73 20 69 6e 20 63 73 68 | 2e 20 20 28 41 63 74 75 |s in csh|. (Actu| |00004360| 61 6c 6c 79 2c 20 69 74 | 27 73 20 6e 6f 74 20 74 |ally, it|'s not t| |00004370| 68 65 20 6c 65 6e 67 74 | 68 20 6f 66 20 74 68 65 |he lengt|h of the| |00004380| 0d 20 20 20 20 20 61 72 | 72 61 79 2c 20 69 74 27 |. ar|ray, it'| |00004390| 73 20 74 68 65 20 73 75 | 62 73 63 72 69 70 74 20 |s the su|bscript | |000043a0| 6f 66 20 74 68 65 20 6c | 61 73 74 20 65 6c 65 6d |of the l|ast elem| |000043b0| 65 6e 74 2c 20 20 73 69 | 6e 63 65 20 20 74 68 65 |ent, si|nce the| |000043c0| 72 65 0d 20 20 20 20 20 | 69 73 20 20 28 6f 72 64 |re. |is (ord| |000043d0| 69 6e 61 72 69 6c 79 29 | 20 61 20 30 74 68 20 65 |inarily)| a 0th e| |000043e0| 6c 65 6d 65 6e 74 2e 29 | 20 41 73 73 69 67 6e 69 |lement.)| Assigni| |000043f0| 6e 67 20 74 6f 20 24 23 | 64 61 79 73 20 63 68 61 |ng to $#|days cha| |00004400| 6e 67 65 73 0d 20 20 20 | 20 20 74 68 65 20 6c 65 |nges. | the le| |00004410| 6e 67 74 68 20 6f 66 20 | 74 68 65 20 61 72 72 61 |ngth of |the arra| |00004420| 79 2e 20 20 53 68 6f 72 | 74 65 6e 69 6e 67 20 61 |y. Shor|tening a| |00004430| 6e 20 61 72 72 61 79 20 | 62 79 20 74 68 69 73 20 |n array |by this | |00004440| 6d 65 74 68 6f 64 0d 20 | 20 20 20 20 64 6f 65 73 |method. | does| |00004450| 20 20 6e 6f 74 20 61 63 | 74 75 61 6c 6c 79 20 64 | not ac|tually d| |00004460| 65 73 74 72 6f 79 20 61 | 6e 79 20 76 61 6c 75 65 |estroy a|ny value| |00004470| 73 2e 20 20 4c 65 6e 67 | 74 68 65 6e 69 6e 67 20 |s. Leng|thening | |00004480| 61 6e 20 61 72 72 61 79 | 0d 20 20 20 20 20 74 68 |an array|. th| |00004490| 61 74 20 77 61 73 20 70 | 72 65 76 69 6f 75 73 6c |at was p|reviousl| |000044a0| 79 20 73 68 6f 72 74 65 | 6e 65 64 20 72 65 63 6f |y shorte|ned reco| |000044b0| 76 65 72 73 20 74 68 65 | 20 76 61 6c 75 65 73 20 |vers the| values | |000044c0| 74 68 61 74 20 20 77 65 | 72 65 0d 20 20 20 20 20 |that we|re. | |000044d0| 69 6e 20 20 74 68 6f 73 | 65 20 65 6c 65 6d 65 6e |in thos|e elemen| |000044e0| 74 73 2e 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |ts. You| can als| |000044f0| 6f 20 67 61 69 6e 20 73 | 6f 6d 65 20 6d 65 61 73 |o gain s|ome meas| |00004500| 75 72 65 20 6f 66 20 65 | 66 66 69 2d 0d 20 20 20 |ure of e|ffi-. | |00004510| 20 20 63 69 65 6e 63 79 | 20 62 79 20 70 72 65 65 | ciency| by pree| |00004520| 78 74 65 6e 64 69 6e 67 | 20 61 6e 20 61 72 72 61 |xtending| an arra| |00004530| 79 20 74 68 61 74 20 69 | 73 20 67 6f 69 6e 67 20 |y that i|s going | |00004540| 20 74 6f 20 20 67 65 74 | 20 20 62 69 67 2e 0d 20 | to get| big.. | |00004550| 20 20 20 20 28 59 6f 75 | 20 20 63 61 6e 20 20 61 | (You| can a| |00004560| 6c 73 6f 20 20 65 78 74 | 65 6e 64 20 20 61 6e 20 |lso ext|end an | |00004570| 61 72 72 61 79 20 62 79 | 20 61 73 73 69 67 6e 69 |array by| assigni| |00004580| 6e 67 20 74 6f 20 61 6e | 20 65 6c 65 6d 65 6e 74 |ng to an| element| |00004590| 0d 20 20 20 20 20 74 68 | 61 74 20 69 73 20 6f 66 |. th|at is of| |000045a0| 66 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |f the en|d of the| |000045b0| 20 61 72 72 61 79 2e 20 | 20 54 68 69 73 20 64 69 | array. | This di| |000045c0| 66 66 65 72 73 20 66 72 | 6f 6d 20 61 73 73 69 67 |ffers fr|om assig| |000045d0| 6e 2d 0d 20 20 20 20 20 | 69 6e 67 20 74 6f 20 24 |n-. |ing to $| |000045e0| 23 77 68 61 74 65 76 65 | 72 20 69 6e 20 74 68 61 |#whateve|r in tha| |000045f0| 74 20 69 6e 74 65 72 76 | 65 6e 69 6e 67 20 76 61 |t interv|ening va| |00004600| 6c 75 65 73 20 61 72 65 | 20 73 65 74 20 74 6f 20 |lues are| set to | |00004610| 6e 75 6c 6c 0d 20 20 20 | 20 20 72 61 74 68 65 72 |null. | rather| |00004620| 20 74 68 61 6e 20 72 65 | 63 6f 76 65 72 65 64 2e | than re|covered.| |00004630| 29 20 59 6f 75 20 63 61 | 6e 20 74 72 75 6e 63 61 |) You ca|n trunca| |00004640| 74 65 20 61 6e 20 20 61 | 72 72 61 79 20 20 64 6f |te an a|rray do| |00004650| 77 6e 20 20 74 6f 0d 20 | 20 20 20 20 6e 6f 74 68 |wn to. | noth| |00004660| 69 6e 67 20 20 62 79 20 | 61 73 73 69 67 6e 69 6e |ing by |assignin| |00004670| 67 20 74 68 65 20 6e 75 | 6c 6c 20 6c 69 73 74 20 |g the nu|ll list | |00004680| 28 29 20 74 6f 20 69 74 | 2e 20 20 54 68 65 20 66 |() to it|. The f| |00004690| 6f 6c 6c 6f 77 69 6e 67 | 0d 20 20 20 20 20 61 72 |ollowing|. ar| |000046a0| 65 20 65 78 61 63 74 6c | 79 20 65 71 75 69 76 61 |e exactl|y equiva| |000046b0| 6c 65 6e 74 0d 0d 20 20 | 20 20 20 20 20 20 20 20 |lent.. | | |000046c0| 40 77 68 61 74 65 76 65 | 72 20 3d 20 28 29 3b 0d |@whateve|r = ();.| |000046d0| 20 20 20 20 20 20 20 20 | 20 20 24 23 77 68 61 74 | | $#what| |000046e0| 65 76 65 72 20 3d 20 24 | 5b 20 2d 20 31 3b 0d 0d |ever = $|[ - 1;..| |000046f0| 20 20 20 20 20 49 66 20 | 79 6f 75 20 65 76 61 6c | If |you eval| |00004700| 75 61 74 65 20 61 6e 20 | 61 72 72 61 79 20 69 6e |uate an |array in| |00004710| 20 61 20 73 63 61 6c 61 | 72 20 63 6f 6e 74 65 78 | a scala|r contex| |00004720| 74 2c 20 69 74 20 72 65 | 74 75 72 6e 73 20 74 68 |t, it re|turns th| |00004730| 65 0d 20 20 20 20 20 6c | 65 6e 67 74 68 20 6f 66 |e. l|ength of| |00004740| 20 74 68 65 20 61 72 72 | 61 79 2e 20 20 54 68 65 | the arr|ay. The| |00004750| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 73 20 61 6c | followi|ng is al| |00004760| 77 61 79 73 20 74 72 75 | 65 3a 0d 0d 20 20 20 20 |ways tru|e:.. | |00004770| 20 20 20 20 20 20 73 63 | 61 6c 61 72 28 40 77 68 | sc|alar(@wh| |00004780| 61 74 65 76 65 72 29 20 | 3d 3d 20 24 23 77 68 61 |atever) |== $#wha| |00004790| 74 65 76 65 72 20 2d 20 | 24 5b 20 2b 20 31 3b 0d |tever - |$[ + 1;.| |000047a0| 0d 20 20 20 20 20 49 66 | 20 79 6f 75 20 65 76 61 |. If| you eva| |000047b0| 6c 75 61 74 65 20 61 6e | 20 61 73 73 6f 63 69 61 |luate an| associa| |000047c0| 74 69 76 65 20 61 72 72 | 61 79 20 69 6e 20 61 20 |tive arr|ay in a | |000047d0| 73 63 61 6c 61 72 20 63 | 6f 6e 74 65 78 74 2c 20 |scalar c|ontext, | |000047e0| 69 74 0d 20 20 20 20 20 | 72 65 74 75 72 6e 73 20 |it. |returns | |000047f0| 20 61 20 76 61 6c 75 65 | 20 77 68 69 63 68 20 69 | a value| which i| |00004800| 73 20 74 72 75 65 20 69 | 66 20 61 6e 64 20 6f 6e |s true i|f and on| |00004810| 6c 79 20 69 66 20 74 68 | 65 20 61 72 72 61 79 20 |ly if th|e array | |00004820| 63 6f 6e 2d 0d 20 20 20 | 20 20 74 61 69 6e 73 20 |con-. | tains | |00004830| 61 6e 79 20 65 6c 65 6d | 65 6e 74 73 2e 20 20 28 |any elem|ents. (| |00004840| 49 66 20 74 68 65 72 65 | 20 61 72 65 20 61 6e 79 |If there| are any| |00004850| 20 65 6c 65 6d 65 6e 74 | 73 2c 20 20 74 68 65 20 | element|s, the | |00004860| 20 76 61 6c 75 65 0d 20 | 20 20 20 20 72 65 74 75 | value. | retu| |00004870| 72 6e 65 64 20 20 69 73 | 20 61 20 73 74 72 69 6e |rned is| a strin| |00004880| 67 20 63 6f 6e 73 69 73 | 74 69 6e 67 20 6f 66 20 |g consis|ting of | |00004890| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 75 73 |the numb|er of us| |000048a0| 65 64 20 62 75 63 6b 2d | 0d 20 20 20 20 20 65 74 |ed buck-|. et| |000048b0| 73 20 61 6e 64 20 74 68 | 65 20 6e 75 6d 62 65 72 |s and th|e number| |000048c0| 20 6f 66 20 20 61 6c 6c | 6f 63 61 74 65 64 20 20 | of all|ocated | |000048d0| 62 75 63 6b 65 74 73 2c | 20 20 73 65 70 61 72 61 |buckets,| separa| |000048e0| 74 65 64 20 20 62 79 20 | 20 61 0d 20 20 20 20 20 |ted by | a. | |000048f0| 73 6c 61 73 68 2e 29 0d | 0d 20 20 20 20 20 4d 75 |slash.).|. Mu| |00004900| 6c 74 69 2d 64 69 6d 65 | 6e 73 69 6f 6e 61 6c 20 |lti-dime|nsional | |00004910| 61 72 72 61 79 73 20 61 | 72 65 20 6e 6f 74 20 64 |arrays a|re not d| |00004920| 69 72 65 63 74 6c 79 20 | 73 75 70 70 6f 72 74 65 |irectly |supporte| |00004930| 64 2c 20 62 75 74 20 73 | 65 65 0d 20 20 20 20 20 |d, but s|ee. | |00004940| 74 68 65 20 20 64 69 73 | 63 75 73 73 69 6f 6e 20 |the dis|cussion | |00004950| 6f 66 20 74 68 65 20 24 | 3b 20 76 61 72 69 61 62 |of the $|; variab| |00004960| 6c 65 20 6c 61 74 65 72 | 20 66 6f 72 20 61 20 6d |le later| for a m| |00004970| 65 61 6e 73 20 6f 66 20 | 65 6d 75 2d 0d 20 20 20 |eans of |emu-. | |00004980| 20 20 6c 61 74 69 6e 67 | 20 6d 75 6c 74 69 70 6c | lating| multipl| |00004990| 65 20 73 75 62 73 63 72 | 69 70 74 73 20 77 69 74 |e subscr|ipts wit| |000049a0| 68 20 61 6e 20 61 73 73 | 6f 63 69 61 74 69 76 65 |h an ass|ociative| |000049b0| 20 20 61 72 72 61 79 2e | 20 20 20 59 6f 75 0d 20 | array.| You. | |000049c0| 20 20 20 20 63 6f 75 6c | 64 20 20 61 6c 73 6f 20 | coul|d also | |000049d0| 20 77 72 69 74 65 20 20 | 61 20 73 75 62 72 6f 75 | write |a subrou| |000049e0| 74 69 6e 65 20 74 6f 20 | 74 75 72 6e 20 6d 75 6c |tine to |turn mul| |000049f0| 74 69 70 6c 65 20 73 75 | 62 73 63 72 69 70 74 73 |tiple su|bscripts| |00004a00| 0d 20 20 20 20 20 69 6e | 74 6f 20 61 20 73 69 6e |. in|to a sin| |00004a10| 67 6c 65 20 73 75 62 73 | 63 72 69 70 74 2e 0d 0d |gle subs|cript...| |00004a20| 20 20 20 20 20 45 76 65 | 72 79 20 64 61 74 61 20 | Eve|ry data | |00004a30| 74 79 70 65 20 68 61 73 | 20 69 74 73 20 6f 77 6e |type has| its own| |00004a40| 20 20 6e 61 6d 65 73 70 | 61 63 65 2e 20 20 20 59 | namesp|ace. Y| |00004a50| 6f 75 20 20 63 61 6e 2c | 20 20 77 69 74 68 6f 75 |ou can,| withou| |00004a60| 74 0d 20 20 20 20 20 66 | 65 61 72 20 20 6f 66 20 |t. f|ear of | |00004a70| 20 63 6f 6e 66 6c 69 63 | 74 2c 20 75 73 65 20 74 | conflic|t, use t| |00004a80| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 20 66 6f 72 |he same |name for| |00004a90| 20 61 20 73 63 61 6c 61 | 72 20 76 61 72 69 61 62 | a scala|r variab| |00004aa0| 6c 65 2c 0d 20 20 20 20 | 20 61 6e 20 61 72 72 61 |le,. | an arra| |00004ab0| 79 2c 20 61 6e 20 61 73 | 73 6f 63 69 61 74 69 76 |y, an as|sociativ| |00004ac0| 65 20 61 72 72 61 79 2c | 20 61 20 66 69 6c 65 68 |e array,| a fileh| |00004ad0| 61 6e 64 6c 65 2c 20 20 | 61 20 20 73 75 62 72 6f |andle, |a subro| |00004ae0| 75 74 69 6e 65 0d 20 20 | 20 20 20 6e 61 6d 65 2c |utine. | name,| |00004af0| 20 20 61 6e 64 2f 6f 72 | 20 20 61 20 6c 61 62 65 | and/or| a labe| |00004b00| 6c 2e 20 20 53 69 6e 63 | 65 20 76 61 72 69 61 62 |l. Sinc|e variab| |00004b10| 6c 65 20 61 6e 64 20 61 | 72 72 61 79 20 72 65 66 |le and a|rray ref| |00004b20| 65 72 65 6e 63 65 73 0d | 20 20 20 20 20 61 6c 77 |erences.| alw| |00004b30| 61 79 73 20 73 74 61 72 | 74 20 77 69 74 68 20 27 |ays star|t with '| |00004b40| 24 27 2c 20 27 40 27 2c | 20 6f 72 20 20 27 25 27 |$', '@',| or '%'| |00004b50| 2c 20 20 74 68 65 20 20 | 22 72 65 73 65 72 76 65 |, the |"reserve| |00004b60| 64 22 20 20 77 6f 72 64 | 73 0d 20 20 20 20 20 61 |d" word|s. a| |00004b70| 72 65 6e 27 74 20 20 69 | 6e 20 20 66 61 63 74 20 |ren't i|n fact | |00004b80| 20 72 65 73 65 72 76 65 | 64 20 20 77 69 74 68 20 | reserve|d with | |00004b90| 20 72 65 73 70 65 63 74 | 20 74 6f 20 76 61 72 69 | respect| to vari| |00004ba0| 61 62 6c 65 20 6e 61 6d | 65 73 2e 0d 0d 20 20 20 |able nam|es... | |00004bb0| 20 20 28 54 68 65 79 20 | 41 52 45 20 72 65 73 65 | (They |ARE rese| |00004bc0| 72 76 65 64 20 77 69 74 | 68 20 72 65 73 70 65 63 |rved wit|h respec| |00004bd0| 74 20 74 6f 20 6c 61 62 | 65 6c 73 20 20 61 6e 64 |t to lab|els and| |00004be0| 20 20 66 69 6c 65 68 61 | 6e 64 6c 65 73 2c 0d 20 | fileha|ndles,. | |00004bf0| 20 20 20 20 68 6f 77 65 | 76 65 72 2c 20 20 77 68 | howe|ver, wh| |00004c00| 69 63 68 20 20 64 6f 6e | 27 74 20 20 68 61 76 65 |ich don|'t have| |00004c10| 20 20 61 6e 20 20 69 6e | 69 74 69 61 6c 20 73 70 | an in|itial sp| |00004c20| 65 63 69 61 6c 20 63 68 | 61 72 61 63 74 65 72 2e |ecial ch|aracter.| |00004c30| 0d 20 20 20 20 20 48 69 | 6e 74 3a 20 20 79 6f 75 |. Hi|nt: you| |00004c40| 20 20 63 6f 75 6c 64 20 | 20 73 61 79 20 20 20 6f | could | say o| |00004c50| 70 65 6e 28 4c 4f 47 2c | 27 6c 6f 67 66 69 6c 65 |pen(LOG,|'logfile| |00004c60| 27 29 20 20 20 72 61 74 | 68 65 72 20 20 20 74 68 |') rat|her th| |00004c70| 61 6e 0d 20 20 20 20 20 | 6f 70 65 6e 28 6c 6f 67 |an. |open(log| |00004c80| 2c 27 6c 6f 67 66 69 6c | 65 27 29 2e 20 20 20 20 |,'logfil|e'). | |00004c90| 55 73 69 6e 67 20 20 20 | 75 70 70 65 72 63 61 73 |Using |uppercas| |00004ca0| 65 20 20 66 69 6c 65 68 | 61 6e 64 6c 65 73 20 20 |e fileh|andles | |00004cb0| 61 6c 73 6f 0d 20 20 20 | 20 20 69 6d 70 72 6f 76 |also. | improv| |00004cc0| 65 73 20 72 65 61 64 61 | 62 69 6c 69 74 79 20 61 |es reada|bility a| |00004cd0| 6e 64 20 70 72 6f 74 65 | 63 74 73 20 20 79 6f 75 |nd prote|cts you| |00004ce0| 20 20 66 72 6f 6d 20 20 | 63 6f 6e 66 6c 69 63 74 | from |conflict| |00004cf0| 20 20 77 69 74 68 0d 20 | 20 20 20 20 66 75 74 75 | with. | futu| |00004d00| 72 65 20 20 72 65 73 65 | 72 76 65 64 20 20 77 6f |re rese|rved wo| |00004d10| 72 64 73 2e 29 20 20 43 | 61 73 65 20 49 53 20 73 |rds.) C|ase IS s| |00004d20| 69 67 6e 69 66 69 63 61 | 6e 74 2d 2d 22 46 4f 4f |ignifica|nt--"FOO| |00004d30| 22 2c 20 22 46 6f 6f 22 | 0d 20 20 20 20 20 61 6e |", "Foo"|. an| |00004d40| 64 20 22 66 6f 6f 22 20 | 61 72 65 20 61 6c 6c 20 |d "foo" |are all | |00004d50| 64 69 66 66 65 72 65 6e | 74 20 6e 61 6d 65 73 2e |differen|t names.| |00004d60| 20 20 4e 61 6d 65 73 20 | 77 68 69 63 68 20 73 74 | Names |which st| |00004d70| 61 72 74 20 77 69 74 68 | 20 61 0d 20 20 20 20 20 |art with| a. | |00004d80| 6c 65 74 74 65 72 20 6d | 61 79 20 61 6c 73 6f 20 |letter m|ay also | |00004d90| 63 6f 6e 74 61 69 6e 20 | 64 69 67 69 74 73 20 61 |contain |digits a| |00004da0| 6e 64 20 75 6e 64 65 72 | 73 63 6f 72 65 73 2e 20 |nd under|scores. | |00004db0| 20 4e 61 6d 65 73 20 77 | 68 69 63 68 0d 20 20 20 | Names w|hich. | |00004dc0| 20 20 64 6f 20 6e 6f 74 | 20 73 74 61 72 74 20 77 | do not| start w| |00004dd0| 69 74 68 20 61 20 6c 65 | 74 74 65 72 20 61 72 65 |ith a le|tter are| |00004de0| 20 20 6c 69 6d 69 74 65 | 64 20 20 74 6f 20 20 6f | limite|d to o| |00004df0| 6e 65 20 20 63 68 61 72 | 61 63 74 65 72 2c 0d 20 |ne char|acter,. | |00004e00| 20 20 20 20 65 2e 67 2e | 20 20 22 24 25 22 20 6f | e.g.| "$%" o| |00004e10| 72 20 22 24 24 22 2e 20 | 20 28 4d 6f 73 74 20 6f |r "$$". | (Most o| |00004e20| 66 20 74 68 65 20 6f 6e | 65 20 63 68 61 72 61 63 |f the on|e charac| |00004e30| 74 65 72 20 6e 61 6d 65 | 73 20 68 61 76 65 20 61 |ter name|s have a| |00004e40| 0d 20 20 20 20 20 70 72 | 65 64 65 66 69 6e 65 64 |. pr|edefined| |00004e50| 20 73 69 67 6e 69 66 69 | 63 61 6e 63 65 20 74 6f | signifi|cance to| |00004e60| 20 70 65 72 6c 2e 20 20 | 4d 6f 72 65 20 6c 61 74 | perl. |More lat| |00004e70| 65 72 2e 29 0d 0d 20 20 | 20 20 20 4e 75 6d 65 72 |er.).. | Numer| |00004e80| 69 63 20 6c 69 74 65 72 | 61 6c 73 20 61 72 65 20 |ic liter|als are | |00004e90| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 61 6e 79 |specifie|d in any| |00004ea0| 20 6f 66 20 74 68 65 20 | 75 73 75 61 6c 20 20 66 | of the |usual f| |00004eb0| 6c 6f 61 74 69 6e 67 0d | 20 20 20 20 20 70 6f 69 |loating.| poi| |00004ec0| 6e 74 20 6f 72 20 69 6e | 74 65 67 65 72 20 66 6f |nt or in|teger fo| |00004ed0| 72 6d 61 74 73 3a 0d 0d | 20 20 20 20 20 20 20 20 |rmats:..| | |00004ee0| 20 31 32 33 34 35 0d 20 | 20 20 20 20 20 20 20 20 | 12345. | | |00004ef0| 31 32 33 34 35 2e 36 37 | 0d 20 20 20 20 20 20 20 |12345.67|. | |00004f00| 20 20 2e 32 33 45 2d 31 | 30 0d 20 20 20 20 20 20 | .23E-1|0. | |00004f10| 20 20 20 30 78 66 66 66 | 66 20 20 20 20 20 23 20 | 0xfff|f # | |00004f20| 68 65 78 0d 20 20 20 20 | 20 20 20 20 20 30 33 37 |hex. | 037| |00004f30| 37 20 20 23 20 6f 63 74 | 61 6c 0d 0d 20 20 20 20 |7 # oct|al.. | |00004f40| 20 53 74 72 69 6e 67 20 | 6c 69 74 65 72 61 6c 73 | String |literals| |00004f50| 20 61 72 65 20 64 65 6c | 69 6d 69 74 65 64 20 62 | are del|imited b| |00004f60| 79 20 20 65 69 74 68 65 | 72 20 20 73 69 6e 67 6c |y eithe|r singl| |00004f70| 65 20 20 6f 72 20 20 64 | 6f 75 62 6c 65 0d 20 20 |e or d|ouble. | |00004f80| 20 20 20 71 75 6f 74 65 | 73 2e 20 20 20 54 68 65 | quote|s. The| |00004f90| 79 20 20 77 6f 72 6b 20 | 20 6d 75 63 68 20 20 6c |y work | much l| |00004fa0| 69 6b 65 20 73 68 65 6c | 6c 20 71 75 6f 74 65 73 |ike shel|l quotes| |00004fb0| 3a 20 64 6f 75 62 6c 65 | 2d 71 75 6f 74 65 64 0d |: double|-quoted.| |00004fc0| 20 20 20 20 20 73 74 72 | 69 6e 67 20 6c 69 74 65 | str|ing lite| |00004fd0| 72 61 6c 73 20 61 72 65 | 20 73 75 62 6a 65 63 74 |rals are| subject| |00004fe0| 20 74 6f 20 62 61 63 6b | 73 6c 61 73 68 20 61 6e | to back|slash an| |00004ff0| 64 20 20 76 61 72 69 61 | 62 6c 65 20 20 73 75 62 |d varia|ble sub| |00005000| 2d 0d 20 20 20 20 20 73 | 74 69 74 75 74 69 6f 6e |-. s|titution| |00005010| 3b 20 20 73 69 6e 67 6c | 65 2d 71 75 6f 74 65 64 |; singl|e-quoted| |00005020| 20 73 74 72 69 6e 67 73 | 20 61 72 65 20 6e 6f 74 | strings| are not| |00005030| 20 28 65 78 63 65 70 74 | 20 66 6f 72 20 5c 27 20 | (except| for \' | |00005040| 61 6e 64 0d 20 20 20 20 | 20 5c 5c 29 2e 20 20 54 |and. | \\). T| |00005050| 68 65 20 75 73 75 61 6c | 20 62 61 63 6b 73 6c 61 |he usual| backsla| |00005060| 73 68 20 72 75 6c 65 73 | 20 61 70 70 6c 79 20 66 |sh rules| apply f| |00005070| 6f 72 20 6d 61 6b 69 6e | 67 20 20 63 68 61 72 61 |or makin|g chara| |00005080| 63 74 65 72 73 0d 20 20 | 20 20 20 73 75 63 68 20 |cters. | such | |00005090| 20 61 73 20 20 6e 65 77 | 6c 69 6e 65 2c 20 20 74 | as new|line, t| |000050a0| 61 62 2c 20 20 65 74 63 | 2e 2c 20 20 61 73 20 77 |ab, etc|., as w| |000050b0| 65 6c 6c 20 61 73 20 73 | 6f 6d 65 20 6d 6f 72 65 |ell as s|ome more| |000050c0| 20 65 78 6f 74 69 63 0d | 20 20 20 20 20 66 6f 72 | exotic.| for| |000050d0| 6d 73 3a 0d 0d 20 20 20 | 20 20 20 20 20 20 20 5c |ms:.. | \| |000050e0| 74 20 20 20 20 20 20 20 | 20 74 61 62 0d 20 20 20 |t | tab. | |000050f0| 20 20 20 20 20 20 20 5c | 6e 20 20 20 20 20 20 20 | \|n | |00005100| 20 6e 65 77 6c 69 6e 65 | 0d 20 20 20 20 20 20 20 | newline|. | |00005110| 20 20 20 5c 72 20 20 20 | 20 20 20 20 20 72 65 74 | \r | ret| |00005120| 75 72 6e 0d 20 20 20 20 | 20 20 20 20 20 20 5c 66 |urn. | \f| |00005130| 20 20 20 20 20 20 20 20 | 66 6f 72 6d 20 66 65 65 | |form fee| |00005140| 64 0d 20 20 20 20 20 20 | 20 20 20 20 5c 62 20 20 |d. | \b | |00005150| 20 20 20 20 20 20 62 61 | 63 6b 73 70 61 63 65 0d | ba|ckspace.| |00005160| 20 20 20 20 20 20 20 20 | 20 20 5c 61 20 20 20 20 | | \a | |00005170| 20 20 20 20 61 6c 61 72 | 6d 20 28 62 65 6c 6c 29 | alar|m (bell)| |00005180| 0d 20 20 20 20 20 20 20 | 20 20 20 5c 65 20 20 20 |. | \e | |00005190| 20 20 20 20 20 65 73 63 | 61 70 65 0d 20 20 20 20 | esc|ape. | |000051a0| 20 20 20 20 20 20 5c 30 | 33 33 20 20 20 20 20 20 | \0|33 | |000051b0| 6f 63 74 61 6c 20 63 68 | 61 72 0d 20 20 20 20 20 |octal ch|ar. | |000051c0| 20 20 20 20 20 5c 78 31 | 62 20 20 20 20 20 20 68 | \x1|b h| |000051d0| 65 78 20 63 68 61 72 0d | 20 20 20 20 20 20 20 20 |ex char.| | |000051e0| 20 20 5c 63 5b 20 20 20 | 20 20 20 20 63 6f 6e 74 | \c[ | cont| |000051f0| 72 6f 6c 20 63 68 61 72 | 0d 20 20 20 20 20 20 20 |rol char|. | |00005200| 20 20 20 5c 6c 20 20 20 | 20 20 20 20 20 6c 6f 77 | \l | low| |00005210| 65 72 63 61 73 65 20 6e | 65 78 74 20 63 68 61 72 |ercase n|ext char| |00005220| 0d 20 20 20 20 20 20 20 | 20 20 20 5c 75 20 20 20 |. | \u | |00005230| 20 20 20 20 20 75 70 70 | 65 72 63 61 73 65 20 6e | upp|ercase n| |00005240| 65 78 74 20 63 68 61 72 | 0d 20 20 20 20 20 20 20 |ext char|. | |00005250| 20 20 20 5c 4c 20 20 20 | 20 20 20 20 20 6c 6f 77 | \L | low| |00005260| 65 72 63 61 73 65 20 74 | 69 6c 6c 20 5c 45 0d 20 |ercase t|ill \E. | |00005270| 20 20 20 20 20 20 20 20 | 20 5c 55 20 20 20 20 20 | | \U | |00005280| 20 20 20 75 70 70 65 72 | 63 61 73 65 20 74 69 6c | upper|case til| |00005290| 6c 20 5c 45 0d 20 20 20 | 20 20 20 20 20 20 20 5c |l \E. | \| |000052a0| 45 20 20 20 20 20 20 20 | 20 65 6e 64 20 63 61 73 |E | end cas| |000052b0| 65 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 0d 0d |e modifi|cation..| |000052c0| 20 20 20 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 | You| can als| |000052d0| 6f 20 65 6d 62 65 64 20 | 6e 65 77 6c 69 6e 65 73 |o embed |newlines| |000052e0| 20 64 69 72 65 63 74 6c | 79 20 69 6e 20 79 6f 75 | directl|y in you| |000052f0| 72 20 20 73 74 72 69 6e | 67 73 2c 20 20 69 2e 65 |r strin|gs, i.e| |00005300| 2e 0d 20 20 20 20 20 74 | 68 65 79 20 20 63 61 6e |.. t|hey can| |00005310| 20 20 65 6e 64 20 6f 6e | 20 61 20 64 69 66 66 65 | end on| a diffe| |00005320| 72 65 6e 74 20 6c 69 6e | 65 20 74 68 61 6e 20 74 |rent lin|e than t| |00005330| 68 65 79 20 62 65 67 69 | 6e 2e 20 20 54 68 69 73 |hey begi|n. This| |00005340| 20 69 73 0d 20 20 20 20 | 20 6e 69 63 65 2c 20 62 | is. | nice, b| |00005350| 75 74 20 69 66 20 79 6f | 75 20 66 6f 72 67 65 74 |ut if yo|u forget| |00005360| 20 79 6f 75 72 20 74 72 | 61 69 6c 69 6e 67 20 71 | your tr|ailing q| |00005370| 75 6f 74 65 2c 20 74 68 | 65 20 65 72 72 6f 72 20 |uote, th|e error | |00005380| 20 77 69 6c 6c 0d 20 20 | 20 20 20 6e 6f 74 20 62 | will. | not b| |00005390| 65 20 72 65 70 6f 72 74 | 65 64 20 75 6e 74 69 6c |e report|ed until| |000053a0| 20 70 65 72 6c 20 66 69 | 6e 64 73 20 61 6e 6f 74 | perl fi|nds anot| |000053b0| 68 65 72 20 6c 69 6e 65 | 20 63 6f 6e 74 61 69 6e |her line| contain| |000053c0| 69 6e 67 20 74 68 65 0d | 20 20 20 20 20 71 75 6f |ing the.| quo| |000053d0| 74 65 20 63 68 61 72 61 | 63 74 65 72 2c 20 77 68 |te chara|cter, wh| |000053e0| 69 63 68 20 6d 61 79 20 | 62 65 20 6d 75 63 68 20 |ich may |be much | |000053f0| 66 75 72 74 68 65 72 20 | 6f 6e 20 69 6e 20 74 68 |further |on in th| |00005400| 65 20 73 63 72 69 70 74 | 2e 0d 20 20 20 20 20 56 |e script|.. V| |00005410| 61 72 69 61 62 6c 65 20 | 20 73 75 62 73 74 69 74 |ariable | substit| |00005420| 75 74 69 6f 6e 20 20 69 | 6e 73 69 64 65 20 20 73 |ution i|nside s| |00005430| 74 72 69 6e 67 73 20 69 | 73 20 6c 69 6d 69 74 65 |trings i|s limite| |00005440| 64 20 74 6f 20 73 63 61 | 6c 61 72 0d 20 20 20 20 |d to sca|lar. | |00005450| 20 76 61 72 69 61 62 6c | 65 73 2c 20 6e 6f 72 6d | variabl|es, norm| |00005460| 61 6c 20 61 72 72 61 79 | 20 76 61 6c 75 65 73 2c |al array| values,| |00005470| 20 61 6e 64 20 61 72 72 | 61 79 20 73 6c 69 63 65 | and arr|ay slice| |00005480| 73 2e 20 20 28 49 6e 20 | 6f 74 68 65 72 0d 20 20 |s. (In |other. | |00005490| 20 20 20 77 6f 72 64 73 | 2c 20 20 69 64 65 6e 74 | words|, ident| |000054a0| 69 66 69 65 72 73 20 20 | 62 65 67 69 6e 6e 69 6e |ifiers |beginnin| |000054b0| 67 20 20 77 69 74 68 20 | 20 24 20 6f 72 20 40 2c |g with | $ or @,| |000054c0| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 61 6e 0d | followe|d by an.| |000054d0| 20 20 20 20 20 6f 70 74 | 69 6f 6e 61 6c 20 62 72 | opt|ional br| |000054e0| 61 63 6b 65 74 65 64 20 | 65 78 70 72 65 73 73 69 |acketed |expressi| |000054f0| 6f 6e 20 61 73 20 61 20 | 73 75 62 73 63 72 69 70 |on as a |subscrip| |00005500| 74 2e 29 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |t.) The |followin| |00005510| 67 0d 20 20 20 20 20 63 | 6f 64 65 20 73 65 67 6d |g. c|ode segm| |00005520| 65 6e 74 20 70 72 69 6e | 74 73 20 6f 75 74 20 22 |ent prin|ts out "| |00005530| 54 68 65 20 70 72 69 63 | 65 20 69 73 20 24 31 30 |The pric|e is $10| |00005540| 30 2e 22 0d 0d 20 20 20 | 20 20 20 20 20 20 24 50 |0.".. | $P| |00005550| 72 69 63 65 20 3d 20 27 | 24 31 30 30 27 3b 20 20 |rice = '|$100'; | |00005560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 20 6e | | # n| |00005570| 6f 74 20 69 6e 74 65 72 | 70 72 65 74 65 64 0d 20 |ot inter|preted. | |00005580| 20 20 20 20 20 20 20 20 | 70 72 69 6e 74 20 22 54 | |print "T| |00005590| 68 65 20 70 72 69 63 65 | 20 69 73 20 24 50 72 69 |he price| is $Pri| |000055a0| 63 65 2e 5c 6e 22 3b 23 | 20 69 6e 74 65 72 70 72 |ce.\n";#| interpr| |000055b0| 65 74 65 64 0d 0d 20 20 | 20 20 20 4e 6f 74 65 20 |eted.. | Note | |000055c0| 74 68 61 74 20 79 6f 75 | 20 63 61 6e 20 70 75 74 |that you| can put| |000055d0| 20 63 75 72 6c 79 20 62 | 72 61 63 6b 65 74 73 20 | curly b|rackets | |000055e0| 61 72 6f 75 6e 64 20 20 | 74 68 65 20 20 69 64 65 |around |the ide| |000055f0| 6e 74 69 66 69 65 72 0d | 20 20 20 20 20 74 6f 20 |ntifier.| to | |00005600| 20 64 65 6c 69 6d 69 74 | 20 69 74 20 66 72 6f 6d | delimit| it from| |00005610| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 6c 70 68 61 | followi|ng alpha| |00005620| 6e 75 6d 65 72 69 63 73 | 2e 20 20 41 6c 73 6f 20 |numerics|. Also | |00005630| 6e 6f 74 65 20 74 68 61 | 74 0d 20 20 20 20 20 61 |note tha|t. a| |00005640| 20 73 69 6e 67 6c 65 20 | 71 75 6f 74 65 64 20 73 | single |quoted s| |00005650| 74 72 69 6e 67 20 6d 75 | 73 74 20 62 65 20 73 65 |tring mu|st be se| |00005660| 70 61 72 61 74 65 64 20 | 20 66 72 6f 6d 20 20 61 |parated | from a| |00005670| 20 20 70 72 65 63 65 64 | 69 6e 67 0d 20 20 20 20 | preced|ing. | |00005680| 20 77 6f 72 64 20 20 62 | 79 20 61 20 73 70 61 63 | word b|y a spac| |00005690| 65 2c 20 73 69 6e 63 65 | 20 73 69 6e 67 6c 65 20 |e, since| single | |000056a0| 71 75 6f 74 65 20 69 73 | 20 61 20 76 61 6c 69 64 |quote is| a valid| |000056b0| 20 63 68 61 72 61 63 74 | 65 72 20 69 6e 0d 20 20 | charact|er in. | |000056c0| 20 20 20 61 6e 20 69 64 | 65 6e 74 69 66 69 65 72 | an id|entifier| |000056d0| 20 28 73 65 65 20 50 61 | 63 6b 61 67 65 73 29 2e | (see Pa|ckages).| |000056e0| 0d 0d 20 20 20 20 20 54 | 77 6f 20 20 73 70 65 63 |.. T|wo spec| |000056f0| 69 61 6c 20 20 6c 69 74 | 65 72 61 6c 73 20 20 61 |ial lit|erals a| |00005700| 72 65 20 20 5f 5f 4c 49 | 4e 45 5f 5f 20 20 61 6e |re __LI|NE__ an| |00005710| 64 20 20 5f 5f 46 49 4c | 45 5f 5f 2c 20 20 77 68 |d __FIL|E__, wh| |00005720| 69 63 68 0d 20 20 20 20 | 20 72 65 70 72 65 73 65 |ich. | represe| |00005730| 6e 74 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6c |nt the c|urrent l| |00005740| 69 6e 65 20 6e 75 6d 62 | 65 72 20 61 6e 64 20 66 |ine numb|er and f| |00005750| 69 6c 65 6e 61 6d 65 20 | 61 74 20 74 68 61 74 20 |ilename |at that | |00005760| 70 6f 69 6e 74 0d 20 20 | 20 20 20 69 6e 20 79 6f |point. | in yo| |00005770| 75 72 20 70 72 6f 67 72 | 61 6d 2e 20 20 54 68 65 |ur progr|am. The| |00005780| 79 20 6d 61 79 20 6f 6e | 6c 79 20 62 65 20 75 73 |y may on|ly be us| |00005790| 65 64 20 61 73 20 73 65 | 70 61 72 61 74 65 20 20 |ed as se|parate | |000057a0| 74 6f 6b 65 6e 73 3b 0d | 20 20 20 20 20 74 68 65 |tokens;.| the| |000057b0| 79 20 20 77 69 6c 6c 20 | 20 6e 6f 74 20 20 62 65 |y will | not be| |000057c0| 20 69 6e 74 65 72 70 6f | 6c 61 74 65 64 20 69 6e | interpo|lated in| |000057d0| 74 6f 20 73 74 72 69 6e | 67 73 2e 20 20 49 6e 20 |to strin|gs. In | |000057e0| 61 64 64 69 74 69 6f 6e | 2c 0d 20 20 20 20 20 74 |addition|,. t| |000057f0| 68 65 20 74 6f 6b 65 6e | 20 5f 5f 45 4e 44 5f 5f |he token| __END__| |00005800| 20 6d 61 79 20 62 65 20 | 75 73 65 64 20 74 6f 20 | may be |used to | |00005810| 69 6e 64 69 63 61 74 65 | 20 74 68 65 20 6c 6f 67 |indicate| the log| |00005820| 69 63 61 6c 20 65 6e 64 | 20 6f 66 0d 20 20 20 20 |ical end| of. | |00005830| 20 74 68 65 20 20 73 63 | 72 69 70 74 20 20 62 65 | the sc|ript be| |00005840| 66 6f 72 65 20 20 74 68 | 65 20 20 61 63 74 75 61 |fore th|e actua| |00005850| 6c 20 65 6e 64 20 6f 66 | 20 66 69 6c 65 2e 20 20 |l end of| file. | |00005860| 41 6e 79 20 66 6f 6c 6c | 6f 77 69 6e 67 0d 20 20 |Any foll|owing. | |00005870| 20 20 20 74 65 78 74 20 | 69 73 20 69 67 6e 6f 72 | text |is ignor| |00005880| 65 64 20 28 62 75 74 20 | 6d 61 79 20 62 65 20 72 |ed (but |may be r| |00005890| 65 61 64 20 76 69 61 20 | 74 68 65 20 20 44 41 54 |ead via |the DAT| |000058a0| 41 20 20 66 69 6c 65 68 | 61 6e 64 6c 65 29 2e 0d |A fileh|andle)..| |000058b0| 20 20 20 20 20 54 68 65 | 20 20 74 77 6f 20 20 63 | The| two c| |000058c0| 6f 6e 74 72 6f 6c 20 20 | 63 68 61 72 61 63 74 65 |ontrol |characte| |000058d0| 72 73 20 20 5e 44 20 20 | 61 6e 64 20 20 5e 5a 20 |rs ^D |and ^Z | |000058e0| 20 61 72 65 20 73 79 6e | 6f 6e 79 6d 73 20 66 6f | are syn|onyms fo| |000058f0| 72 0d 20 20 20 20 20 5f | 5f 45 4e 44 5f 5f 2e 0d |r. _|_END__..| |00005900| 0d 20 20 20 20 20 41 20 | 77 6f 72 64 20 74 68 61 |. A |word tha| |00005910| 74 20 64 6f 65 73 6e 27 | 74 20 68 61 76 65 20 61 |t doesn'|t have a| |00005920| 6e 79 20 20 6f 74 68 65 | 72 20 20 69 6e 74 65 72 |ny othe|r inter| |00005930| 70 72 65 74 61 74 69 6f | 6e 20 20 69 6e 20 20 74 |pretatio|n in t| |00005940| 68 65 0d 20 20 20 20 20 | 67 72 61 6d 6d 61 72 20 |he. |grammar | |00005950| 20 77 69 6c 6c 20 20 62 | 65 20 20 74 72 65 61 74 | will b|e treat| |00005960| 65 64 20 61 73 20 69 66 | 20 69 74 20 68 61 64 20 |ed as if| it had | |00005970| 73 69 6e 67 6c 65 20 71 | 75 6f 74 65 73 20 61 72 |single q|uotes ar| |00005980| 6f 75 6e 64 0d 20 20 20 | 20 20 69 74 2e 20 20 46 |ound. | it. F| |00005990| 6f 72 20 74 68 69 73 20 | 70 75 72 70 6f 73 65 2c |or this |purpose,| |000059a0| 20 61 20 77 6f 72 64 20 | 63 6f 6e 73 69 73 74 73 | a word |consists| |000059b0| 20 6f 6e 6c 79 20 6f 66 | 20 20 61 6c 70 68 61 6e | only of| alphan| |000059c0| 75 6d 65 72 69 63 0d 20 | 20 20 20 20 63 68 61 72 |umeric. | char| |000059d0| 61 63 74 65 72 73 20 20 | 61 6e 64 20 75 6e 64 65 |acters |and unde| |000059e0| 72 6c 69 6e 65 2c 20 61 | 6e 64 20 6d 75 73 74 20 |rline, a|nd must | |000059f0| 73 74 61 72 74 20 77 69 | 74 68 20 61 6e 20 61 6c |start wi|th an al| |00005a00| 70 68 61 62 65 74 69 63 | 0d 20 20 20 20 20 63 68 |phabetic|. ch| |00005a10| 61 72 61 63 74 65 72 2e | 20 20 41 73 20 77 69 74 |aracter.| As wit| |00005a20| 68 20 66 69 6c 65 68 61 | 6e 64 6c 65 73 20 61 6e |h fileha|ndles an| |00005a30| 64 20 6c 61 62 65 6c 73 | 2c 20 61 20 62 61 72 65 |d labels|, a bare| |00005a40| 20 77 6f 72 64 20 74 68 | 61 74 0d 20 20 20 20 20 | word th|at. | |00005a50| 63 6f 6e 73 69 73 74 73 | 20 20 65 6e 74 69 72 65 |consists| entire| |00005a60| 6c 79 20 20 6f 66 20 6c | 6f 77 65 72 63 61 73 65 |ly of l|owercase| |00005a70| 20 6c 65 74 74 65 72 73 | 20 72 69 73 6b 73 20 63 | letters| risks c| |00005a80| 6f 6e 66 6c 69 63 74 20 | 77 69 74 68 0d 20 20 20 |onflict |with. | |00005a90| 20 20 66 75 74 75 72 65 | 20 72 65 73 65 72 76 65 | future| reserve| |00005aa0| 64 20 77 6f 72 64 73 2c | 20 61 6e 64 20 69 66 20 |d words,| and if | |00005ab0| 79 6f 75 20 75 73 65 20 | 74 68 65 20 20 2d 77 20 |you use |the -w | |00005ac0| 20 73 77 69 74 63 68 2c | 20 20 50 65 72 6c 0d 20 | switch,| Perl. | |00005ad0| 20 20 20 20 77 69 6c 6c | 20 77 61 72 6e 20 79 6f | will| warn yo| |00005ae0| 75 20 61 62 6f 75 74 20 | 61 6e 79 20 73 75 63 68 |u about |any such| |00005af0| 20 77 6f 72 64 73 2e 0d | 0d 20 20 20 20 20 41 72 | words..|. Ar| |00005b00| 72 61 79 20 76 61 6c 75 | 65 73 20 61 72 65 20 69 |ray valu|es are i| |00005b10| 6e 74 65 72 70 6f 6c 61 | 74 65 64 20 69 6e 74 6f |nterpola|ted into| |00005b20| 20 64 6f 75 62 6c 65 2d | 71 75 6f 74 65 64 20 73 | double-|quoted s| |00005b30| 74 72 69 6e 67 73 20 20 | 62 79 0d 20 20 20 20 20 |trings |by. | |00005b40| 6a 6f 69 6e 69 6e 67 20 | 20 61 6c 6c 20 20 74 68 |joining | all th| |00005b50| 65 20 20 65 6c 65 6d 65 | 6e 74 73 20 20 6f 66 20 |e eleme|nts of | |00005b60| 74 68 65 20 61 72 72 61 | 79 20 77 69 74 68 20 74 |the arra|y with t| |00005b70| 68 65 20 64 65 6c 69 6d | 69 74 65 72 0d 20 20 20 |he delim|iter. | |00005b80| 20 20 73 70 65 63 69 66 | 69 65 64 20 69 6e 20 74 | specif|ied in t| |00005b90| 68 65 20 24 22 20 76 61 | 72 69 61 62 6c 65 2c 20 |he $" va|riable, | |00005ba0| 73 70 61 63 65 20 62 79 | 20 64 65 66 61 75 6c 74 |space by| default| |00005bb0| 2e 20 20 20 28 53 69 6e | 63 65 20 20 69 6e 0d 20 |. (Sin|ce in. | |00005bc0| 20 20 20 20 76 65 72 73 | 69 6f 6e 73 20 20 6f 66 | vers|ions of| |00005bd0| 20 20 70 65 72 6c 20 20 | 70 72 69 6f 72 20 20 74 | perl |prior t| |00005be0| 6f 20 20 33 2e 30 20 74 | 68 65 20 40 20 63 68 61 |o 3.0 t|he @ cha| |00005bf0| 72 61 63 74 65 72 20 77 | 61 73 20 6e 6f 74 20 61 |racter w|as not a| |00005c00| 0d 20 20 20 20 20 6d 65 | 74 61 63 68 61 72 61 63 |. me|tacharac| |00005c10| 74 65 72 20 69 6e 20 64 | 6f 75 62 6c 65 2d 71 75 |ter in d|ouble-qu| |00005c20| 6f 74 65 64 20 73 74 72 | 69 6e 67 73 2c 20 74 68 |oted str|ings, th| |00005c30| 65 20 69 6e 74 65 72 70 | 6f 6c 61 74 69 6f 6e 20 |e interp|olation | |00005c40| 6f 66 0d 20 20 20 20 20 | 40 61 72 72 61 79 2c 20 |of. |@array, | |00005c50| 20 20 24 61 72 72 61 79 | 5b 45 58 50 52 5d 2c 20 | $array|[EXPR], | |00005c60| 20 20 40 61 72 72 61 79 | 5b 4c 49 53 54 5d 2c 20 | @array|[LIST], | |00005c70| 20 20 24 61 72 72 61 79 | 7b 45 58 50 52 7d 2c 20 | $array|{EXPR}, | |00005c80| 20 20 6f 72 0d 20 20 20 | 20 20 40 61 72 72 61 79 | or. | @array| |00005c90| 7b 4c 49 53 54 7d 20 6f | 6e 6c 79 20 68 61 70 70 |{LIST} o|nly happ| |00005ca0| 65 6e 73 20 69 66 20 61 | 72 72 61 79 20 69 73 20 |ens if a|rray is | |00005cb0| 20 72 65 66 65 72 65 6e | 63 65 64 20 20 65 6c 73 | referen|ced els| |00005cc0| 65 77 68 65 72 65 0d 20 | 20 20 20 20 69 6e 20 20 |ewhere. | in | |00005cd0| 20 74 68 65 20 20 70 72 | 6f 67 72 61 6d 20 20 6f | the pr|ogram o| |00005ce0| 72 20 20 69 73 20 20 70 | 72 65 64 65 66 69 6e 65 |r is p|redefine| |00005cf0| 64 2e 29 20 20 54 68 65 | 20 20 66 6f 6c 6c 6f 77 |d.) The| follow| |00005d00| 69 6e 67 20 20 61 72 65 | 0d 20 20 20 20 20 65 71 |ing are|. eq| |00005d10| 75 69 76 61 6c 65 6e 74 | 3a 0d 0d 20 20 20 20 20 |uivalent|:.. | |00005d20| 20 20 20 20 20 24 74 65 | 6d 70 20 3d 20 6a 6f 69 | $te|mp = joi| |00005d30| 6e 28 24 22 2c 40 41 52 | 47 56 29 3b 0d 20 20 20 |n($",@AR|GV);. | |00005d40| 20 20 20 20 20 20 20 73 | 79 73 74 65 6d 20 22 65 | s|ystem "e| |00005d50| 63 68 6f 20 24 74 65 6d | 70 22 3b 0d 0d 20 20 20 |cho $tem|p";.. | |00005d60| 20 20 20 20 20 20 20 73 | 79 73 74 65 6d 20 22 65 | s|ystem "e| |00005d70| 63 68 6f 20 40 41 52 47 | 56 22 3b 0d 0d 20 20 20 |cho @ARG|V";.. | |00005d80| 20 20 57 69 74 68 69 6e | 20 73 65 61 72 63 68 20 | Within| search | |00005d90| 70 61 74 74 65 72 6e 73 | 20 28 77 68 69 63 68 20 |patterns| (which | |00005da0| 20 61 6c 73 6f 20 20 75 | 6e 64 65 72 67 6f 20 20 | also u|ndergo | |00005db0| 64 6f 75 62 6c 65 2d 71 | 75 6f 74 69 73 68 0d 20 |double-q|uotish. | |00005dc0| 20 20 20 20 73 75 62 73 | 74 69 74 75 74 69 6f 6e | subs|titution| |00005dd0| 29 20 20 74 68 65 72 65 | 20 20 69 73 20 61 20 62 |) there| is a b| |00005de0| 61 64 20 61 6d 62 69 67 | 75 69 74 79 3a 20 20 49 |ad ambig|uity: I| |00005df0| 73 20 2f 24 66 6f 6f 5b | 62 61 72 5d 2f 20 74 6f |s /$foo[|bar]/ to| |00005e00| 0d 20 20 20 20 20 62 65 | 20 69 6e 74 65 72 70 72 |. be| interpr| |00005e10| 65 74 65 64 20 61 73 20 | 2f 24 7b 66 6f 6f 7d 5b |eted as |/${foo}[| |00005e20| 62 61 72 5d 2f 20 28 77 | 68 65 72 65 20 5b 62 61 |bar]/ (w|here [ba| |00005e30| 72 5d 20 69 73 20 61 20 | 20 63 68 61 72 61 63 74 |r] is a | charact| |00005e40| 65 72 0d 20 20 20 20 20 | 63 6c 61 73 73 20 66 6f |er. |class fo| |00005e50| 72 20 74 68 65 20 72 65 | 67 75 6c 61 72 20 65 78 |r the re|gular ex| |00005e60| 70 72 65 73 73 69 6f 6e | 29 20 6f 72 20 61 73 20 |pression|) or as | |00005e70| 2f 24 7b 66 6f 6f 5b 62 | 61 72 5d 7d 2f 20 28 77 |/${foo[b|ar]}/ (w| |00005e80| 68 65 72 65 0d 20 20 20 | 20 20 5b 62 61 72 5d 20 |here. | [bar] | |00005e90| 69 73 20 74 68 65 20 73 | 75 62 73 63 72 69 70 74 |is the s|ubscript| |00005ea0| 20 74 6f 20 20 61 72 72 | 61 79 20 20 40 66 6f 6f | to arr|ay @foo| |00005eb0| 29 3f 20 20 20 49 66 20 | 20 40 66 6f 6f 20 20 64 |)? If | @foo d| |00005ec0| 6f 65 73 6e 27 74 0d 20 | 20 20 20 20 6f 74 68 65 |oesn't. | othe| |00005ed0| 72 77 69 73 65 20 20 65 | 78 69 73 74 2c 20 74 68 |rwise e|xist, th| |00005ee0| 65 6e 20 69 74 27 73 20 | 6f 62 76 69 6f 75 73 6c |en it's |obviousl| |00005ef0| 79 20 61 20 63 68 61 72 | 61 63 74 65 72 20 63 6c |y a char|acter cl| |00005f00| 61 73 73 2e 20 20 49 66 | 0d 20 20 20 20 20 40 66 |ass. If|. @f| |00005f10| 6f 6f 20 65 78 69 73 74 | 73 2c 20 70 65 72 6c 20 |oo exist|s, perl | |00005f20| 74 61 6b 65 73 20 61 20 | 67 6f 6f 64 20 67 75 65 |takes a |good gue| |00005f30| 73 73 20 20 61 62 6f 75 | 74 20 20 5b 62 61 72 5d |ss abou|t [bar]| |00005f40| 2c 20 20 61 6e 64 20 20 | 69 73 0d 20 20 20 20 20 |, and |is. | |00005f50| 61 6c 6d 6f 73 74 20 20 | 61 6c 77 61 79 73 20 20 |almost |always | |00005f60| 72 69 67 68 74 2e 20 20 | 49 66 20 69 74 20 64 6f |right. |If it do| |00005f70| 65 73 20 67 75 65 73 73 | 20 77 72 6f 6e 67 2c 20 |es guess| wrong, | |00005f80| 6f 72 20 69 66 20 79 6f | 75 27 72 65 0d 20 20 20 |or if yo|u're. | |00005f90| 20 20 6a 75 73 74 20 70 | 6c 61 69 6e 20 70 61 72 | just p|lain par| |00005fa0| 61 6e 6f 69 64 2c 20 79 | 6f 75 20 63 61 6e 20 66 |anoid, y|ou can f| |00005fb0| 6f 72 63 65 20 74 68 65 | 20 20 63 6f 72 72 65 63 |orce the| correc| |00005fc0| 74 20 20 69 6e 74 65 72 | 70 72 65 74 61 2d 0d 20 |t inter|preta-. | |00005fd0| 20 20 20 20 74 69 6f 6e | 20 77 69 74 68 20 63 75 | tion| with cu| |00005fe0| 72 6c 79 20 62 72 61 63 | 6b 65 74 73 20 61 73 20 |rly brac|kets as | |00005ff0| 61 62 6f 76 65 2e 0d 0d | 20 20 20 20 20 41 20 6c |above...| A l| |00006000| 69 6e 65 2d 6f 72 69 65 | 6e 74 65 64 20 66 6f 72 |ine-orie|nted for| |00006010| 6d 20 6f 66 20 71 75 6f | 74 69 6e 67 20 69 73 20 |m of quo|ting is | |00006020| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 73 68 65 |based on| the she| |00006030| 6c 6c 20 20 68 65 72 65 | 2d 0d 20 20 20 20 20 69 |ll here|-. i| |00006040| 73 20 73 79 6e 74 61 78 | 2e 20 20 46 6f 6c 6c 6f |s syntax|. Follo| |00006050| 77 69 6e 67 20 61 20 3c | 3c 20 79 6f 75 20 73 70 |wing a <|< you sp| |00006060| 65 63 69 66 79 20 61 20 | 73 74 72 69 6e 67 20 74 |ecify a |string t| |00006070| 6f 20 74 65 72 6d 69 6e | 61 74 65 0d 20 20 20 20 |o termin|ate. | |00006080| 20 74 68 65 20 71 75 6f | 74 65 64 20 6d 61 74 65 | the quo|ted mate| |00006090| 72 69 61 6c 2c 20 61 6e | 64 20 61 6c 6c 20 20 6c |rial, an|d all l| |000060a0| 69 6e 65 73 20 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |ines fo|llowing | |000060b0| 20 74 68 65 20 20 63 75 | 72 72 65 6e 74 0d 20 20 | the cu|rrent. | |000060c0| 20 20 20 6c 69 6e 65 20 | 20 64 6f 77 6e 20 20 74 | line | down t| |000060d0| 6f 20 20 74 68 65 20 20 | 74 65 72 6d 69 6e 61 74 |o the |terminat| |000060e0| 69 6e 67 20 73 74 72 69 | 6e 67 20 61 72 65 20 74 |ing stri|ng are t| |000060f0| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 0d |he value| of the.| |00006100| 20 20 20 20 20 69 74 65 | 6d 2e 20 20 54 68 65 20 | ite|m. The | |00006110| 74 65 72 6d 69 6e 61 74 | 69 6e 67 20 73 74 72 69 |terminat|ing stri| |00006120| 6e 67 20 6d 61 79 20 62 | 65 20 65 69 74 68 65 72 |ng may b|e either| |00006130| 20 61 6e 20 69 64 65 6e | 74 69 66 69 65 72 20 28 | an iden|tifier (| |00006140| 61 0d 20 20 20 20 20 77 | 6f 72 64 29 2c 20 20 6f |a. w|ord), o| |00006150| 72 20 20 73 6f 6d 65 20 | 71 75 6f 74 65 64 20 74 |r some |quoted t| |00006160| 65 78 74 2e 20 20 49 66 | 20 71 75 6f 74 65 64 2c |ext. If| quoted,| |00006170| 20 74 68 65 20 74 79 70 | 65 20 6f 66 20 71 75 6f | the typ|e of quo| |00006180| 74 65 73 0d 20 20 20 20 | 20 79 6f 75 20 75 73 65 |tes. | you use| |00006190| 20 64 65 74 65 72 6d 69 | 6e 65 73 20 74 68 65 20 | determi|nes the | |000061a0| 74 72 65 61 74 6d 65 6e | 74 20 6f 66 20 74 68 65 |treatmen|t of the| |000061b0| 20 20 74 65 78 74 2c 20 | 20 6a 75 73 74 20 20 61 | text, | just a| |000061c0| 73 20 20 69 6e 0d 20 20 | 20 20 20 72 65 67 75 6c |s in. | regul| |000061d0| 61 72 20 20 71 75 6f 74 | 69 6e 67 2e 20 20 20 41 |ar quot|ing. A| |000061e0| 6e 20 75 6e 71 75 6f 74 | 65 64 20 69 64 65 6e 74 |n unquot|ed ident| |000061f0| 69 66 69 65 72 20 77 6f | 72 6b 73 20 6c 69 6b 65 |ifier wo|rks like| |00006200| 20 64 6f 75 62 6c 65 0d | 20 20 20 20 20 71 75 6f | double.| quo| |00006210| 74 65 73 2e 20 20 54 68 | 65 72 65 20 6d 75 73 74 |tes. Th|ere must| |00006220| 20 62 65 20 6e 6f 20 73 | 70 61 63 65 20 62 65 74 | be no s|pace bet| |00006230| 77 65 65 6e 20 74 68 65 | 20 3c 3c 20 61 6e 64 20 |ween the| << and | |00006240| 74 68 65 20 69 64 65 6e | 2d 0d 20 20 20 20 20 74 |the iden|-. t| |00006250| 69 66 69 65 72 2e 20 20 | 20 28 49 66 20 20 79 6f |ifier. | (If yo| |00006260| 75 20 20 70 75 74 20 61 | 20 73 70 61 63 65 20 69 |u put a| space i| |00006270| 74 20 77 69 6c 6c 20 62 | 65 20 74 72 65 61 74 65 |t will b|e treate| |00006280| 64 20 61 73 20 61 20 6e | 75 6c 6c 0d 20 20 20 20 |d as a n|ull. | |00006290| 20 69 64 65 6e 74 69 66 | 69 65 72 2c 20 77 68 69 | identif|ier, whi| |000062a0| 63 68 20 69 73 20 76 61 | 6c 69 64 2c 20 20 61 6e |ch is va|lid, an| |000062b0| 64 20 20 6d 61 74 63 68 | 65 73 20 20 74 68 65 20 |d match|es the | |000062c0| 20 66 69 72 73 74 20 20 | 62 6c 61 6e 6b 0d 20 20 | first |blank. | |000062d0| 20 20 20 6c 69 6e 65 2d | 2d 73 65 65 20 20 4d 65 | line-|-see Me| |000062e0| 72 72 79 20 20 43 68 72 | 69 73 74 6d 61 73 20 20 |rry Chr|istmas | |000062f0| 65 78 61 6d 70 6c 65 20 | 62 65 6c 6f 77 2e 29 20 |example |below.) | |00006300| 54 68 65 20 74 65 72 6d | 69 6e 61 74 69 6e 67 0d |The term|inating.| |00006310| 20 20 20 20 20 73 74 72 | 69 6e 67 20 6d 75 73 74 | str|ing must| |00006320| 20 61 70 70 65 61 72 20 | 62 79 20 69 74 73 65 6c | appear |by itsel| |00006330| 66 20 28 75 6e 71 75 6f | 74 65 64 20 61 6e 64 20 |f (unquo|ted and | |00006340| 77 69 74 68 20 6e 6f 20 | 73 75 72 72 6f 75 6e 64 |with no |surround| |00006350| 2d 0d 20 20 20 20 20 69 | 6e 67 20 77 68 69 74 65 |-. i|ng white| |00006360| 73 70 61 63 65 29 20 6f | 6e 20 74 68 65 20 74 65 |space) o|n the te| |00006370| 72 6d 69 6e 61 74 69 6e | 67 20 6c 69 6e 65 2e 0d |rminatin|g line..| |00006380| 0d 20 20 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 |. | print| |00006390| 20 3c 3c 45 4f 46 3b 20 | 20 20 20 20 20 20 20 23 | <<EOF; | #| |000063a0| 20 73 61 6d 65 20 61 73 | 20 61 62 6f 76 65 0d 20 | same as| above. | |000063b0| 20 20 20 20 54 68 65 20 | 70 72 69 63 65 20 69 73 | The |price is| |000063c0| 20 24 50 72 69 63 65 2e | 0d 20 20 20 20 20 45 4f | $Price.|. EO| |000063d0| 46 0d 0d 20 20 20 20 20 | 20 20 20 20 20 70 72 69 |F.. | pri| |000063e0| 6e 74 20 3c 3c 22 45 4f | 46 22 3b 20 20 20 20 20 |nt <<"EO|F"; | |000063f0| 20 23 20 73 61 6d 65 20 | 61 73 20 61 62 6f 76 65 | # same |as above| +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.