Loading ...
Sorry, an error occurred while loading the content.

documentation flaw for setting trace options

Expand Messages
  • Jo Rhett
    The documentation (pod) for trace options indicates that the follow is possible: # Send output to a function SOAP::Lite- import( +trace = method = transport
    Message 1 of 1 , Mar 25, 2010
    • 0 Attachment
      The documentation (pod) for trace options indicates that the follow is possible:

      # Send output to a function
      SOAP::Lite->import(
      +trace => method => transport => \&doDebug
      );

      # Send all output except for method and transport
      SOAP::Lite->import(
      +trace => all => -transport => -method
      );

      Both of these seem to work as documented. However, if you combine both together you get failures.
      SOAP::Lite->import(
      +trace => all => -transport => -method => -objects => \&doDebug
      );

      Can't locate class method "-transport" via package "SOAP::Lite\" at line 36
      Compilation failed in require at ./tester.pl line 5.

      Both of these seem to work as documented. However, if you combine both together you get failures.
      SOAP::Lite->import(
      +trace => all => \&doDebug
      => -transport => -method => -objects
      );

      Can't locate class method "-method" via package "SOAP::Lite\" at line 36
      Compilation failed in require at ./tester.pl line 5.

      Is this a documentation bug, or ...?

      --
      Jo Rhett
      Net Consonance : consonant endings by net philanthropy, open source and other randomness
    Your message has been successfully submitted and would be delivered to recipients shortly.