01-05-2011
Yes. I enjoy watching boxing. Probably because I do it...
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI.
I just accidently wipe out my hard drive when i installed sun solaris, this is the last thing i remember, it ask me if want to delete the partition table, and i said yes" Im a retard" i thought solaris can't see xp partition table. Could anyone help me recover my data back, is it really... (21 Replies)
Discussion started by: souldier
21 Replies
2. UNIX for Dummies Questions & Answers
actually i have important question about unix / linux
i'm working on visuall basic and visuall c++
i heared from someone that i can't open them while i useing unix / linux
is that right?
if yes .......... what's the solution
if no ............. thanks :) :D :D
thanks my friends (1 Reply)
Discussion started by: M_Hafez
1 Replies
3. AIX
Hi guys,
I would like to inform you that I have cleared ....
IBM Certified Specialist - p5 and pSeries Administration and Support for AIX 5L V5.3 with 89%
thanks to you all.
Manu (0 Replies)
Discussion started by: b_manu78
0 Replies
4. UNIX for Advanced & Expert Users
I want a Bash Shell Script for taking backup of all files created to day and killing all the Process still active of mine at evening every day (1 Reply)
Discussion started by: vinayraj
1 Replies
5. UNIX for Advanced & Expert Users
Dear All
I have a pattern which look like this :
2 20080226_18:02:09.749 ISC-Libya Egypt-Cairo2 111 IAM 2913258040 218927157966 b 61 REL f 143 RLC :COMMA:NCI=10,FCI=6101,CPC=0A,TMR=00,OFI=80,USI: :COMMB:: :RELCAUSE:15:
2 20080226_18:02:11.629 ISC-Libya Egypt-Cairo2 170 IAM 93572641... (8 Replies)
Discussion started by: zanetti321
8 Replies
6. Shell Programming and Scripting
Hi All!
I need to write a script which reads a file and tries to insert into the DB using those values...
file format:
var1 var2 var3
var4 var5 var6
Now I want to read from the above file and trying to insert like...
insert into table1 values( var1, var2, var3 );
in a loop to... (2 Replies)
Discussion started by: games_icon
2 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi,
Some sports predictions suggestions.
Although the Celtics are still playing the Heat. Just being optimistic that they will win. Otherwise, please change to Heat. (9 Replies)
Discussion started by: ni2
9 Replies
8. Shell Programming and Scripting
how to print first line of each repeated 2 fields only if i got files like :
USA|Tony|12:25:22:431
USA|John|14:22:42:981
USA|John|08:22:12:349
France|Adam|14:22:42:981
Italy|Tony|18:22:42:212
Italy|Tony|04:22:42:212
Italy|Tony|08:22:42:212
to make output like :
... (9 Replies)
Discussion started by: teefa
9 Replies
9. What is on Your Mind?
2013 Laureus World Sports Awards
The Laureus World Sports Awards are awarded annually to sportspeople who have been outstanding during the previous year.
The 2013 Laureus World Sports Awards, the premier honours event in the sporting calendar, are to be held in Rio de Janeiro on March 11.
... (0 Replies)
Discussion started by: Yoda
0 Replies
LEARN ABOUT DEBIAN
mason::manual::requestdispatch
Mason::Manual::RequestDispatch(3pm) User Contributed Perl Documentation Mason::Manual::RequestDispatch(3pm)
NAME
Mason::Manual::RequestDispatch - How request paths get mapped to page components
DESCRIPTION
Given the request path
/news/sports/hockey
Mason searches for the following components in order, setting $m->path_info as noted.
/news/sports/hockey.{mp,mc}
/news/sports/hockey/index.{mp,mc}
/news/sports/hockey/dhandler.{mp,mc}
/news/sports/dhandler.{mp,mc} # $m->path_info = hockey
/news/sports.{mp,mc} # $m->path_info = hockey (but see next section)
/news/dhandler.{mp,mc} # $m->path_info = sports/hockey
/news.{mp,mc} # $m->path_info = sports/hockey (but see next section)
/dhandler.{mp,mc} # $m->path_info = news/sports/hockey
where ".{mp,mc}" means either ".mp" (indicating a pure-perl component). or ".mc" (indicating a top-level component).
The following sections describe these elements in more detail.
Autoextended path
The request path is suffixed with ".mp" and ".mc" to translate it to a component path.
/news/sports/hockey.{mp,mc}
Index
An index matches its exact directory, nothing underneath.
/news/sports/hockey/index.{mp,mc}
Dhandlers
A dhandler matches its directory as well as anything underneath, setting "$m->path_info" to the remainder.
/news/sports/hockey/dhandler.{mp,mc}
/news/sports/dhandler.{mp,mc} # $m->path_info = hockey
/news/dhandler.{mp,mc} # $m->path_info = sports/hockey
/dhandler.{mp,mc} # $m->path_info = news/sports/hockey
Partial paths
A component can match an initial part of the URL, setting "$m->path_info" to the remainder:
/news/sports.{mp,mc} # $m->path_info = hockey
/news.{mp,mc} # $m->path_info = sports/hockey
Since this isn't always desirable behavior, it must be explicitly enabled for the component. Mason will call method "allow_path_info" on
the component class, and will only allow the match if it returns true:
<%class>
method allow_path_info { 1 }
</%class>
The default "allow_path_info" returns false.
"allow_path_info" is not checked on dhandlers, since the whole point of dhandlers is to match partial paths.
Routes
It is possible to use route syntax to more elegantly parse "$m->path_info" for dhandlers and partial paths, e.g.
<%class>
route "{year:[0-9]+}/{month:[0-9]{2}}";
</%class>
See Mason::Plugin::RouterSimple.
SEE ALSO
Mason
AUTHOR
Jonathan Swartz <swartz@pobox.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-05-02 Mason::Manual::RequestDispatch(3pm)