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

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

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]

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

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

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

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]

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-

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

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-

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

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...

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: 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 PROTECTED]>; <[EMAIL PROTECTED]> Sent: Fr

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]

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

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

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;

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

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