So I'm in the midst of writing a PL/SQL interpreter-like program. My problem pertains to reading in a line of code at a time. Currently, I have $/ = ";" which works fine with a code segment ends with a ';'. Unfortunately, sometimes code can end with a '/' instead of a ';', and I was wondering if there's a way to set $/ = ";" OR "/";
I'm using the FileHandle module, so a method of changing how it's getline() function works, might be a good solution, as well.