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

I'm making a little GUI frontend for using perl2exe (for my own personal use, or for anyone else who wants it) and I got most of the bugs worked out, except one...
I wanna be able to register it from a pipe in my program, so I open a pipe to it and send it the key, but when I view the output file, it says the key is invalid, even though it works straight from the command line.

See the code below:

open(PIPE,"|perl2exe -register > output.txt"); print PIPE "$key"; close(PIPE);
Now, when I do this, it says that the key is invalid, but I cant figure out why. Any ideas?

Replies are listed 'Best First'.
Re: command line problem w/ perl2exe...
by Fastolfe (Vicar) on Dec 13, 2000 at 00:09 UTC
    Perhaps you need to append a newline to this?
    print PIPE "$key\n";