I have several pm files like so
xST.pm
xHeader.pm
x276.pm
xSeparator.pm
xHeader.pm includes (uses) xST.pm
x276.pm includes (uses) xHeader.pm
x276.pm includes (uses) xSeparator.pm
I create a new instance of a class like so:
my $new = new X_276.
The complete class looks like this
$new->header->st->function();
What I am trying to do is set a variable at this level
$new->SegmentTerminator("~".
But I want this value to be seen by
$new->$header->st->function();
Any suggestions on how I can do this? If this makes sense?
xST.pm
xHeader.pm
x276.pm
xSeparator.pm
xHeader.pm includes (uses) xST.pm
x276.pm includes (uses) xHeader.pm
x276.pm includes (uses) xSeparator.pm
I create a new instance of a class like so:
my $new = new X_276.
The complete class looks like this
$new->header->st->function();
What I am trying to do is set a variable at this level
$new->SegmentTerminator("~".
But I want this value to be seen by
$new->$header->st->function();
Any suggestions on how I can do this? If this makes sense?