in reply to Object Oriented Perl - very basic guide
The way perl 'does' objects, is that it treats each object as a hash.That's not the full story. In Perl, any reference can be blessed. Hashes are the easiest thing to make into an object, but people sometimes bless array references, too (they are a bit faster in tight loops). You can even bless a scalar (check XML::LibXML) or code reference...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Object Oriented Perl - very basic guide
by morgon (Priest) on May 15, 2014 at 15:27 UTC | |
by choroba (Cardinal) on May 15, 2014 at 15:36 UTC | |
by muba (Priest) on May 15, 2014 at 15:40 UTC |