in reply to A Game Using TCP Sockets

I saw the comments on this thread, and decided to pull a copy of the repo and see what it looked like. I launched the server on Win7 under Cygwin. My first thought was that it would be nice to be able to use Getopt::Long (or another similar module) to pass in the appropriate values. When starting the server, I hit enter to select the default values, but received an uninitialized value message for line 35 ($planetNum ?). I think the message may relate a missing 'q' operator:     $planetNum = 10 if $planetNum = ();-did you mean q() instead?

Still looking through the code, but hope the remarks above prove helpful.

Update: 2013-10-14 Corrected line number of affected code.

Replies are listed 'Best First'.
Re^2: A Game Using TCP Sockets
by choroba (Cardinal) on Oct 14, 2013 at 20:16 UTC
    Thanks for the notice. The "uninitialized message" is just a warning, in fact
    print q()eq();

    outputs 1, but your explanation is correct - it should have been q(). (Also note = versus eq).

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ