Hi,
From the Perl6 and Parrot Essentials:
- 8 -
sub flat_hash ($first, $second) {
say first: $first;
say sec. : $second;
}
my %hash = (first = 1, second = 2);
flat_hash(*%hash);
- 8 -
It says, that No compatible subroutine found. I've modyfied the
subroutine:
-
Hi,
No ideas?
Bye,
Andras
I'm working on a web templating system, and I'm wondering how should I
use rules?
I have these defs:
rule elem {
\ wts \: ([a..z]+) \/ \
}
rule block {
\ wts \: ([a..z]+)\(.*?)\ \/ wts \: $1 \
}
I would like to execute subroutines during the
On 6/5/05, BÁRTHÁZI András [EMAIL PROTECTED] wrote:
I've tried it on the feather.perl6.nl machine, with pugs. Is it the
right behaviour?
Caller-side splatted arguments aren't yet implemented in Pugs. As far
as I know, the specced behaviour is still correct.
Stuart
I'll take a shot at it since no one else seems to want to. :-)
On 6/3/05, BÁRTHÁZI András [EMAIL PROTECTED] wrote:
How can I catch the matched elem name, and block content? I'm guessing
that hypotetical variables can be the solution, but it says, that those
variables should have been defined,
Hi,
I'll take a shot at it since no one else seems to want to. :-)
Hope this is helpful. Corrections are welcome from anyone who spots
any mistakes.
Thanks, it helped me!
More questions. ;) It seems to me, that the following constructs not
yet(?) implemented in Pugs. Is it true?
Hi,
two quick questions:
Are multi submethods allowed?
my $x = undef;
my $y = $x.some_method;
# $y now contains an unthrown exception object, saying that undef
# doesn't .can(some_method), right?
say $y; # Only now it dies, correct?
This is important if you have a sub which may