Need help?

Contact SCC

Email scicomp
Join #scicomp on Slack

Help us help you

Follow these guidelines when submitting a help request.

An ObjectMethod is a method that must be called relative to a previous constructed object of the class type. For example:

package Telecoms

18 Dec 2024 - 14:20 | Version 1 |

ClassMethod new()

ObjectMethod phone( $who )

must be called something like this

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
Copyright © Simons Foundation. All material on this collaboration platform is the property of the Simons Foundation.
This website is using cookies. More info. That's Fine