hyperoperator bug? «~» != <<~>>

2013-02-25 Thread Ovid
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/

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
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

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
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' => { '

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
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/

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
- 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

Re: Simple Print/Say Question

2006-05-24 Thread Ovid
uot;int" and "array" stuff as comments right now, though I could be mistaken. Cheers, Ovid

Re: Simple Print/Say Question

2006-05-24 Thread 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

Re: 3 Good Reasons...

2006-05-24 Thread 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

Re: 3 Good Reasons... (typo alert!)

2006-05-24 Thread 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

Re: Logic Programming for Perl6 (Was Re: 3 Good Reasons... (typo alert!))

2006-05-25 Thread Ovid
- 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

Re: Introductions; P6 wiki

2006-05-27 Thread Ovid
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

Re: CGI on 6

2006-05-28 Thread Ovid
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

Re: CGI on 6

2006-05-29 Thread Ovid
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

Re: CGI on 6

2006-05-29 Thread Ovid
- 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

Minimum modules for Production?

2006-05-29 Thread Ovid
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/

Re: Minimum modules for Production?

2006-05-31 Thread Ovid
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

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-01 Thread 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

Runtime Role Issues

2006-10-10 Thread Ovid
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/

Re: Runtime Role Issues

2006-10-11 Thread Ovid
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

Error running Pugs tests

2006-12-12 Thread Ovid
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/

Re: Error running Pugs tests

2006-12-12 Thread Ovid
--- 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

Introspection and list question

2006-12-12 Thread Ovid
, 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/

Strange error message with anon subroutine

2006-12-13 Thread Ovid
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.

99 Problems in Perl6

2006-12-15 Thread Ovid
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/

Unwanted scalar references

2006-12-17 Thread Ovid
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/

take: bug or feature?

2006-12-18 Thread Ovid
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

Junctions as arguments (Pugs bug)

2006-12-19 Thread Ovid
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/

Re: 99 problems in Perl6: problem 28

2007-01-02 Thread Ovid
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

Re: 99 problems in Perl6: problem 28

2007-01-02 Thread Ovid
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

Re: 99problems: 9, 11, 13

2007-01-07 Thread Ovid
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 -

Re: am I doing something wrong - hanoi example with 0.5.1 parrot release

2008-01-02 Thread 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

Re: am I doing something wrong - hanoi example with 0.5.1 parrot release

2008-01-02 Thread Ovid
--- 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

Perl 6 pos() function?

2008-12-27 Thread Ovid
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

Re: Perl 6 pos() function?

2008-12-27 Thread Ovid
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

Hangman in Perl 6

2008-12-31 Thread Ovid
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