S
sln
According to the doc's it enables the callee to see @_ of
the caller. Is there anything more insidius about this or is that
the extent of & ?
Example:
sub BeginSegStr {return ${&BeginSeg};}
sub BeginSeg
{
# return lvref of begining segment
my $str = "";
return \$str unless (defined $_[1] && ref($_[1]) eq 'SCALAR');
return \substr ${$_[1]}, 0, $_[0]->{'offset'};
}
sln
the caller. Is there anything more insidius about this or is that
the extent of & ?
Example:
sub BeginSegStr {return ${&BeginSeg};}
sub BeginSeg
{
# return lvref of begining segment
my $str = "";
return \$str unless (defined $_[1] && ref($_[1]) eq 'SCALAR');
return \substr ${$_[1]}, 0, $_[0]->{'offset'};
}
sln