in reply to I'm getting an error using error()

Where does the sub "error" exist? is this from a module? is it a sub someplace else within the script? As far as I know, perl doesn't have a built in function named "error"

Rich