 After graduating in 1988, Herlihy spent a year as an accountant at Ernst & Young in Manhattan before attending the New York University School of Law.Herlihy continued to collaborate with Sandler, who had recently been hired at "Saturday Night Live".After law school, Herlihy worked as a securities lawyer at Cahill Gordon & Reindel in Lower Manhattan.