in reply to Re: When you first encountered Perl, which feature amazed you the most?
in thread When you first encountered Perl, which feature amazed you the most?
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: When you first encountered Perl, which feature amazed you the most?
by LanX (Saint) on Mar 28, 2025 at 18:05 UTC |