I was really trying to do a try/catch block.  Somewhere online it said I could do it this way.  Would an if/else work too?  I don't know how exceptions and errors work in perl.