Hi all. i'm a noob to perl and using perl in the library world. At the moment I am working on a file to change a xml file to a flat file. The current script work great however I need some assistance with two lines.
1) Remove line - Not sure if tiredness is catching me but I have this one line that does not want to disappear. The full line is: .024. 3# (two white spaces at the end) I need to remove the whole line.
2) Replace first 5 characters if line end with certain characters - These lines are the ISBN fields for the records and looks like: .024. 3#|a9780750247092|xisbn13 .024. 3#|a0750247096|xisbn If the line ens with |xisbn13 or |xisbn I need to replace the first characters (.024.) with .020.
My current script is very long and consists of general substitutes. I thank you in advance!
In reply to Remove line and modify another by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |