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

  • Home
  • SEARCH
  • 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 6803517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:21:15+00:00 2026-05-26T19:21:15+00:00

This is a sub routine that I copied from CPAN. It works fine as

  • 0

This is a sub routine that I copied from CPAN. It works fine as it is when I run it from the command line. I have a similar function from Net::Traceroute that also works fine AND allows me to return the string with a SOAP call. The problem comes when I try to return the ~string(?) from the function below with a SOAP call.

sub tr {
    use Net::Traceroute::PurePerl;
    my $t = new Net::Traceroute::PurePerl(
         backend        => 'PurePerl', # this optional
         host           => 'www.whatever.com',
         debug          => 0,
         max_ttl        => 30,
         query_timeout  => 2,
         packetlen      => 40,
         protocol       => 'udp', # Or icmp
    );
    $t->traceroute; 

    return $t;
}

The output looks like a string except the last part of the string looks like this:

28 * * *
29 * * *
30 * * *
Net::Traceroute::PurePerl=HASH(0x11fa6bf0)

I don’t know what is different about Net::Traceroute::PurePerl that won’t allow me to return the value with SOAP since the Net::Traceroute version does allow me to return it with SOAP.

Edit:
To debug, I just edited the last lines like this:

   #$t->traceroute; 

    #return $t;
    $foo = "test";
    return $foo;

Note that this returns “test” throught the SOAP call. However, if I uncomment $t->traceroute;, the SOAP call breaks. The client side gets nothing back through the SOAP call.

  • 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-26T19:21:15+00:00Added an answer on May 26, 2026 at 7:21 pm

    Anytime you see something that looks like “HASH(0x11fa6bf0)”, try using Data::Dumper to show you what it is.

    (Assuming your hashref is in $t)

    use Data::Dumper;
    print Dumper $t;

    (Data::Printer will give you an even more useful look at what’s inside your reference, particularly if you’ve got coderefs inside it, but the advantage of Data::Dumper is that it’s been in the Perl core for a long time, so you should always have it available…)

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

Sidebar

Related Questions

Right now, I have code that looks something like this: Private Sub ShowReport(ByVal reportName
I have a program that's resident in flash and will run from flash. Early
I have a sub routine that creates an array of IP addresses, however I
How do you translate this perl subroutine into a PHP function? sub disagreement {
Many beginning programmers write code like this: sub copy_file ($$) { my $from =
I have started writing a Macro in Visual Studio 2005 like this: Public Sub
There's some code in our project that looks a bit like this: Private Sub
I have a method written in VB.NET. It looks like this: Shared Sub SomeMethod(ByVal
I have an access form that creates a ppt file (set of slides) from
I have input bytes from ffmpeg. I'd like to send this output to several

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.