toolbox
|
|
LWN.net: Limbo: a new Red Hat Linux beta. Still downloading...
Posted @ 5:43:34 PM ( comments)
Allison Randal, Damian Conway: Synopsis 5. "Just as you can have anonymous subs and named subs you can have anonymous regexes and named regexes:"
rule ident { [<alpha>|_] \w* } # and later... @ids = grep /<ident>/, @strings; # and then refer to named regexes, such as: rule serial_number { <[A-Z]> \d<8> } rule type { alpha | beta | production | deprecated | legacy }Neat and slightly shocking (for someone who's been doing Perl for eight years) syntax.
Michael Gorman: And where do XML tags come from? "Which is the better source for XML Tags, an IT System Centric or Data Centric Approach?" [Column Two]
Posted to xml @ 5:27:41 PM ( comments)