Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Matching terminals with Parse::RecDescent

by GrandFather (Saint)
on Dec 12, 2006 at 06:25 UTC ( [id://589223]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Matching terminals with Parse::RecDescent
in thread Matching terminals with Parse::RecDescent

With the grammar:

line: FOO BAR /$/ FOO: "foo" BAR: "bar"

and the invocation changed line to:

if (defined (my $ret = $p->line($test))) {

I get:

no match: 'foo' no match: 'foo ' match: 'foo bar' -> '' no match: 'football' no match: 'fog' no match: 'barfoo' no match: 'bar foo'

Is that not what you expect?


DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://589223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found