I am running perl script to check whether the IP is present or not. I am getting the error in script.
Perl script: I used use URL::Encode; library, but it threw the below error:
Can't locate URL/Encode.pm in @INC (@INC contains: C:\Strawberry\perl\lib\CPAN C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib .)
So I used direct path as below:
use lib 'C:\Strawberry\perl\lib\CPAN';
my $json_hash={};
$json_hash->{'username'}=$username;
$json_hash->{'response'}=$response;
$json_hash->{'control'}=$control;
my $json_query=URL::Encode::url_encode(JSON::to_json($json_hash));
Suggest me any alternate library or a way to use this library