PGE error?

2005-06-10 Thread BÁRTHÁZI András

Hi,

I don't know what happens and where in the code, but... Anyway, it's 
strange... I have this code and input.tpl:


--- 8 ---

rule sp {
[ ]
}

rule id {
[a..z][a..z0..9]+
}

sub do($match) {
say $match[0];
return +;
}

my $template=slurp('input.tpl');

$template ~~
s:g!
[ \ server \: (id) [sp+ $?id:=(id) sp*=sp*(-[]*)]* 
sp* \ (.*?) \\/ server \: $0 \ ]

|
[ \ server \: (id) [sp+(id)sp*=sp*(-[]*)]* sp* \/\ ]
!{ do($/) }!;

say $template;

--- 8 ---

text

server:foo /

server:huh /

text

server:boo inside server:huh / inside /server:boo

text

--- 8 ---

Running it several times, one time works: matches and replaces / 
things to +-es, one time it not works... Randomly. Where should I send 
these kind of bugs?


Bye,
  Andras


Re: PGE error?

2005-06-10 Thread Juerd
BÁRTHÁZI András skribis 2005-06-10 10:29 (+0200):
 Running it several times, one time works: matches and replaces / 
 things to +-es, one time it not works... Randomly. Where should I send 
 these kind of bugs?

If you have any means of testing this with PGE directly (without Pugs),
do so.

Otherwise, just report the bug (commit a test script) with Pugs and
it'll find the right party eventually (of course with some help of the
people coding Pugs).


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html