Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: A Game Using TCP Sockets

by atcroft (Abbot)
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 (Bishop) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2018-02-19 20:12 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (266 votes). Check out past polls.