Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: A Game Using TCP Sockets

by atcroft (Monsignor)
on Oct 14, 2013 at 03:55 UTC ( #1058121=note: print w/replies, xml ) Need Help??

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 (Chancellor) 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).

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058121]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2016-10-20 22:56 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (283 votes). Check out past polls.