Perl: the Markov chain saw | |
PerlMonks |
A Better Wayby toniax (Scribe) |
on Nov 04, 2010 at 16:11 UTC ( [id://869497]=perlquestion: print w/replies, xml ) | Need Help?? |
toniax has asked for the wisdom of the Perl Monks concerning the following question:
Hello Everyone, I figured out the solution to my problem . With some help from a tie example below, Ken was so kind to point out, and remembering the way arrays assign [0] [1] [2] and so on. Well I am sure most of you knew this , But I will post it anyway I can not believe the fix for my original code was so simple , right under my nose. Hello again everyone, Sorry about being so cryptic last time I asked this. I will put my question in code. I created a way to do what I want but it seems so cumbersome. I am sure a better way exist? well here is the code *Update This code replaces only ONE instance((meaning only one line) (well that is what the final result is)), not all. Hence one reason I created it in this bizarre fashion . I am also new to programing ,another reason. Thanks again everyone for all your help
Back to
Seekers of Perl Wisdom
|
|