Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:


I try to open notepad for writing and would like to do it without having to use a temporary file or Win32::Ole.
The following doesn't run, as the arg should be a file name:
$see = "hello world\n";
system(qq{start "/b" "| notepad $see"});

Do you know a easy way to do it?

Replies are listed 'Best First'.
Re: System notepad pipe
by ikegami (Patriarch) on Mar 31, 2011 at 07:31 UTC
    notepad expects a file name, so you'd have to use a named pipe. Win32::Pipe can help you create one.
Re: System notepad pipe
by Corion (Patriarch) on Mar 31, 2011 at 07:23 UTC

    Notepad does not work with pipes