in reply to running notpade from perl

Some good answers to your questions already, so I'll ask some additional stuff. For what reason are you wanting to open it to Notepad? To copy it, to view it? If you are in TK then you may want to consider the TK:Text or even the TK::Text::Supertext modules. They offer you a whole swag of possibilities that are available in notepad, but don't make it dependent on an external application.

Also if you want it in clipboard to copy somewhere else after running you could use the Tk::clipboard module.

Hope that helps.

Dean

Programming these days takes more than a lone avenger with a compiler. - sam