Hi All,
I am having issues writing to STDERR. I am using this as
a reference:
https://perl6.org/archive/rfc/30.html
The p52p6 translator needs to be able to spot
instances of barewords and globs and translate them
to scalars:
print STDERR @foo; -> print $STDERR @foo;
<code>
#!/usr/bin/perl6
use strict;
# use warnings;
# use lib; # fill name of lib in
print $STDERR "Existing at $?LINE do to improperly used parameter\n";
exit 2;
print "This should not print\n";
</code>
$ exit.pl6
===SORRY!=== Error while compiling /home/linuxutil/perl/./exit.pl6
Variable '$STDERR' is not declared
at /home/linuxutil/perl/./exit.pl6:7
------> print ⏏$STDERR "Existing at $?LINE do to improp
What am I doing wrong? Why isn't $STDERR declared? Isn't
is built in?
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~