[Microsoft][ODBC SQL Server Driver][SQL Server][0122]USAGE: InvokeStoredProcedure [param1], [param2], [param3], [param3] #### $errmsg =~ /^ # start at beginning of string ( # capture first group \[ # an opening square bracket \w+ # followed by one or more word charrs ] # followed by a closing square bracket ) # close first capture {1} # capture should be 1 time ( # begin second capture .+ # match anything else 1 or more times ) # close second capture /x; # which gives $1 = [Microsoft], $2 = everything else