Kelam_Magnus


 
Thread Tools Search this Thread
Contact Us Post Here to Contact Site Administrators and Moderators Kelam_Magnus
# 8  
Old 07-14-2003
Quote:
Originally posted by Perderabo

By violating rule 8, you trigger rule 12. You didn't know you were violating rule 8? Fair enough. But you know it now. See, you're learning already. Smilie
i really dont mean to go off topic or laf at all but i am seriously wait for the trap door to open and a man to start screeming "ohh im burned very badly .... ohh you just shot me....."
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

For Kelam_Magnus

It is not my intention to cheat the system. yes, you are correct that it is a homework question, on attempting the problem , i read through 6 chapters of my book and put in an entire saturday, 10 hrs trying to figure tthis out and I still got no where. Just like any language i have been through... (2 Replies)
Discussion started by: chekeitout
2 Replies
Login or Register to Ask a Question
Path::Dispatcher::Match(3pm)				User Contributed Perl Documentation			      Path::Dispatcher::Match(3pm)

NAME
Path::Dispatcher::Match - the result of a successful rule match SYNOPSIS
my $rule = Path::Dispatcher::Rule::Tokens->new( tokens => [ 'attack', qr/^w+$/ ], block => sub { my $match = shift; attack($match->pos(2)) }, ); my $match = $rule->match("attack dragon"); # introspection $match->path # "attack dragon" $match->leftover # empty string (populated with prefix rules) $match->rule # $rule $match->positional_captures # ["attack", "dragon"] (decided by the rule) $match->pos(1) # "attack" $match->pos(2) # "dragon" $match->run # attack("dragon") DESCRIPTION
If a Path::Dispatcher::Rule successfully matches a path, it creates one or more "Path::Dispatcher::Match" objects. ATTRIBUTES
rule The Path::Dispatcher::Rule that created this match. path The path that the rule matched. leftover The rest of the path. This is populated when the rule matches a prefix of the path. positional_captures Any positional captures generated by the rule. For example, Path::Dispatcher::Rule::Regex populates this with the capture variables. named_captures Any named captures generated by the rule. For example, Path::Dispatcher::Rule::Regex populates this with named captures. parent The parent match object, if applicable (which may be set if this match is the child of, for exampl, a Path::Dispatcher::Rule::Under prefix) METHODS
run Executes the rule's codeblock with the same arguments. pos($i) Returns the $ith positional capture, 1-indexed. perl v5.12.4 2011-08-30 Path::Dispatcher::Match(3pm)