I've got a perl script running on AIX that issues an MySQL select against a table and pulls back four columns of data.
name port status host
I'm getting stuff in the status column that I want to remove, specifically in the column status, if I get
down (Administratively down)
I want to remove (Administratively down) and only keep the down before the parens.
Here's my line that prints it all out...is there a way to strip that out here
while ( $cth->fetch() ) {
print "$MDS \t$PORT \t$STATUS \t$DESC\n";
or in the bind_columns line prior?
name port status host
I'm getting stuff in the status column that I want to remove, specifically in the column status, if I get
down (Administratively down)
I want to remove (Administratively down) and only keep the down before the parens.
Here's my line that prints it all out...is there a way to strip that out here
while ( $cth->fetch() ) {
print "$MDS \t$PORT \t$STATUS \t$DESC\n";
or in the bind_columns line prior?