6 More Discussions You Might Find Interesting
1. Web Development
Hi,
I hosted my site on Apache web server.
I wanted to redirect all the users request to a HTML page(maintenance page).
I used the below rewrite rule to do ths same.
RewriteEngine on
RewriteRule .* /maintenance.html
The maintenance.html page contains an image.
When ever I try to... (2 Replies)
Discussion started by: BSrikanthB
2 Replies
2. Linux
Hi,
I need to configure iptable such that whatever request comes to 192.168.0.4 needs to forwarded to 192.168.0.50 and only port 80 and 443 needs to be forwarded others need to be blocked....
Thanks gr8 forum:) (1 Reply)
Discussion started by: iron_michael86
1 Replies
3. Post Here to Contact Site Administrators and Moderators
In light of this board's rule stating "no BSD vs. Linux vs. Windows or similar threads," is the following post legal (can I post it)?
Hi. I'm thinking about obtaining a web server for business purposes and I want to learn to administer and maintain the server myself. I need to be able to use... (1 Reply)
Discussion started by: bluegospel
1 Replies
4. Shell Programming and Scripting
I can't seem to get a rule in my Makefile to ever run... even if I change the rule to force make to re-enter the rule, or if I change the dependent files the rule depends on. Any ideas why the second rule is being ignored here?
#MAKEFILES = $(DIRS:%=$(ROOT)/%/Makefile)
#$(MAKEFILES):... (0 Replies)
Discussion started by: foureightyeast
0 Replies
5. Shell Programming and Scripting
Hi everybody:
Somebody know or have a simple script which can calculate the integration from a database using the trapezoidal rule in awk.
I have a file like:
0.490 952.296 284.19 11.3169 0.002481 0.488 0.01
0.500 965.57 288.25 11.3395 2.48E-03 0.048 0.01
0.510 964.47 288.25 10.8759... (0 Replies)
Discussion started by: tonet
0 Replies
6. Email Antispam Techniques and Email Filtering
I can tell this is not a recently active formum, but here goes, "why doesn't this procmail rule block
messages with víagra or v1agra appearing in
the subject header
:0
* ^Subject:.*(víagra¦v1agra¦pénis¦prescripti0n¦Medicati0n¦M0rtgage¦Xanaxz)
{
LOG="(THE 7 DIRTY WORDS) "
:0
... (4 Replies)
Discussion started by: jones
4 Replies
LEARN ABOUT DEBIAN
path::dispatcher::rule
Path::Dispatcher::Rule(3pm) User Contributed Perl Documentation Path::Dispatcher::Rule(3pm)
NAME
Path::Dispatcher::Rule - predicate and codeblock
SYNOPSIS
my $rule = Path::Dispatcher::Rule::Regex->new(
regex => qr/^quit/,
block => sub { die "Program terminated by user.
" },
);
$rule->match("die"); # undef, because "die" !~ /^quit/
my $match = $rule->match("quit"); # creates a Path::Dispatcher::Match
$match->run; # exits the program
DESCRIPTION
A rule has a predicate and an optional codeblock. Rules can be matched (which checks the predicate against the path) and they can be ran
(which invokes the codeblock).
This class is not meant to be instantiated directly, because there is no predicate matching function. Instead use one of the subclasses
such as Path::Dispatcher::Rule::Tokens.
ATTRIBUTES
block
An optional block of code to be run. Please use the "run" method instead of invoking this attribute directly.
prefix
A boolean indicating whether this rule can match a prefix of a path. If false, then the predicate must match the entire path. One use-case
is that you may want a catch-all rule that matches anything beginning with the token "ticket". The unmatched, latter part of the path will
be available in the match object.
METHODS
match path -> match
Takes a path and returns a Path::Dispatcher::Match object if it matched the predicate, otherwise "undef". The match object contains
information about the match, such as the results (e.g. for regex, a list of the captured variables), the "leftover" path if "prefix"
matching was used, etc.
run
Runs the rule's codeblock. If none is present, it throws an exception.
perl v5.12.4 2011-08-30 Path::Dispatcher::Rule(3pm)