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.


In reply to Re: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”? by LonelyPilgrim
in thread How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”? by HelenCr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.