in reply to Re: the long way round
in thread the long way round

It can be translated as "print items one, zero, minus one and minus two of the array ['another', 'just', 'hacker' 'perl'].

The only real obfu is that instead of using the number one, I've used "zero minus minus-one" -- and instead of using zero I used the special variable $[ which is zero unless you've changed it to something else (and as it says in the documentation "don't do that"!).

It looks weird, just because there are those [ brackets next to each other. I was experimenting with what did happen if you changed $[ to something other than zero (can it be changed to a negative number?), and also with what was allowed in

for( n .. m )
type loops (can they decrease or only increase?).



“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D