in reply to SQLPLUS connect database

system returns the exit code of the program you are calling. 0 usually means success. You want to catch the output of the command instead. See Capturing System Output.


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^2: SQLPLUS connect database
by haukex (Archbishop) on Jul 23, 2019 at 20:29 UTC
    See Capturing System Output.

    Unfortunately, that thread only mentions backticks and piped opens. I would recommend one of the several modules I discussed here instead.