>>>>> "SC" == Simon Cozens <[EMAIL PROTECTED]> writes:
SC> [EMAIL PROTECTED] (Uri Guttman) writes:
>> actually i just had another thought. you don't need any of the $foo :=
>> stuff as the match tree will have it all for you.
SC> Yes, but it's nice to be able to access the captured things by
SC> name. Or should I be saying things like
SC> rule raiddev { <comment>*
SC> <sp>* "raiddev" <sp>+ <name> <comm_eol>
are the quotes there literals? they aren't in the file format i think.
SC> (<devicelayout> | <option> | <comment>)+ };
SC> rule name { /dev/md\d+ }
yeah, that should grab name in the match object as a hash element of the
raiddev level. or maybe it needs grab markers somewhere? i am not sure
it should be (<name>) in the raiddev rule or (/dev/md\d+) in the name
rule. both could work but give different places where the grab ends up.
uri
--
Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org