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.
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.
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
9 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =list
To install Win32::CtrlGUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::CtrlGUI
CPAN shell
perl -MCPAN -e shell install Win32::CtrlGUI
For more information on module installation, please visit the detailed CPAN module installation guide.