in reply to Re^2: sub BEGIN
in thread sub BEGIN

Almost certainly unnecessary. It depends on when $urnMap is used. If that's your whole file, then it is indeed unnecessary. I wouldn't say bad style.

Replies are listed 'Best First'.
Re^4: sub BEGIN
by Anonymous Monk on May 10, 2010 at 17:23 UTC
    just one more question if I may
    where is SOAP::Deserializer::typecast being defined?

    I searched on cpan and was not able to find them.

      Line -11 to -2 of the code you posted.

      ...which replaces the definition found in SOAP/Lite.pm

      Update: Added second line.

        ...which replaces the definition found in SOAP/Lite.pm

        Hrm, your statement seems to assume an order of execution other than that manifested by the posted code (either that or SOAP::Lite defines its version of SOAP::Deserializer::typecast() in some weird way (which doesn't appear to be the case).

        So that would seem to be a bug in the posted code as well (which makes me wonder if I'm missing something, but if so I still don't see it).

        - tye