Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:17:57+00:00 2026-05-25T03:17:57+00:00

UPD: The code works just fine on a newer Redis module version: 1.904 vs

  • 0

UPD: The code works just fine on a newer Redis module version: 1.904 vs 1.2001.

I’m trying to use Redis module from CPAN. It works OK when setting/getting scalar keys, however, I can’t get hashes to work.

Here’s my sample program:

#!/usr/bin/perl -w

use strict;
use Redis;

my $red = Redis->new();
print "use\n";
$red->hmset(foo=>bar=>1, baz=>2);
print "set\n";
print "$_\n" for $red->hmget("foo", "bar", "baz");

And it hangs after printing “use”.

Just using hmset/get from redis-cli works fine.

What’s wrong with this code, and how should I deal with redis hashes from perl?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:17:58+00:00Added an answer on May 25, 2026 at 3:17 am

    It turned out that the problem was in an old enough version of the Redis module. On another server the code I’ve posted worked as expected.

    The versions in question are 1.904 (works) and 1.2001 (does not).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I develop for iOS and use XCode 3.2.5, GCC 4.2. UPD This code works:
Where is Python's sys.path initialized from? UPD : Python is adding some paths before
I'm trying to make work the example from hibernate reference. I've got simple table
I'm trying to make a call to a DLL function (via GetProcAddress etc) from
I'm trying to load data from xml-file with TinyXML (c++). int height = rootElem->attrib<int>(height,
In my VC++ application I have an embedded browser (MSHTML). It works fine and
I have some C++ code written in C-style. For some reasons I can't use
Tried to use the following code, but it doesn't work properly: // download the
i have a problem in asp.net web-application. I'm using UrlRewritingNet.UrlRewrite and it's works fine
I've got a Python app, that uses urllib.urlopen . It works fine on dev_appserver.py

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.