|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^2: When you first encountered Perl, which feature amazed you the most?by afoken (Chancellor) |
| on Mar 04, 2025 at 19:20 UTC ( [id://11164140]=note: print w/replies, xml ) | Need Help?? |
|
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
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Past Polls
|
|
||||||||||||||||||||||||||||||||||