Ticket #193 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

warnings printed on console by Perl6 parser

Reported by: szabgab Owned by: azawawi
Priority: major Milestone:
Component: plugins Version: 0.22
Keywords: perl6 Cc:

Description

given the following perl 5 code

my $x;
$x = defined $x ? $x : 'DEFAULT VALUE';
print "$x\n";                             # DEFAULT VALUE

and trying to use it as perl 6 code I get the correct warning
but it is on the console instead of the output window
(or maybe also in the error window)

STD.pm Parsing error
############# PARSE FAILED #############
Obsolete use of ?: for the conditional operator; in Perl 6 please use ??!! instead at (eval) line 6:
------> $x = defined $x ? $x : 'DEFAULT VALUE';

Change History

comment:1 Changed 5 years ago by azawawi

  • Owner set to azawawi
  • Status changed from new to accepted

comment:2 Changed 5 years ago by azawawi

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed in Padre::Plugin::Perl6 v0.015

Thanks,
Ahmad

Note: See TracTickets for help on using tickets.