Welcome! Log In Create A New Profile

Advanced

Importing perl modules " URI::Escape","URI::Encode"

Posted by yuntaek 
Importing perl modules " URI::Escape","URI::Encode"
July 10, 2013 05:16AM
Hi,

I want to call perl modules ,'URI::Escape' and 'URI::Encode' . I tried to call these modules with the following configuration. However, error occurred.
"Configuration"
perl_require URI::Escape; #config 1
perl_require Escape.pm; #config 2

I would like to know the example of using 'use' for Nginx configuration or alternative way.

Below is the configuration what I want to set.

perl_set $uri_unescape 'sub {
my $r = shift;
my $uri = $r->uri;
return uri_unescape($uri);
}';

Thank you in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready