Hi folks. I'm a Perl n00b, and I have a long ways to go yet.
However, I was hoping someone looking down from the top could share
some wisdom with me about the viability of Perl for 3D worlds.
Obviously I'm not looking for someone to tell me *how* to do this, I'm
just asking how good the result typ
On Fri, Dec 24, 2010 at 2:56 AM, U.N. wrote:
> Anyways... Has anyone ever done something similar or close to 3D
> environments with Perl on modern x86 hardware? 2D environments with
> lots of complex elements in constant interaction?
I think the best example of graphics and games in Perl is sti
Hello Chris,
The variables aren't /initialized/ before they're used in this code..
So, something like print $out actually won't even know what the value of
$out is in the first place, let alone write in it.
You mentionned "processed.txt", but it was in a comment, not in the
actual code.. And
On 10-12-24 09:49 AM, Jugurtha Hadjar wrote:
my @data =0;
my @fields =0;
my @val=0;
my @data = ();
my @fields = ();
my @val= ();
--
Just my 0.0002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and commu
At 8:55 PM -0700 12/23/10, Chris Stinemetz wrote:
Jim,
Thank you for your help!
My perl program contains the following code. I am getting errors
when I run the program. Any insight is greatly appreciated.
I gave you some program fragments to help you get started. You are
going to have to u
> "JH" == Jugurtha Hadjar writes:
JH> I rewrote your code and at the very beginning, just before any
JH> variable was /used/ [i.e, just after "use strict", I added
this is very overkill and in some cases wrong. in general declare
variable just when they are needed. when i see a long list
Okay I appreciate everyones help. I feel like i am getting closer. Below is my
current code and error I get.
Thank you all!
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4
5 # Intialization begins
6
7 my $cell='';
8 my $filename='';
9 my $in ='';
10 m
There's a SDL Perl book in the works[0], so that's a starting point, if
anything. Also, it's not really what you ask, but check out this
presentation of Lacuna Expanse[1]'s architecture.
Unfortunately, those are all the games I know made in Perl.
Brian.
[0] https://github.com/PerlGameDev/SDL_Man
> "CS" == Chris Stinemetz writes:
CS> 5 # Intialization begins
as i said elsewhere, don't declare vars before you need them. it is
noisy and in many cases redundant.
CS> 6
CS> 10 my $line='';
CS> 21 my @val= (split /:/, $line);
what do you think that line does? $
At 10:44 AM -0700 12/24/10, Chris Stinemetz wrote:
Okay I appreciate everyones help. I feel like i am getting closer.
Below is my current code and error I get.
Thank you all!
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4
5 # Intialization begins
6
7 my $cell='';
8
On 24 December 2010 14:49, Jugurtha Hadjar wrote:
> I rewrote your code and at the very beginning, just before any variable was
> /used/ [i.e, just after "use strict", I added
>
>
> # Intialization begins
>
> my $cell ='';
> my $filename ='';
If you're going to an empty value (which is
> "JD" == John Delacour writes:
JD> On 24 December 2010 14:49, Jugurtha Hadjar
wrote:
>> I rewrote your code and at the very beginning, just before any variable was
>> /used/ [i.e, just after "use strict", I added
>>
>>
>> # Intialization begins
>>
>> my $cell ='';
On 10-12-24 05:10 PM, John Delacour wrote:
If you're going to an empty value (which is not necessary)
Don't assume it's not necessary. At one time, mod_perl did not
re-initialize the data space; it just reused it so you would get the
previous values in your variables. Always initialize your
13 matches
Mail list logo