he arguments of a function are a list (@_) and can be accessed like the elments of an array [...] I have not seen this in any other language.
Available in Javascript for years (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments).
I was very sure it was available since day 1, but that's not correct. Almost all browser support it, but not all do so in their ancient versions: https://caniuse.com/mdn-javascript_functions_arguments. See also https://caniuse.com/mdn-javascript_builtins_function_apply_generic_arrays_as_arguments.
Alexander
In reply to Re^2: When you first encountered Perl, which feature amazed you the most?
by afoken
in thread When you first encountered Perl, which feature amazed you the most?
by talexb
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |