tinman spent a few years mucking around industry before going back to school for a Masters. Currently not enjoying the weather in North England..
He wrote Perl that looked suspiciously like C code in 1998, while working as an intern, and has been trying to cure that bad habit ever since.
I was trying to wrap my head around a small Tk UI I was whipping up for a project. This is a RPC app, but I was just doing the UI part inbetween writing a few documents.
On my Windows machines, I have ActivePerl 5.8.2 and 5.8.6 respectively. I tried the following:
print "You pressed $distroNames[$down->] \n";
and it passed. No warnings, no errors. I was running with -w and use strict as usual.
The server-daemon was being written by someone else. He was working on Debian Sarge; with a packaged Perl 5.8.4. On that machine, the code above fails. Can't use a string literal..
Enclosing the inner arrayref dereference in single quotes fixes it in Debian. Either way, my ActivePerl installs didn't care. What gives?
Also, an aside but I can't believe I hadn't discovered Frontier::RPC before I was shown its' many wonders in that application. Now I'm left wondering how many times I reinvented that particular wheel instead of just checking CPAN.