Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: A Game Using TCP Sockets

by atcroft (Abbot)
on Oct 14, 2013 at 03:55 UTC ( [id://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 (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).

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found