You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ke...@ubsw.com on 2001/03/16 10:54:09 UTC
New CPAN module to assist with Perl Sections
All
I have just uploaded Tie::DxHash v0.91 to CPAN. Tie::DxHash
preserves insertion order and allows duplicate keys.
What on earth for?? Well, this helps people who are using Perl
Sections (particularly with mod_rewrite) to construct more complex
rules. The module's synopsis illustrates the point:
use Tie::DxHash;
my(%vhost);
tie %vhost, 'Tie::DxHash' [, LIST];
%vhost = (
ServerName => 'foo',
RewriteCond => 'bar',
RewriteRule => 'bletch',
RewriteCond => 'phooey',
RewriteRule => 'squelch',
);
You can find some previous discussion of this point in this list's
archive at
http://www.geocrawler.com/archives/3/182/2000/2/0/3371477/
For more information, see the module's POD.
Hope this helps you. Any feedback gratefully accepted.
Regards
Kevin
$"="";print"@{[&{sub{($i,$j,@_)=(1,1,split//,'hrP kc eeatenltarohsr
u,J');
while(@_){foreach(1..$i){@_=(pop,@_)}push@t,shift;($i,$j)=($i+$j,$i)}@
t}}]}\n";
Anything which follows this line was added after I sent the mail.
=================================================================
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.