in reply to characterstics of private in perl
The "_get_data()" sub can be called by various methods defined elsewhere in this object's package, and when it's called, the content of $object_data will be returned. But that scalar variable is out of scope, hence inaccessible, for everything but "_get_data()".{ my $object_data; sub _get_data { return $object_data; } }
|
|---|