Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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.


Comment on Re: A Game Using TCP Sockets
Select or Download Code
Re^2: A Game Using TCP Sockets
by choroba (Abbot) 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
Node Status?
node history
Node Type: note [id://1058121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-09-16 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (157 votes), past polls