
Close all Notepad and WordPad windows on your desktop
Run demo.pl
Open Notepad
Watch. It will open the demo.pl file in Notepad and then close the window. This demonstrates the simplest path through the demo.
Open Notepad. Type some random text in the window.
Run demo.pl
It will attempt to open the demo.pl file, but first Notepad will ask if the existing file should be saved. The script will save it to C:\TEMP\Saved.txt.
Repeat the above steps
This demonstrates that the cnfm options to the dialog on saving the stuff to Saved.txt works.
Run demo.pl
Open WordPad
This demonstrates the fork - operates on either Notepad or WordPad.
The demo doesn't deal with an open Notepad that has an existing _file_ open, rather than Untitled.
The demo doesn't display as much flexibility with respect to WordPad