http://www.perlmonks.org?node_id=992242


in reply to PERL newbie question

I want to find and replace a string but somehow it didn't work.
That is pretty vague and does not give us much to work with. Couldn't you open the file? Did nothing get found/replaced? Did the wrong things got found/replaced? Couldn't you save the results?

Please show your code, some relevant input data and the results of your code plus any errors or warnings.

BTW: It is Perl (the language) or perl (the program), but not PERL. That really sets you apart as a newbie. :)

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics