Re: Match and remove an element in an array

2002-03-15 Thread Andre` Niel Cameron
Here is my way: if(scalar(grep(/^$object$/, @Equipped))) { @Equipped= grep { $_ ne $object } @Equipped;} It searches the array @Equipped for an objext if it finds it then removes it be searching threw the whole array and skiping the object as it assigns it to the array. Hope this helps. Regard

Re: CGI Form Submit Buttons

2002-02-06 Thread Andre` Niel Cameron
But what about cases of having two image buttons? Does the one that is clicked default as submit or does this require java script? Regards, André C. Technical Support Ô¿Ô¬ - Visit our support manual at http://supportman

Re: CGI Form Submit Buttons

2002-02-06 Thread Andre` Niel Cameron
> > I personaly have had trouble with this. what exactly tells it that it is the submit button and not just a button? Andre -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [CGI] Hide Source?

2001-12-20 Thread Andre` Niel Cameron
please let me know how:) Regards, Andre` C. Technical Support ԿԬ - Visit our support manual at http://supportmanual.com/ - Original Message - From: "Tommy Butler" <[EMAIL PROTECTED]> To: "Andre`

Hide Source?

2001-12-20 Thread Andre` Niel Cameron
HI, I needs some tips and or place to find code to hide my source code. not just encrypt the perl scripts but to disable the view source so people can not see my query_string calls and html source. Does ANYONE have a solution? Regards, Andre` C. Technical Support ԿԬ ---

Re: scripts help

2001-12-17 Thread Andre` Niel Cameron
..exe files are win32 binaries. I am not a perl guru but I am C/C++;) I think you would need to compile it as under linux the OS does not care what a file extension is(Most the time) But windows considers things like .exe and .com to be compiled binaries. Regards, Andre` C. Technical Support ԿԬ

Re: [CGI] Interesting Chop question.

2001-12-12 Thread Andre` Niel Cameron
http://supportmanual.com/ - Original Message - From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> To: "Andre` Niel Cameron" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 12, 2001 11:38 AM Subje

Interesting Chop question.

2001-12-12 Thread Andre` Niel Cameron
Hi, I have a pain in the butt array that SOMETIMES has a CR at the end and sometimes does not. Can anyone think of a way to test to see if the \n is there and if it is then chop else no chop? Cause if I just use chop then it starts chopping off letters sometimes... Regards, Andre` C. Technical

Array Help Please:)

2001-12-11 Thread Andre` Niel Cameron
Hi, I have a prob:) I need to search threw an array and remove an item based on its name. I was thinking about maybie a for each loop but I am not sure how to go about it. Heres what I need to do: say $object= sword; I have an array @AllObjects('beer', 'nuts', 'sword', 'and more stuff') Now s

Array Problem.

2001-12-10 Thread Andre` Niel Cameron
Hi, I have a prob:) I need to search threw an array and remove an item based on its name. I was thinking about maybie a for each loop but I am not sure how to go about it. Heres what I need to do: say $object= sword; I have an array @AllObjects('beer', 'nuts', 'sword', 'and more stuff') Now s

Help with Debug Please.

2001-12-06 Thread Andre` Niel Cameron
Hey I got an error on a script and went to run it from the command line to figure out what i forgot but to my surprise I got this: (offline mode: enter name=value pairs on standard input) What the he$$ is it and how can I get by it to run my script from the command line? Regards, Andre` C. Techn

Re: Generating static HTML Pages

2001-12-05 Thread Andre` Niel Cameron
Sure, Something like this: open(DAT, ">index.html" || die ("Cant Open the file"); print DAT "PAGE"; print DAT "Some more stuff here"; close DAT; Regards, Andre` C. Technical Support Ô¿Ô¬ - Visit our support manual at h

Need help with debuging.

2001-12-04 Thread Andre` Niel Cameron
Hi, Ok we have a new type of RH server here and I need to get one of our scripts to work on the box. It works odly enough on our other servers and SOME of the new servers. On some servers the setup script works fine but when you goto the store (This is a shoping cart) it seams to hang. I tried

Re: Program dilema

2001-11-30 Thread Andre` Niel Cameron
es it work differently? Regards, Andre` C. Technical Support ԿԬ - Visit our support manual at http://supportmanual.com/ - Original Message - From: "Curtis Poe" <[EMAIL PROTECTED]> To: "Andre` Niel Cameron" <[EMAIL PROTECTED]>;

Program dilema

2001-11-30 Thread Andre` Niel Cameron
Hi, I am having a bit of a problem. Does anyone have any idea how I could have a variable and see if the value of that variable is also located in an array and hash? IE: $myvar= 6 @myarray= ("4", "7", 10", 6") if (6 exists in @myarray) ( dothis} else{ dothis} andre Regards, Andre` C. Techni

Re: Cache Question

2001-11-27 Thread Andre` Niel Cameron
you want to put in the SSIs. HTML or are you trying to include Perl? > > joel > > -Original Message- > From: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] > Sent: 27 November 2001 20:40 > To: Balaj, Geraldine; yahoo; CGI Beginners > Subject: Re: Cache Question

Re: Cache Question

2001-11-27 Thread Andre` Niel Cameron
, Geraldine To: 'Andre` Niel Cameron' ; yahoo ; CGI Beginners Sent: Tuesday, November 27, 2001 3:22 PM Subject: RE: Cache Question Had this same problem about a year ago. When your script runs - it renders the page - one load. Placing SSIs in your Token Print "chun

Re: Cache Question

2001-11-27 Thread Andre` Niel Cameron
Question > Andre, > are saying that you are trying to write out SSIs from perl but the SSI is > not being parsed? > > joel > > -Original Message- > From: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] > Sent: 27 November 2001 19:54 > To: [EMAIL PROTECTED];

Re: Cache Question

2001-11-27 Thread Andre` Niel Cameron
To: "Andre` Niel Cameron" <[EMAIL PROTECTED]>; "CGI Beginners" <[EMAIL PROTECTED]> Sent: Tuesday, November 27, 2001 2:03 PM Subject: Re: Cache Question > --- Andre` Niel Cameron <[EMAIL PROTECTED]> wrote: > > When you use ssi what is the conent type is i

Re: Cache Question

2001-11-27 Thread Andre` Niel Cameron
When you use ssi what is the conent type is it still text/html? Andre -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cache Question

2001-11-27 Thread Andre` Niel Cameron
Hi, I use a form to manipulate movement in a CGI game I am working on. The problem is it appears that the browser is caching the page so they directions the player can move do not appear to be updateing. Is there a way to not allow the browser to cache a page or force a refresh? as alwasy you

Quick question

2001-11-22 Thread Andre` Niel Cameron
Hi, Anyone know how to get a whole random number in perl? rand(18) always gives decimals I need just like 12 or 7 anyone know? Regards, Andre` C. Technical Support ԿԬ - Visit our support manual at http://supportmanual.

Cookie check problem

2001-11-22 Thread Andre` Niel Cameron
I hate to ask but why isnt this thing sending me to the frames page if I already have the cookie? if ($ENV{'QUERY_STRING'} eq "") { &Get_Cookie; if (exists($cookie{'SessionID'})) { &MainFrames_Page; } else { &login_page; } } R

Re: Cookie Help PLEASE!

2001-11-18 Thread Andre` Niel Cameron
> if ( defined $cookie ) { > print $q->redirect("/gamepage.htm"); > } else { > print "Location: /index.htm\n\n"; > } > This did not work anyone else have any ideas? > untested. > > -Original Message- > From: "Andre` Niel Camer

Hi???

2001-11-17 Thread Andre` Niel Cameron
Is there anyone on this list? Regards, Andre` C. Technical Support ԿԬ - Visit our support manual at http://supportmanual.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Cookie Help PLEASE!

2001-11-17 Thread Andre` Niel Cameron
Ok, I finaly joined a perl list as I have been banging hy head against the wall for 3 days trying to get this to work! I would really appreciate any help:) Heres is the problem: I have a script that after you "Login" it should give you a cookie and then load the game start page. Well problem i