Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

tinman (2063)

tinman
  (email not shown publicly)

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.

Journal of tinman (2063)

Saturday September 17, 2005
11:13 AM

voodoo

[ #26760 ]

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->[0]] \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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • If you use Frontier::RPC, you might also be interested in RPC::XML [cpan.org], which is a more modern (maintained) implementation.

    -Dom

    • I am interested indeed. I was already planning on a refactoring of some of my earlier code to use a module instead of my own implementation.

      Thanks for the pointer.