> (would that be a "pliki"? a "sixwiki"? a "plixi"? erm-)
psiki, where the "p" is silent. Like what you throw when you fancy a
free day off work.
--
Humpty Dumpty sat on the wall, Humpty Dumpty had a great fall,
All the King's horses and all the King's men | http://surreal.istic.org/
On 5/30/06, Stuart Cook <[EMAIL PROTECTED]> wrote:
The construct you're looking for is
(although in this case %q{$n} is probably more appropriate)
On 5/30/06, Michael Mathews <[EMAIL PROTECTED]> wrote:
I see now that those pointy braces take their contents literally, so
literally a key whith the characters "dollar, en". Not what I meant at
all! Thanks for the help.
The construct you're looking for is
%q«$n»
which may also be written
On 30/05/06, Larry Wall <[EMAIL PROTECTED]> wrote:
On Tue, May 30, 2006 at 07:56:40AM +0100, Michael Mathews wrote:
: Strangely %q<$n>.push($v); doesn't
: work, but %q.{$n}.push($v); does. What's the difference?
The first is equivalent to %q{'$n'}.push($v).
I see now that those pointy braces ta
Michael Mathews skribis 2006-05-30 0:48 (+0100):
> Yes, this is a learning exercise (you may provide links to the real
> pugs CGI solution -- it's not easy to find) but any advice you give
> could possibly be a learning experience for more than just me.
I recommend that you read his CGI course. I
On Tue, May 30, 2006 at 07:56:40AM +0100, Michael Mathews wrote:
: Strangely %q<$n>.push($v); doesn't
: work, but %q.{$n}.push($v); does. What's the difference?
The first is equivalent to %q{'$n'}.push($v).
Larry
On Mon, May 29, 2006 at 05:28:53PM -0700, Ovid wrote:
> I also tried to do this:
> my ($n, $v) = $nv.split('=').map(decode($_));
> That and a number of other variants all failed miserably with errors similar
to:
> Can't modify constant item: VStr ...
Many thanks to Joel and ovid, your sugge
On Mon, May 29, 2006 at 05:28:53PM -0700, Ovid wrote:
>
> I also tried to do this:
>
> my ($n, $v) = $nv.split('=').map(decode($_));
>
> That and a number of other variants all failed miserably with errors similar
> to:
>
> Can't modify constant item: VStr ...
>
Ah, should have paid more
On Mon, May 29, 2006 at 05:28:53PM -0700, Ovid wrote:
>
> Now that I read what I wrote, I guess that might have sounded a bit
> annoying for me to mention that I would change things but then not
> mention what I would change.
>
> Much of the changes would be stylistic in nature, but not all (I'm
>
- 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 latter, I don't really have much to
> > comme
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 latter, I don't really have much
to comment on, though there are a few things I would change.
How mysterious. Short of beggi
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 question on a ma
Whack three! I suddenly remember what it was like to learn Perl the
first time again. Boy do I feel confused. It's starting to work
though. Kinda like the first Perl CGI I wrote about seven years ago.
Probably just as ugly too. Anyone want to join in here, please feel
free!
#!/usr/bin/pugs
print
On Mon, May 29, 2006 at 09:14:43AM +0100, Michael Mathews wrote:
: On 28/05/06, Juerd <[EMAIL PROTECTED]> wrote:
: >The exegeses are not updated to follow the current specifications.
: >They're still useful, so they're kept around, but the syntax is out of
: >date.
: >Synopses are kept up to date.
Whack number two. I *think* I've implemented URI decoding, with
Juerd's help. I don't know how my hackish code will manage with
various flavours of UTF (especially wide characters) but I'll leave
that until it proves to be a problem. This works with my install of
pugs. I still have some TODOs, if
On 28/05/06, Juerd <[EMAIL PROTECTED]> wrote:
The exegeses are not updated to follow the current specifications.
They're still useful, so they're kept around, but the syntax is out of
date.
Synopses are kept up to date. See
http://dev.perl.org/perl6/doc/design/syn/S05.html
Ah! I see. Thank you.
Michael Mathews skribis 2006-05-28 20:32 (+0100):
> Well, one example would be Damian's Exegesis 5 at
> http://dev.perl.org/perl6/doc/design/exe/E05.html which I thought was
> an authorative word on the subject. Can you give me a link to working
> examples of regex in pugs please?
The exegeses are
Michael Mathews skribis 2006-05-28 20:32 (+0100):
> And, as an incentive, I'm offering 1000 Colombian Pesos to the first
> person to author a working example of s/+/ /g; in Perl 6*.
If your PGE support works, s/+/ /g still does not. It's s:g/\+/ /.
Juerd
--
http://convolution.nl/maak_juerd_blij
On 28/05/06, Juerd <[EMAIL PROTECTED]> wrote:
Michael Mathews skribis 2006-05-28 15:46 (+0100):
> Also is the operator "~~" or "=~"? I've found contradictory references
> to both in books and online.
It was "=~" in Perl 5, but it's "~~" in Perl 6. Please report
occurrences of "=~" to the respect
- Original Message
> From: Conrad Schneiker <[EMAIL PROTECTED]>
>
> More code here (and in subdirectories):
> https://svn.perl.org/perl6/pugs/trunk/ext/CGI
I'm on a friend's computer so I can't check that, but I seem to recall that
that interface was borrowed directly from Perl5's CGI.p
Michael Mathews skribis 2006-05-28 15:46 (+0100):
> $v =~ s/+/ /;
That is:
$v = (~ s/+/ /);
> What's "" mean?
That is how Pugs stringifies "s/+/ /", as requested with the
stringification operator "~"
> Also is the operator "~~" or "=~"? I've found contradictory references
> to both in book
On 28/05/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
I think you'll end up doing s:p5/// or however exactly it is
spelled where you can just write a Perl 5 regex.
#!/usr/bin/pugs
my $v = "one+two+three";
$v =~ s/+/ /;
print $v;
prints...
What's "" mean? Do I need to do something special to g
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-28 16:15]:
> For that matter can anyone give a working (under pugs) example
> of a simple substitution using Perl6 regex, "+" => " " for
> example?
I think you’ll end up doing s:p5/// or however exactly it is
spelled where you can just write a Perl 5
On 28/05/06, Andrew Shitov <[EMAIL PROTECTED]> wrote:
Not first ;-)
http://real.perl6.ru/p6/environment/
http://real.perl6.ru/p6/querystring/?one=alpha&two=beta&three=gamma&empty&four=delta
http://real.perl6.ru/p6/cookie/ (refresh twice)
http://real.perl6.ru/p6/queryhash/?one=alpha&two=beta&thre
> "sixwiki"? a "plixi"? erm-) I think the first hurdle would be getting
> CGI going on 6. Is this already proven? If so how?
Not first ;-)
http://real.perl6.ru/p6/environment/
http://real.perl6.ru/p6/querystring/?one=alpha&two=beta&three=gamma&empty&four=delta
http://real.perl6.ru/p6/cookie/ (re
> From: Michael Mathews [mailto:[EMAIL PROTECTED]
> Sent: Sunday, May 28, 2006 2:38 AM
>
> Here's my first stab at a perl 6 cgi script. It's unusably slow under
> pugs, but that's a problem for the "optimisation people" :-) not me!
>
> If I'm reinventing the wheel here just tell me,
Don't know
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-28 11:40]:
> #!/usr/bin/pugs
>
> say "content-type: text/html\n\n";
> my %q = ();
> my @q = split '&', %ENV.{'QUERY_STRING'};
> for (@q) {
> my ($n, $v) = split '=', $_;
>
> # TODO: deal with URI encoding
> # similar to perl5:
Here's my first stab at a perl 6 cgi script. It's unusably slow under
pugs, but that's a problem for the "optimisation people" :-) not me!
If I'm reinventing the wheel here just tell me, but it's still a
useful learning exercise (I'm embarrassed to tell you how long this
took me to get working!).
* Michael Mathews <[EMAIL PROTECTED]> [2006-05-28 10:10]:
> (would that be a "pliki"? a "sixwiki"? a "plixi"? erm-)
Pliki Sixi?
Regards,
--
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;
Thinking about the wiki on 6 challenge (would that be a "pliki"? a
"sixwiki"? a "plixi"? erm-) I think the first hurdle would be getting
CGI going on 6. Is this already proven? If so how?
I'm investigating this now, but if someone wants to offer a working example...
--michael
30 matches
Mail list logo