Yes you are right since it doesnt work in command line that way(except if i dont specify a passwords which works) then the sma e thing wont also work within a Perl CGI script.
But are you sure there is not a Perl work around for what iam trying to do?!