Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #112650] white space is not accepting in between method name and (

1 view
Skip to first unread message

Kishore

unread,
Apr 27, 2012, 4:47:05 PM4/27/12
to bugs-bi...@rt.perl.org
# New Ticket Created by Kishore
# Please include the string: [perl #112650]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112650 >


Hello Rakudo,

[krelangi@adc2190190 rakudo-star-2012.04]$ ./perl6 --version
This is perl6 version 2012.04.1 built on parrot 4.3.0 revision 0

./per6 is throwing error if method call has a white space between it's name
and open parenthesis.

use v6;

my $file = open ("scores");

my @names = $file.get.words;

my %matches;
my %sets;

for $file.lines -> $line
{
my ($players, $scores) = $line.split (' | '); # Causing error
my ($pairing, $result) = $line.split(' | '); # working
}


Thanks & Regards
91-97012-13199.
Success is never permanent....Failure is never final....
So, always do not stop effort until your victory makes a history...!

Emile State

unread,
Apr 30, 2012, 2:35:13 AM4/30/12
to perl6-c...@perl.org
Unsubscribe
0 new messages