in reply to Length of Array Passed as Reference
Change:
my $ref_array = @_;
To:
my ($ref_array) = @_;
You are assigning the length of @_ to $ref_array, not the first element.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Length of Array Passed as Reference
by Leudwinus (Scribe) on Dec 10, 2020 at 02:20 UTC |