st ri ng s

st ri ng s



Ex am ple , d ina ting. $r DO UT,. Inp ut f rom 1 23 45 67 89 0 12 34
5 12 34 56 7. 12. In tf, in lW hen eve r a con. [c tr ld] $ lide 7 the
rem.


Lide 3 in #! /usr lW hite tex t is typ. Tinu es. t lide 9 O. Wh ere
lide 4 In. Lide 5 in wil l re ad in o # pr oc es s li ne s.


Pr in t (( 1+ 1) , "c he ap b il l n" ); # o k #! /u sr /l oc al /b in
/p er l5 - w es on the. , su ch as pri nt t he line wil l re ad in o.
Con, put fro (al l. / s lIf yo u d o n ot s hen the firs t th ing sta.


Nda rd i npu, s h ow to prin e.%%[ Page: 11 ]%% %%[ LastPage ]%%. Lw
hen td in > h lT his ex am ple pri nts $s. In a 1 5-c har act er f ield
,, TD IN <> ge ts i ts d. T th e re turn s. Wit hou, # pr oc es s li
ne s put fro.


Ally . ed val ue, an d th. De f, t ive s th #! /u sr /l oc al /b in /p
er l5 - w. Lp erl has firs t ar gum pr in t;.


Lea rn m $n=1 23 45 ; gle lin e in. Nd fina ch om p; # sa me a s: c ho
mp " $_ ";. $ ca t li ne 1, / S #! /u sr /l oc al /b in /p er l5 - w.
Es, yo u w, inp ut, or ed by the us er, gre en tex t.


/ s ue. 1 $, f pr ogr am inp wit hou. My ca t, l< > re un de f if.
Hav e a ne wlin the loo p.%%[ Page: 3 ]%%.


Sen ds eac, pr in t, e lIn the ab ove. / s, ad and 1 23 45 67 89 0 12
34 5 12 34 56 7. 12. A s hor tcu t fo r re adi ng a v alu e fr om f pr
ogr am inp.


/ s is p rint ed by the pro l$ _ i s th. <> TD IN. En the m., hen the
firs t th ing sta / S. E m ay or m, pr in t "H i ", " Bi ll !" , " n"
; tted Ou tpu t.


A lIn the ab ove r sh ell.. Myca s: $ ca t my ca t. $ ca t pr in tf 1
#! /u sr /l oc al /b in /p er l5 - w.


Lide 11, re a re a re n o m ore lin es (the }. %f%%[ page: 10 ]%% ne
wlin. Pac e, t hen .. Wh il e( <> ){ gra m o # pr oc es s li ne s. In
the n s pac put fro.


<> ge ts i ts d, wh ile( TD IN. Lide 4 in, #! /u sr /l oc al /b in /p
er l5 - w #! /usr. / s tinu es. <> ge ts i ts d. Left pa ren the sis:
1 $. Lin the ab ove, m S TD IN.


Be en rea d,, . ch om p a. Pr in t "$ _ n" ;, out put tha lide 9 O.
Es, yo u w } # pr oc es s li ne s. 15 / s rns tr. To add m S pr in tf.


Tted ou tpu t, en the m. y to rea d fi les in Per. Tted ou tpu t pr in
t (1 +1 ), " ch ea p Bi ll
"; # p ro bl em !. F st ring, the n s pac
ed val ue, an d th. , su ch as pro gra m o.


St di n>,, f pr ogr am inp st. 1 $ ma inin an oth er s. Lt his ex am
ple pri nts $s es a li st o lY ou ma y w ish to hav. Ed val ue, an d
th, re a re a re n o m ore lin es (the Inp ut f rom.


Lt he } $ fun ctio. Lt his ex am ple pri nts $s, lide 11 %s. Lide 3
in, 10- cha tex t, th.


A s cal ar c / S. Rns un in. Ead s fr om sta a s hor tcu t fo r re
adi ng a v alu e fr om }. , it retu, TD IN ed val ue, an d th. Lw e h
ave ). es, yo u w.


Li ne 1, e e asi est wa wh ich de fine. Pec ify any in a 1 5-c har act
er f ield , } $. $ ca t pr in tf 1 pri nt t he line ST DI N is. St,
put fro lA not her wa y to rea d in put is with. Ea l, aut om atic lH
ow eve.


Prin ted by the lT his ex am ple pri nts $s e lo op con. Lide 8 lide 3
In lIn a s cal ar c. L$ _ i s th, nd > r. [c tr ld] $ e e asi est wa.




august highland

muse apprentice guild
–"expanding the canon into the 21st century"
www.muse-apprentice-guild.com

culture animal
–"following in the footsteps of tradition"
www.cultureanimal.com

















Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003