http://www.perlmonks.org?node_id=1016307


in reply to Re: XML Parsing
in thread XML Parsing

This way of invoking the constructor can be problematic:
my $xml_obj = new XML::Smart( $xml ) ;
See the section "Indirect Object Syntax" in Invoking Class Methods

Replies are listed 'Best First'.
Re^3: XML Parsing
by choroba (Cardinal) on Jan 31, 2013 at 12:31 UTC
    Do you really use
    'XML::Smart'->new
    or
    XML::Smart::->new
    or
    new XML::Smart::
    ?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      I'm still using
      Foo::Bar->new
      Old habits don't go easily ;) (though I always name Modules with an initial upper case character, and functions with a lower case character, and haven't had any problems with this yet).