Exhibit 5 December 21, 2001 Duke Energy Corporation 526 South Church Street Charlotte, NC 28202 Gentlemen: I am Deputy General Counsel of Duke Energy Corporation, a North Carolina corporation (the "Corporation"), and in such capacity I have examined the Corporation's Post-Effective Amendment No. 2 to its Registration Statement on Form S-3 (the "Registration Statement") under the Securities Act of 1933, as amended (the "1933 Act"), relating to shares of the Corporation's Common Stock, without par value (the "Shares"), issuable under the Corporation's InvestorDirect Choice Plan (the "Plan"). I have examined and am familiar with originals or copies, certified or otherwise identified to my satisfaction, of such documents, corporate records, certificates of public officials and officers of the Corporation and such other instruments as I have deemed necessary or appropriate as a basis for the opinions expressed below. Based on the foregoing, I am of the opinion that the Shares are duly authorized and, when the Shares have been issued and delivered in accordance with the terms of the Plan, such Shares will be legally issued, fully paid and nonassessable. I hereby consent to the filing of this opinion as Exhibit 5 to the Registration Statement. In giving such consent, I do not thereby admit that I come within the category of persons whose consent is required under Section 7 of the 1933 Act or the rules and regulations of the Securities and Exchange Commission thereunder. Very truly yours, /s/ Edward M. Marsh, Jr. ----------------------------------------- Edward M. Marsh, Jr.