I has to load SQL file within the perl script and execute the SQL commands and show output in perl file only.
Scenario: test1.sql file contains SQL command in this format
CREATE TABLE Persons
(
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);
Now I want to load the test1.sql without using files and Execute this SQL and also shows output in the Perl script like table created