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

2572Re: [soaplite] turn off the warning "as_string was redefined"

Expand Messages
  • Randy J. Ray
    May 1, 2003
      On Thu, May 01, 2003 at 04:38:47PM +0900, Masayoshi Sekimura wrote:
      > Hi all,
      >
      > I know a way of to create my own as_string is:
      >
      > package My::Deserializer;
      > sub as_string {
      > shift;
      > require Jcode;
      > return Jcode->new(shift, 'utf8')->euc;
      > }
      >
      > *SOAP::XMLSchema1999::Deserializer::as_string =
      > \&My::Deserializer::as_string;
      >
      > but it cause the warning as follows:
      >
      > "Subroutine SOAP::XMLSchema1999::Deserializer::as_string redefined"

      Are you running with "-w" (warning enabled)? If so, you can wrap the above
      assignment in a block and temporarily turn off warnings:

      {
      local $^W = 0;
      *SOAP::XMLSchema1999::Deserializer::as_string =
      \&My::Deserializer::as_string;
      }

      Randy
      --
      rjray@... Linux: Because rebooting is for adding new hardware.

      Any spammers auto-extracting addresses from this message will definitely want
      to include uce@... and report@...
    • Show all 3 messages in this topic