matthewpersico
my $aref = [1,2,[3,4,5,[6,7] ] ];
You can do print $aref->[2][3][1];
which yields: 7
Or my @array = (1,2,[3,4,5,[6,7] ] );
print $array[2][3][1];
7 use v5.36;
will enable the feature.'array' is the variable.
'@array' gives me the list in 'array'.
'$array[1]' gives me the scalar ($) value at array[1].
`@array[3..7]` gives me the list (@) of values at array indexes 3-7, inclusive on both sides. (Why does Python use open ended ranges? <facepalm>) (Why is Python's slicing syntax an inflexible loop? <facepalm again>)
`@array[1]`, by the way gives me the list of values at array index 1, which is the same as `$array[1]`
I have a two word answer: Intellectual Property. Not everyone is an accomplished Open Source publisher, nor should that be a requirement for employment. So what existing project do those candidates point the interviewer at? Someone else's IP? And then the hiring company is obligated in self-defense to make sure that it's not someone else's IP, lest it end up in someone's hard disk accidentally and get discovered in some otherwise unrelated audit? No. Thank. You. Keep your own code to yourself.
Now, you might point out your own code with some URLs and they may take a look at it. But that's not the same as making it part of the interview process.
If ever a collection of words thrown together has outpunched its weight, it is this! Brilliant! And I will be using it often, with reference to thrower123 on ycombinator. Just. Ducking. Brilliant.
Being born in New York (City), still living close and working there, I have to smile at the distinction between "American inner city" and "parts of New York". It just reinforces our attitude that there is New York and then there is everywhere else!
Thank you!