At 11/9/00 8:52:00 AM, you wrote:
>
>Joel,
>
>[1] Yes, your post is OT. But you knew that. Did you know that there
>is now an ActiveState mailing list for unixish systems? Check it out.
No I wasn't. Thanks for pointing this out. When I first joined this mailing list,
there were only a few ma
I've written a routine using GD to make a hex map for a game I'm writing.
I build the image object and add a series of polygons to it. Works fine
even to a large size. I then needed to add text to each hex, the x and y
coordinates to each. When I make a large scale map that worked fine withou
My apologies. I shouldn't try to ask questions when I haven't had enough
sleep to phrase them properly. After rereading my question, I thought I
should clarify a few things.
> I've written a routine using GD to make a hex map for a game I'm writing.
>I build the image object and add a series
Gotta question for the group. I've actually figured my problem before
posting to the group, but I'm looking for confirmation or ideas to see if
I'm still doing right or could do it better.
I found information about building modules and even a little about
sub-modules but not really alot
Win 98
Perl 5.6 Activestate Build 623
I'm runing into a prototype problem. I've prototyped a function to take no
arguments like this:
sub Buildmap() {
}
and calling it just like this:
Buildmap;
And I get the warning:
Prototype mismatch: sub Sfb::buildmap vs () at
/mydocu~1/mysite/cgi-bin
> I want to thank all who responded to my last message it was very helpful.
>But now i have another PERL math question. Is there a function that gives
>the tangent of an angle?? help..
this subroutine will give you the answer:
sub tan { sin($_[0]) / cos($_[0]) }
Hope that helps,
Joel
__
>I would like a regex to replace leading zeroes in a number. For example, a
>ten-digit number string has 5 leading (leftmost) zeroes. I would like to
>replace each leading zero with a space, i.e. 5 leading zeroes with 5
leading
>spaces. I tried s/^0+/ /g but it replaced all leading zeroes with on
>I would like a regex to replace leading zeroes in a number. For example, a
>ten-digit number string has 5 leading (leftmost) zeroes. I would like to
>replace each leading zero with a space, i.e. 5 leading zeroes with 5
leading
>spaces. I tried s/^0+/ /g but it replaced all leading zeroes with on