A Stock Portfolio Manager

Let's look at an example program that illustrates just how much time you can save using Perl modules that are already written. The example application is a stock portfolio manager. It maintains any number of portfolios, each of which can contain any number of securities. The portfolio manager downloads the latest share prices for all the stocks in your portfolio from Yahoo! Finance every time you view a portfolio.

First, the program creates a list of portfolios. From that page, you can add a new portfolio or view or delete an existing portfolio. When you view a portfolio, the latest prices for those stocks will be displayed. You can also delete stocks from the portfolio, or add new stocks to the portfolio from that page ...

Get Sams Teach Yourself Perl in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.