my %buckets = (
w = {
count = 4,
scale = 10.5,
},
x = {
count = 6,
scale = 7,
},
y = {
count = 12,
scale = 3,
},
z = {
count = 18,
?
No, $arg_for is not modified.
And then I get an error telling me 'No such method in class
Scalar: kv' in the line
for %bucketswarray.kv - $i, $w {
Strange. I did this just by looking at synopses, though, so my
syntax is probably slightly off.
Regards,
--
Aristotle Pagaltzis // http
it:
|
| (3,8,2,9,3,8) - 1; # (2,7,1,8,2,7)
So I assume my syntax was correct, though it might not have been
necessary. I don’t understand one-sided hyper-operators well yet.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
* Ovid [EMAIL PROTECTED] [2006-05-24 18:00]:
First off, thanks to Aristotle for clearing some of my
thinking.
NP, it’s a good way for me to pick up the disparate Perl 6 clues
I picked up haphazardly over time, too.
In my version of Pugs (6.2.11 (r10390)), that fails for two
reasons, both of
languages” translates to C, so the
utility of this is limited; being able to bridge to more
languages would be a great boon.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
doesn’t look like it can either.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
). Table and DL syntax will eventually be added.
* Textile does not have paragraphs in table cells.
Textile does not support nesting constructs (like code blocks
within list items or the like) at all.
* Kwiki does not have paragraphs in table cells.
Regards,
--
Aristotle Pagaltzis // http
?)
Let’s use Perl 6 Grammars to define syntaxes. We are just about
to get this mindblowingly awesome tool for parsing; why insist on
tieing our feet together and having to hop around like that?
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
* Juerd [EMAIL PROTECTED] [2006-06-18 14:10]:
pugs my @foo = 1, 2, 3, { 4 if 0 }.(), 5; say @foo.perl
[1, 2, 3, 5]
bool::true
pugs my @foo = 1, 2, 3, { 4 if 1 }.(), 5; say @foo.perl
[1, 2, 3, 4, 5]
bool::true
That’s “conceptually noisy” though… I don’t know if I’d
Hi Stuart,
* Stuart Cook [EMAIL PROTECTED] [2006-06-18 15:05]:
On 6/18/06, A. Pagaltzis [EMAIL PROTECTED] wrote:
Is there a construct in Perl 6 to express this more
immediately? Something along the lines of the following would
seem ideal:
$foo, $bar, ( $baz if $wibble ), $quux
How
* Larry Wall [EMAIL PROTECTED] [2006-06-18 19:05]:
On Sun, Jun 18, 2006 at 05:18:52PM +0200, A. Pagaltzis wrote:
: Maybe TheLarry can enlighten us… :-)
We already have the operator you want. It's spelled Cxx?. :-)
Nice. :-) How’s it used? S03 doesn’t list it.
Regards,
--
#Aristotle
* Larry Wall [EMAIL PROTECTED] [2006-06-18 19:40]:
On Sun, Jun 18, 2006 at 07:27:57PM +0200, A. Pagaltzis wrote:
* Larry Wall [EMAIL PROTECTED] [2006-06-18 19:05]:
We already have the operator you want. It's spelled Cxx?.
:-)
Nice. :-) How’s it used? S03 doesn’t list it.
Nope. Doesn't
to point to.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
* Andy Lester [EMAIL PROTECTED] [2006-08-28 21:05]:
Try it again.
That’s better.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
you could straight-facedly call a syntax.
Perl 6 is a polar opposite.
YOU FORTH LOVE IF HONK THEN,
--
Aristotle Pagaltzis // http://plasmasturm.org/
, in all fairness.)
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
to drag old mistakes along for all eternity just for the
sake of their familiarity.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
* Richard Hainsworth [EMAIL PROTECTED] [2006-09-17 18:05]:
The .can workaround doesnt seem to work for more complex
modules.
Err, the .can workaround is a way to get past missing sub
exports. Methods are never exported. Why are you using the
workaround for sub exports on methods.
Here is a
* William Herrera [EMAIL PROTECTED] [2006-09-17 21:50]:
perl 5 (9 lines, 353 bytes)
use FreezeThaw qw(cmpStr);
my @a1_9 = (1 .. 9);
my @numbers = sort {rand(10) $a} @a1_9;
for (my $steps = 0; cmpStr([EMAIL PROTECTED], [EMAIL PROTECTED]); ++$steps) {
print join( , @numbers),
based on what I picked up, and
completely untested. Debug as needed to fix it.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
just fine.
F.ex., you can pass CGI::Simple objects into HTML::Template for
variable prepopuluation and it Just Works because they talk to
each other using the CGI.pm `param` protocol.
Form handling clearly requires no coupling.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
? If not, then no, let’s please stick with the
`param` protocol.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
I have the following code:
class MyStupidString {
method repeatit(Str $string, Int $repeat) {
say $string xx $repeat;
my $add = $string xx $repeat;
say $add;
}
};
my $obj = MyStupidString.new;
$obj.repeatit(---,10);
,
--
Aristotle Pagaltzis // http://plasmasturm.org/
that makes
sense to encourage for 5-to-6 migrations of Perl code as well?
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
$write_pid = pid_file_handler( $optionspid_file );
become_daemon();
$write_pid();
# ...
}
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
* Aristotle Pagaltzis pagalt...@gmx.de [2009-01-02 23:00]:
That way, you get this combination:
sub pid_file_handler ( $filename ) {
# ... top half ...
yield;
# ... bottom half ...
}
sub init_server {
# ...
my $write_pid
, and that
they are more or less the only real examples of such.
Regards,
--
Aristotle Pagaltzis // http://plasmasturm.org/
) that itself interprets another program
(the optree), which in turn was compiled from the user Perl program
earlier on.
Once you stop trying to artificially force everything into a single
absolute distinction, the entire debate about which is which vanishes.
Regards,
--
Aristotle Pagaltzis // http
XXX in the following to make it real?
$ 6 'my %h = a => 42, b => 666; dd $_ for %h,XXX'
Hash %h = {:a(42), :b(666)}
:a(42)
:b(666)
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
ening? Even Perl 5 is nicer
in that situation…
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
31 matches
Mail list logo