On Mar 04 2007, Smylers wrote:
for @invoice
{
.process;
} or fail 'No invoices to process';
If that actually works then I'm happy.
--
Rick Delaney
[EMAIL PROTECTED]
%]/span
[% ELSE %]
spanSearch returned no records./span
[% END %]
--
Rick Delaney
[EMAIL PROTECTED]
be able to get the behaviour you want, too.
--
Rick Delaney
[EMAIL PROTECTED]
the given block
then I think it would be clearer if they spelled out that intention with
something like
given $y { use dot '$?SELF'; # or just 'use dot' with suitable default
when 1 { .abc } # calls $?SELF.abc
}
--
Rick Delaney
[EMAIL PROTECTED]
::Result or somesuch? It would
just look like an ::Array::Const if you treat it as such.
--
Rick Delaney
[EMAIL PROTECTED]
;# Outputs d
}
bar();
# Correct (I hope so)?
Yeah, they're lexical, just like in Perl 5.
Not just like Perl 5, I hope. If it was then the above would print
d.
--
Rick Delaney
[EMAIL PROTECTED]
wondering
why the first table above would be easier to learn/remember than the
second.
--
Rick Delaney
[EMAIL PROTECTED]
];
return $val unless $val.can(STORE);
my $x is very_read_only := $val;
return $x;
}
And how the trait connects to the FETCH-replacing I don't even know
where to begin.
--
Rick Delaney
[EMAIL PROTECTED]
. There are surely many examples
to be found in SQL books.
--
Rick Delaney
[EMAIL PROTECTED]
undef to set the default (i.e.
treat undef the same as uninitialized) then they would set both
properties to the same value.
my int @a is default(1) is undef_to(1);
--
Rick Delaney
[EMAIL PROTECTED]
10 matches
Mail list logo