in reply to How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?
I've never used PS-ISE before. In fact, just the past week I discovered it in my System32 folder and was poking at it wondering what it was.
But I just fired it up to see what would happen. Here's what happened.
Okay, I have a three-paned window here (I'm on a WinXP SP3/Win32 system). Top one says Untitled.ps1 (presumably an edit window for writing a shell script), middle one seems to be STDOUT shell output, bottom one is my command line.
My little hello.pl reads:
#!/usr/bin/perl use strict; use warnings 'all'; print "Hello, world!\n";
And I run on my command line:
> perl hello.pl
And I get in STDOUT:
PS> perl hello.pl Hello, world!
This isn't what you get? I don't know what I'm doing differently.
More important, why do you need Unicode console output? That's something that very few terminals support. Processing Unicode files doesn't necessarily need Unicode output to STDOUT. This PS-ISE seems like a clunky interface not meant for much console interaction; mainly meant for system automation, maybe? I would just write a regular old Perl script to process Unicode, and have it output to a file rather than to STDOUT. I've never had a problem with that. The script only outputs status messages to STDOUT to let me know that everything is working correctly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?
by HelenCr (Monk) on Feb 18, 2012 at 18:58 UTC | |
by LonelyPilgrim (Beadle) on Feb 18, 2012 at 19:21 UTC |