On 09/13/2017 04:57 PM, Brandon Allbery wrote:
On Wed, Sep 13, 2017 at 7:51 PM, ToddAndMargo <toddandma...@zoho.com <mailto:toddandma...@zoho.com>> wrote:

    How do I print to STDERR?  $*ERR?

    $ perl6 -e 'print $*ERR, "print to std err\n";'
    <STDERR>print to std err

    What am I doing wrong?


Use the OO form: $*ERR.print: "print to std err\n";
Unlike Perl 5, there is no special syntactic form that takes a separate handle.

Or use "note", which is "say" but to $*ERR.


Hi Brandon,

$ perl6 -e '$*ERR.print: "print to std err\n";'
print to std err

$ perl6 -e '$*ERR.say: "print to std err";'
print to std err


That was easy.  Thank you!

-T

DuckDuckGo is a pain the neck look this
stuff up.  I get 1001 hits on Perl 5!

Reply via email to