I'm creating a script that parses XML files (already been done, I know, but I want to try it myself), and I've run into a bit of trouble. I am using the variable $/ , but I can only set it to a value that's one character long.
Expand|Select|Wrap|Line Numbers
- $/ = "a"; //works
- $/ = "\n"; //works
- $/ = "4"; //works
- $/ = "kitten"; //DOESN'T WORK!!!!?!?!?!?!?!?!?!?
- $/ = "\n\n"; //DOESN'T WORK !!!!?!?!?!?!?!?!?!?
I'm running perl 5.8.6, if that matters...?
Thanks All,
Andrew
PS: I tried using single quotes, double quotes, variables, plenty of options, but I couldn't make it work. Maybe I'm missing something... I hope so!