How do I make two different web pages come up from one CGI?

2005-08-03 Thread Luinrandir
The following does not work #!/usr/bin/perl use strict; print qq|Content-type: text/html\n\n|; print qq|Seneschals Report|; print qq|1|; print qq||; print qq|Content-type: text/html\n\n|; print qq|Seneschals Report|; print qq|2|; print qq||; exit; -- To unsubscribe, e-mail: [EMAIL PROT

Re: How do I make two different web pages come up from one CGI?

2005-08-04 Thread Luinrandir
I want to create two web pages in two different windows from one CGI. Thanks for your input. - Original Message - From: "Chris Devers" <[EMAIL PROTECTED]> To: "Luinrandir" <[EMAIL PROTECTED]> Cc: "Perl Beginners - CGI List" Sent: Wednesday, Aug

Yet another package problem

2005-09-16 Thread Luinrandir
(%Player,$KEY,$VAL,$Data,@Data,$InputData,%InputData,@InputData,$Item,$FormI nput,$FN); my ($HTML); ######## #$STDIN=; $FormInput="Name=Luinrandir&Home=Avalon&Location=Inn&Action=Work"; #templine ##

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Luinrandir Hernsen
Real information to your answer.. I use these... CGI Programming on the world wide web / O'Reilly CGI by example / Niles & Dwight CGI Programming / Hamilton www.MySQL.com If you are new to perl.. avoid the O'Reilly books... there are, IMHO, written by PhD's for PhD's the "Visual" books ," R

cgi question

2004-06-18 Thread Luinrandir Hernsen
I am writing a perl cgi online game. I would like to load the graphic.gif's to the players computer and then call them from there.. ideas? JS? perl? something else? can it be done at all? where do I start looking? thnaks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Do you use OptiPerl???

2004-06-22 Thread Luinrandir Hernsen
Any one here use OptiPerl to make CGI?? I have questions if you do. Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Need to check file

2004-10-14 Thread Luinrandir Hernsen
I have successfully checked a file in the same dir , my question is do I have to chdir when doing a if (-e filename.dat) and then change back to the cgi-bin dir? www.mysite.com/cgi-bin is where my perl files are. www.mysite.com/html is where the file I want to check is. chdir "/html"; if (-e file

Re: Need to check file

2004-10-15 Thread Luinrandir Hernsen
sigh.. so sorry for not being more exact... I did use the quotes if (-e 'filename.dat') I guess I will have to find out the full path... Thanks Lou - Original Message - From: "Bee" <[EMAIL PROTECTED]> To: "Luinrandir Hernsen" <[EMAIL PROTECTE

Files -read write - an epiphany and question

2004-10-18 Thread Luinrandir Hernsen
I have been studying W/R to files... W/R to a string and to an array. and I must say I think I have it. I can read a file into an array IF i wrote the file using "\n" between vars, yes and I can read the entire file into a string (to later be split) by using delimiters like ","yes??? I

screen size...

2004-11-04 Thread Luinrandir Hernsen
It there a way to get the screen size info using perl? Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: screen size...

2004-11-05 Thread Luinrandir Hernsen
do it.. I really don't know JS : ( just guessing... BTW .. thanks for your help! Lou. - Original Message - From: "Chasecreek Systemhouse" <[EMAIL PROTECTED]> To: "Luinrandir Hernsen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECT

Read Write to file .. need help

2005-01-14 Thread Luinrandir Hernsen
I need to read and write to a file before allowing the anyone else to read or write. I found this on the web.. but it does not work...maybe its my version of perl? http://htmlfixit.com/cgi-tutes/tutorial_Perl_Primer_011_File_manipulation_with_Perl.php File Operation modes: open: <$file&path Re

Need Perl DLL's

2005-03-27 Thread Luinrandir-insight
Hallo I am editing perl in Optiperl and it says I need the Perl DLL's where do I find them? Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

hide source code 2 - online game

2005-06-19 Thread Luinrandir Insight
Speak of hiding code my web host's cgi-bin is password protected. is this enough to hide my perl-cgi code that makes the HTML pages? the player files are in the same dir as the cgi code. I have an online game, so I don't want people to cheat. now I am hearing that PHP is the way to go for maximum

trying to secure text input.

2002-01-28 Thread Luinrandir Hernson
Below is the code i'm using to filter out non alphanumeric charecters... however when i type ?!$BOB yeilds this: -_3f_21_24bob- The ?!$ should be stripped away and come back empty, not _3f_21_24 ANY ideas as to what I'm doing wrong??? I'm asking for an email address. my $eaddress = ""; rea

Please point me to a language (perl I hope)

2002-02-01 Thread Luinrandir Hernson
Sorry if this is off topic, but I really don't know who else to ask. Heres what I want to do.. maybe you would be so kind as to tell me what language this can best be done in. I'm just learning perl and know HTML. within frames (or a table)... I would like to put a large gif in the backround an

wildcard for unix????

2002-02-03 Thread Luinrandir Hernson
What is the global wildcard for unix? I'm trying to chmod 755 all files in a dir... possible? chmod 755 *.* ? Thanks LH

Images in memory

2003-03-11 Thread Luinrandir Hernsen
I am writing in Perl, to create a web page. The CGI calls on itself repeatedly as you move on the map. I need to preload some small images in memory of the players computer. Javascript has a way of doing this, but since the cgi calls on itself, if I put the code in my cgi the images would only be r

screen size question

2003-03-27 Thread Luinrandir Hernsen
how do I find the current screen size of someone running my perl program? many thanks Lou

question about perl.

2003-03-27 Thread Luinrandir Hernsen
How do I run another perl program from within another perl program? if (x=0) { perl_ program_ 1.pl } else { perl_program_2 } exit;

Re: screen size question

2003-03-27 Thread Luinrandir Hernsen
day, March 27, 2003 3:16 PM Subject: Re: screen size question > system("stty -a") should get you what you want I don't know if perl has > anything 'built-in'. > > > -JW > > > --- Luinrandir Hernsen <[EMAIL PROTECTED]> wrote: > > how do I

self refreshing web page question

2003-04-02 Thread Luinrandir Hernsen
I want to create a web page that calls on another web page and automatically refresh the other webpage every minute. can I do this in JS alone? Perl alone? or do I have to use both? Thanks for the help, I just need to be pointed in a direction... Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED

Any one who knows Formmail by Matts Scripts

2003-04-04 Thread Luinrandir Hernsen
Hallo I need to have my form mail to 2 or 3 addresses. Anyone familiar enough with this popular program to advise??? Thanks Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to create a submit button in perl?

2003-06-07 Thread Luinrandir Hernsen
the submit button is part of the form command in HTML. I use perl to: print qq||; if thats what you are looking for check out your HTML commands for Luinrandir - Original Message - From: "Scot Robnett" <[EMAIL PROTECTED]> To: "Annie" <[EMAIL PROTECTE

need help/ advice

2003-07-27 Thread Luinrandir Hernsen
Hallo I need advice $webcode = "www.webpage.com"; Is this how a put the code of a web page into a string? help? advice? Thanks Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: need help/ advice

2003-07-27 Thread Luinrandir Hernsen
Yes thanks... I want to capture the code of a webpage to a string so I can pick out the stuff I want and put the code into another of my design. I will try your suggestion Is there another way to do this? with out the LWP::UserAgent I see you are using a get command.. ok I know about those...

Deleting a file(s) with variables _HELP!

2004-02-03 Thread Luinrandir Hernsen
I have a group of files I need to delete. They have a format like this. c:\game\data\(variable)info.file(variable) the actual file name is c:[EMAIL PROTECTED] I need to delete all files in this directory with the partial name of "info.file" where the (variable) is a wildcard. In dos it would

Array Question

2004-05-14 Thread Luinrandir Hernsen
Can I do something like this? @CityA="Suburb1, Suburb2, Suburb3"; @CityB="Suburb1, Suburb4, Suburb5"; $Var="TownCurrent"; $NewVar="$($TownCurrent)[1]"; I am trying to construct a sting from a variable. make sence? Lou -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: $ENV(HTTP_REFERER)?

2001-06-06 Thread Luinrandir Hernson
I too have a question about this. below is the code: open(A,">>/home/thx-1138/cgi-bin/data/refs.htm"); print A "$ENV{'HTTP_REFERRER'}\n"; close (A); The file opens, prints a return/linefeed and closes... any ideas why this wont work??? it looks correct to me from what i have read. Lou ---

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Luinrandir Hernson
This works print qq{$_ => $ENV{$_}\n} for keys %ENV; what are ths individual calls? print qq"$ENV{'HTTP_REFERER'}\n"; (below are the other calls.yes???) QUERY_STRING => SERVER_ADDR => 000.00.00.000 HTTP_ACCEPT_LANGUAGE => en-us SERVER_PROTOCOL => HTTP/1.1 HTTP_CONNECTION => Keep-Alive

Re: $ENV(HTTP_REFERER)?

2001-06-07 Thread Luinrandir Hernson
anycare to help get this working. it is being called from a homepage as the page loads (like a counter would be used) #!/usr/bin/perl -w use strict; use diagnostics; print "Content-type: text/html\n\n"; ## ##declared variables ## my $homepage; my $ENV; my $HTTP_REFERER;

Re: javascript within print "<

2001-06-12 Thread Luinrandir Hernson
Just call it from perl print "\n\n"; print "web site\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; exit; - Original Message - From: [EMAIL PROTECTED] To: CGI Beginners Sent: Tuesday, June 12, 2001 4:41 PM Subject: ja

random graphix generator

2001-06-14 Thread Luinrandir Hernson
Perhaps someone can give me a siple line in basic the rnd (random) Command goes something like this $A=fix(rnd*10) (the "fix" drops everything right of the decimal point. results in nnumber 0 to 9) what is it in perl? I've looked at perldoc.org, no luck and at the perldocs -f rnd... no luck what i

string question

2001-06-14 Thread Luinrandir Hernson
I am receiveing these long website addresses and I want to shorten them after a certain symbol like a question mark or a word like "/action". Is there an easy way to do that? EX: http://www.website.net/action.lasso?-database=Links_Engine TO: http://www.website.net/action.lasso OR EVEN http://w

So what am I doing incorrectly??

2001-06-14 Thread Luinrandir Hernson
srand; $A = int (rand (4)) if ($A eq '0') {print "\n"}; if ($A eq '1') {print "\n"}; if ($A eq '2') {print "\n"}; if ($A eq '3') {print "\n"};

Something wrong with my one line code

2001-06-15 Thread Luinrandir Hernson
This line of code in a perl script comes up with errors. What am I missing? problems with the word print? Am I missing a "/" somewhere for a reserved word? maybe the 2nd "Print"? print "\n;

permission question

2001-06-12 Thread Luinrandir Hernson
I want to let other people put my webpages on their site. I want to control the contents of the web page without changing their code. I am going to make up a web page of .pl's that just type the html code for them as below. My question is what permission (775?) must i set the .pl's at so that a 3