Hi monks!
I was wondering if anyone could give me some quick help with a split problem I'm having. I actually don't even know if what I'm wanting to do will work but I hope someone can help.
What I'm wanting to do is to split by a variable that is a string that changes with each new read through of a file. I've tried:
@line=split(/$variable/,$_);
but this doesn't seem to be giving me what I'm needing. Is there another way to specify a split based on a variable that is not constant?
In reply to Split Help by de2425
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |