Guys, I'm stuck trying to format my output using "print". I basically want to keep the string as one line, but it breaks off at the point where I'm calling the scalar variable.
Here is the sample output.
Here is my code:
Desired format:
Here is the sample output.
Code:
create table urldb3.Heartbeat
select * from urldb2.Heartbeat
limit 10;
Here is my code:
Code:
foreach my $tblist (@tblist)
{
print MYOUTFILE "create table $dbtgt.$tblist select * from $dbsrc.$tblist limit 10;\n";
};
Desired format:
Code:
create table urldb3.Heartbeat select * from urldb2.Heartbeat limit 10;