On 4/27/07, Somu <[EMAIL PROTECTED]> wrote:
snip
My next question is regarding opening pipes. I tried the following:
open ( FH , " notepad " );
print FH 'hello' ;
But its only opening the notepad application, and nothing shows up on
the notepad..
snip
I fear that you are trying to open the MS Windows program
"notepad.exe" and write data to it. This is not what pipes are for.
PIpes (at least unnamed pipes) take the place of the STDIN or STDOUT
for a given program. I don't believe MS Windows Notepad does anything
significant with its STDIN. Pipes are generally not as useful on a
Microsoft platform since most of the utilities are GUI based and are
not setup for automation the same way UNIX style utilities are;
however, you should look into the Win32::* modules. In particular I
think Win32::CtrlGUI* and Win32::OLE should help*.
* http://search.cpan.org/search?m=all&q=win32&s=131
* http://search.cpan.org/~teverett/Win32-CtrlGUI-0.30/Win32/CtrlGUI.pm
* http://search.cpan.org/~jdb/libwin32-0.27/OLE/lib/Win32/OLE.pm
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/