>>>>> "JP" == Jeff Peng <jeffp...@netzero.net> writes:
JP> Uri Guttman: >> >> and i bet you really don't need this but you just think you do. JP> why not? JP> I did have used object clone, like a ruby one: huh?? >> class Myclass >> end JP> => nil >> x=Myclass.new JP> => #<Myclass:0xb7c4bca8> >> y=x.clone JP> => #<Myclass:0xb7c47194> >> x.object_id JP> => -605921708 >> y.object_id JP> => -605931318 JP> The object was cloned, they both got different object IDs. that is ruby, not perl. not all perl classes offer clone methods and there is no possible generic way to clone a given perl object since it can be implemented in so many different and opaque ways. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/