M
Mihail
Hello,
again about sub{} behavior and "pass-by-call"/"pass-by-value".
Is it clean and recommended to use local @_ ?
sub {
local @_ = @_;
....
}
I do not like the way of fantasy arrays:
sub {
my @pass_by_value_workaround = @_;
....
}
It is ugly. But i still don't see clear advice how to do
"call-by-value"? And "local" things seems to change from
version to version.
Thank you.
Mihail
again about sub{} behavior and "pass-by-call"/"pass-by-value".
Is it clean and recommended to use local @_ ?
sub {
local @_ = @_;
....
}
I do not like the way of fantasy arrays:
sub {
my @pass_by_value_workaround = @_;
....
}
It is ugly. But i still don't see clear advice how to do
"call-by-value"? And "local" things seems to change from
version to version.
Thank you.
Mihail