I got a multiline SQL file that I would like to split by ; and read into an array. However when I try to do
and iterate over each element I get just the first line of the SQL file.
Does anyone know how they would get the array of sql statements (and no new lines)?
Code:
my @array = split(";", <FH>);
Does anyone know how they would get the array of sql statements (and no new lines)?
Comment