I am executing the mysql command from within Perl scripts (long story why not using Perl DBI module). What I am finding is that Perl is stripping out the "table border" characters that are normally output by the mysql command when doing a select from a table.
For example, I get this:
ID DISPLAYNAME OPTLOCK IPADDRESS BASEASSET_ID
1 NULL 0 172.50.0.100 1
instead of:
+----+-------------+---------+--------------+--------------+
| ID | DISPLAYNAME | OPTLOCK | IPADDRESS | BASEASSET_ID |
+----+-------------+---------+--------------+--------------+
| 1 | NULL | 0 | 172.50.0.100 | 1 |
+----+-------------+---------+--------------+--------------+
which is fine when all fields do not have spaces, but that is rarely the case.
Why is this happening, and how can I get around this?
Thanks!
For example, I get this:
ID DISPLAYNAME OPTLOCK IPADDRESS BASEASSET_ID
1 NULL 0 172.50.0.100 1
instead of:
+----+-------------+---------+--------------+--------------+
| ID | DISPLAYNAME | OPTLOCK | IPADDRESS | BASEASSET_ID |
+----+-------------+---------+--------------+--------------+
| 1 | NULL | 0 | 172.50.0.100 | 1 |
+----+-------------+---------+--------------+--------------+
which is fine when all fields do not have spaces, but that is rarely the case.
Why is this happening, and how can I get around this?
Thanks!