he problem. Is this a Rakudo bug or are double
angle brackets not interchangeable with guillemets?
bin/perl6 -v
This is perl6 version 2013.01 built on parrot 4.10.0 revision 0
Cheers,
Ovid
--
Twitter - http://twitter.com/OvidPerl/
Buy my book - http://bit.ly/beginning_perl
Buy my other book - http://www.oreilly.com/catalog/perlhks/
Live and work overseas - http://www.overseas-exile.com/
This seems to work for me:
pugs -e 'say (1,2,3).join("|")'
1|2|3
Or even:
pugs -e '(1,2,3).join("|").say'
1|2|3
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up questions to the l
er version, I'd love to see it.
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/--
my %buckets = (
'w' => {
'
rg_for {
for 0 .. $arg_for{'count'} -> $index {
$arg_for{'array'}.push($index * $arg_for{'scale'});
}
}
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
- Original Message
> From: Larry Wall <[EMAIL PROTECTED]>
>
> You should not need "my" on the right side of a ->. Also, you should
> be able to write $arg_for for constant subscripts.
Thanks! The revised script is below for those who are interested
uot;int" and "array" stuff as comments right now,
though I could be mistaken.
Cheers,
Ovid
o work there? You're accessing an array, not a hash.
> I assume all those temporaries that I cleaned out were there for
> speed, in which case this will run slower, but they were too
> unsightly to keep around.
Yeah, that's why they were there. However, the ($x, $y, $z).sum > $target is a
much more useful performance hack, so you could get rid of the temporaries.
Cheers,
Ovid
designing and implementing Perl6 (gush, gush,
gush). I was leaning away from Perl5 due to its limitations, but now I'm here
to stay. I am supremely confident that Perl6 will be a hugely popular language
simply based on its merits, not marketing.
Cheers,
Ovid
Sheesh. I type things too fast and then I see the horrifying typos I've made
(blush)
- Original Message
From: Ovid <[EMAIL PROTECTED]>
> do things that is hard to do in other languages.
"do things that *are* hard to do in other languages"
> Perl6 not onl
- Original Message
From: David Romano <[EMAIL PROTECTED]>
> > duplicate results and this is almost always wrong. (See
> > http://use.perl.org/~Ovid/journal/28378
> > for an SQL example of this problem).
> I re-read your journal entry and comments (I had re
On a related note, if anyone does want to build a P6 Wiki, you might consider
building it on top of WWW::Kontent (http://search.cpan.org/dist/WWW-Kontent/),
a Perl6 CMS (Content Management System) that BrentDax wrote.
Cheers,
Ovid
-- If this message is a response to a question on a mailing
ak for Audrey, but she was quite
willing to hand out committer bits and I suspect she'd be happy to have more of
the cookbook fleshed out. We need it very badly!
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up questions to the list.
We
Michael,
I assume this is just an attempt to learn Perl6 and not to write a serious CGI
parser? Assuming it's the former and not the latter, I don't really have much
to comment on, though there are a few things I would change.
Cheers,
Ovid
-- If this message is a response to a que
- Original Message
From: Michael Mathews <[EMAIL PROTECTED]>
On 30/05/06, Ovid <[EMAIL PROTECTED]> wrote:
> > I assume this is just an attempt to learn Perl6 and not to write a serious
> > CGI parser?
> > Assuming it's the former and not the
can be hacked up on the fly.
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
call having used GDBM_File. Perl6 without a robust HTML
parser would be quite limited for me, though I'm sure one will be ready soon.
Cheers,
Ovid
come up with a solid set of contest rules, TPF can
consider whether or not we can officially run the contest. It sounds like a
nice idea, I just don't know what's involved.
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up quest
TailChasing | Scratch;
Should that be the following?
$fido does Sentry & Tricks & TailChasing & Scratch;
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
ll (see Moose::Meta::Class for more about these
> APIs):
>
> ^Dog.add_role(^Catlike);
That's more of what I was thinking, but where is this documented? I
can't find it in http://dev.perl.org/perl6/doc/design/syn/S12.html. I
see it in the Moose docs, but is this in Perl 6? I
nge. Can anyone else reproduce
this? If not, I can dig into my system and see what's up.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
--- Gaal Yahas <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 12, 2006 at 02:14:42AM -0800, Ovid wrote:
> > pugs $ pugs t/general/basic.t
> > pugs: user error (***
> > Unexpected "Str"
> > expecting "\\", ":", "*&qu
, it's flattening nested lists
and I'm embarrassed to admit that I can't figure this out in Perl6.
Thoughts? I've been reading synopses and grepping through Pugs, but to
no avail.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
ugs line 103, column 13-22
Take out the returns, and it works fine. Can someone tell me what I'm
missing? Is this a bug.
Also, I noticed I accidentally left off the final semi-colon on the do
block. It ran anyway and that surprised me.
Cleaner ways of writing that code are welcome, too.
would like.
The link to my sample Perl6 code and to the original 99 problems is at
http://perlmonks.org/?node_id=590113
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
ot;, [1, "c"] ).perl.say;
Oddly, using the postfix ++ gives me the error message I expect:
*** Can't modify constant item: VRef
at 99.pugs line 215, column 18-69
99.pugs line 215, column 18-69
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
omething break? If so, I'll add a
test. Otherwise, what's wrong with this code? Also, I've been
searching the docs for the exact syntax of 'gather/take' and I can't
find it. Pointers would be great.
Pugs Version: 6.2.13 (r14911)
Cheers,
Ovid
--
Buy the book -- http://w
27;ll happily commit tests, but what is the expected behavior of my
first code snippet?
(I see now that other junction tests use ok() instead)
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
Ah, nice to see someone else tackling the problems. Assuming the tests
pass (I can't check this at work) and you have a commit bit, check it
in!
Cheers,
Ovid
--- gabriele renzi <[EMAIL PROTECTED]> wrote:
> Hi everyone, and happy new year!
>
> I'm an almost complete ne
t over svn)
That's not my place to say. I can't give commit bits (and to be fair,
it was possibly a bit cheeky of me to push this into Pugs, but no one
objected on #perl6).
> By the way, any comments on the code? :)
I thought it looked quite nice, but given that I can't run i
nclined
to see multiple solutions to problems rather than clearing out previous
work. Not only does this follow the spirit of TIMTOWTDI, but it also
allows the tests to cover a wider range of behavior.
It's not really my call, though. Commit bits are there for a reason :)
Cheers,
Ovid
-
This line?
my $ndisks := @*ARGS[0] // 3;
I was rather under the impression that perl6 does not yet implement
@*ARGS. Unfortunately, I not only cannot recall where I read that, I
don't know where to look to verify that.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/p
--- Ovid <[EMAIL PROTECTED]> wrote:
> This line?
>
> my $ndisks := @*ARGS[0] // 3;
>
> I was rather under the impression that perl6 does not yet implement
> @*ARGS. Unfortunately, I not only cannot recall where I read that, I
> don't know where to look to v
uot;canonical" Perl 6 way of doing this? Preferably one which
works with the current state of Rakudo :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPe
line 4, near "$letter> /"
Revision 34446 on OS X Darwin. Is this a known failure? I think it's not
supposed to work yet, but I unsure from the tests. If that's the case, the
only work around I can think of is to split the word and individually compare
each letter's
I wrote a hangman game in Perl 6. Suggestions are very welcome. Some issues
with it are from things I don't understand. Others are due to bugs or
limitations in Rakudo.
http://use.perl.org/~Ovid/journal/38191
All in all, I'm quite pleased with how things are coming along.
Ch
35 matches
Mail list logo