Not sure if this is the forum for this, but it's one of those little things that makes me love Perl. I had written a script to make a task easier for a group of project managers, and it's on the file server for them to play with. Project Managers being dirty, they could move the script or change the name at whim. It requires a file to be configured for their specific task, and I wanted the default config file (if not specified) to be <scriptname>.cfg, without the .pl extension. What makes me stare at this line of code and get watery-eyed is that I'm using a function in both scalar and list context, in a temporally unsound way. Split is being referenced in a literal context by the @_ default array created by treating split in a list context.
This hurts my brain. =)