my $mobile = new Telecoms(); $mobile->phone( "home" );or you can pass the object in as a parameter if you need to:
Telecoms::phone( $mobile, "home" );Related Topics: ClassMethod, StaticMethod, DeveloperDocumentationCategory
|
“Gardening is a kind of disease. It infects you, you cannot escape it. When you go visiting, your eyes rove about the garden; you interrupt the serious cocktail drinking because of an irresistible impulse to get up and pull a weed.” ~ Lewis Gannit |