Re: advice required

2001-12-13 Thread fliptop
Kris G Findlay wrote: > > i would like to store the documents in a database format as to move to > mysql at a later date. > > to cut a long story short. > i was looking for some advice on implemeting this eg. > > best db format to use. - ( both for speed and easy transferel to mysql ) just won

RE: map

2001-12-13 Thread angelo . bettati
Thanks to All !! I've understand that is not correct to use the map function to count the occurences of letter in a variable string: $var = "Good morning"; my $var2 = $var =~ tr/o//; is simple and elegant solution. Bye & Thanks Angelo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: Creating a CGI menu

2001-12-13 Thread Mark Bergeron
For this I would consider using SSI. That way you only have to make your changes in the "config" files once for the whole site. Using SSI: http://www.perlmonks.com/index.pl Lots of different ideas here. Mark Bergeron' -Original Message- From: "Gerry Jones"<[EMAIL PROTECTED]> To: "CGI

Re: problems with gd.pm

2001-12-13 Thread Roger C Haslock
http://aspn.activestate.com/ASPN/Modules/dist_html?dist_id=8887 GD 1.33 Interface to Gd Graphics Library CPAN Released: Author: LDS PPM Platforms: Linux Windows Version: GD 1.27.2 Perl Version: 5.6 Release Date: PP

Weekly list FAQ posting

2001-12-13 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addr

useing seek correctly?

2001-12-13 Thread L P
I need to read lines 26 and 27 to check to see if there are two things present 1. That from col 11-18 “Running ” is there and 58-82 is NULL I am using the seek function to do this. Is that correct? From my understand the only positions you can set are. 0. Beginning 1. Current 2

Re: useing seek correctly?

2001-12-13 Thread Jenda Krynicky
From: "L P" <[EMAIL PROTECTED]> > I need to read lines 26 and 27 to check to see if there are two things > present 1.That from col 11-18 ôRunning ö is there and 58-82 is NULL > > I am using the seek function to do this. Is that correct? From my > understand the only positio

Re: useing seek correctly?

2001-12-13 Thread Michael R. Wolf
"L P" <[EMAIL PROTECTED]> writes: > I need to read lines 26 and 27 to check to see if there are two things > present > 1.That from col 11-18 “Running ” is there and 58-82 is NULL > > I am using the seek function to do this. Is that correct? From my > understand the only positions you can s

AdminMisc::SetEnvVar

2001-12-13 Thread Dean Theophilou
Hello: I wrote a script that modifies an environment variable during logon with the Wi32::AdminMisc::SetEnvVar function. Although the function sets the environment variable as expected, the change does not take effect until one of two things happen: 1) The user logs off and then back on

RE: AdminMisc::SetEnvVar

2001-12-13 Thread Timothy Johnson
I have been using this function without a problem for a few months on my users... Is it really not changing the Environment variable, or is it not changing it for a console window that you have open? What I mean is that I have noticed that if I have a console window open when I use Win32::AdminM

auto-submit question again....

2001-12-13 Thread Wagner Garcia Campagner
Hi, I've got another question about auto-submit a form. For example: I have a script that dysplay a radio button with names of diferent scripts on my server... (script1.pl; script2.pl; script3.pl,..) When a user selects a script and click on the submit button i would like to redirect to th

Re: auto-submit question again....

2001-12-13 Thread fliptop
Wagner Garcia Campagner wrote: > > Hi, > I have a script that dysplay a radio button with names of diferent scripts > on my server... > (script1.pl; script2.pl; script3.pl,..) > > When a user selects a script and click on the submit button i would like to > redirect to the selected script bu

Call one perl script from another via CGI and pass name/value-pairs

2001-12-13 Thread birgit kellner
I suppose this must have been asked a million times, but here it is again: Within a script called "format.pl", I want to call another script called "../cgi/somedir/banners.pl", passing name-value-pairs like "region=someregion" and "mode=SSI". Initially I thought of require-ing "banners.pl" and

RE: AdminMisc::SetEnvVar

2001-12-13 Thread rothd
This is correct and by design. When you use AdminMisc::SetEnvVar() it sets the env var then sends out a system wide message indicating the environment has been updated. Any service and application that listens for this message can then update its copy of the environment (basically "refreshing" and

Formmail error "Can't locate OLE.pm."?

2001-12-13 Thread cschneider
Hi, I have used FormmaiI.pl 1.6 with no problems but after upgrading to 1.9 I can't get it to process. ISP states "Can't locate OLE.pm." Has anyone ever experienced this? Anyone have a fix? c. Schneider I checked the syntax of formmail.pl, and here was the response: Can't locate OLE.pm i

my hyperlink has spaces in it and fails

2001-12-13 Thread Kevin Harwood
I have a web page that allows you to click a hyperlink and then it pulls up data from a Berkley db based on the word(s) that forms the link. When there are links that have spaces, only the first word of the link is recognized or used. Here is the hyperlink that is passed to the page: foreach

Re: my hyperlink has spaces in it and fails

2001-12-13 Thread Curtis Poe
--- Kevin Harwood <[EMAIL PROTECTED]> wrote: > I have a web page that allows you to click a hyperlink and then it pulls up > data from a Berkley db based on the word(s) that forms the link. > > When there are links that have spaces, only the first word of the link is > recognized or used. > > He

cleaning form input for display in browser...

2001-12-13 Thread Jeremy Webster
I have a form in which people can enter text, and then my perlscript spits it back out onto a web page. I know that if someone were to enter html code as text, then it could/would screw up the generated page. Is there a standard way to handle this? Or will I need to just parse through the i

SSI errors?

2001-12-13 Thread Steven Vargas
I'm trying to run a Perl program in my .shtml file using this directive: I know includes work, because we're using them already. And, I've already got one CGI application running, but this is the first one using an SSI directive. The application is supposed to look at the query string and gather

Re: cleaning form input for display in browser...

2001-12-13 Thread Curtis Poe
--- Jeremy Webster <[EMAIL PROTECTED]> wrote: > > I have a form in which people can enter text, and then my perlscript spits it > back out onto a web page. I know that if someone were to enter html code as > text, then it could/would screw up the generated page. Is there a standard > way to

Re: SSI errors?

2001-12-13 Thread Omi
Hi Steven; Have you tried this? Note that some servers ban to run

Re: my hyperlink has spaces in it and fails

2001-12-13 Thread Randal L. Schwartz
> "Curtis" == Curtis Poe <[EMAIL PROTECTED]> writes: Curtis> Incidentally, here's a neat trick taking advantage of the fact that $_ aliases the variable in Curtis> question when using for loops: Curtis> for ( $word, $display ) { Curtis> $_ = encode_entities( $_ ); Curtis> }

[ADMIN] Cross posting

2001-12-13 Thread Kevin Meltzer
Hello, I would like to ask people to be more mindful about cross-posting to both the 'beginners' and the 'beginners-cgi' lists. In other words, don't. The 'beginners' list is meant for Perl questions, not Perl/CGI questions. We added the 'beginners-cgi' list in order to handle the Perl/CGI relate

Re: [ADMIN] Cross posting

2001-12-13 Thread Kevin Meltzer
That is in the FAQ, which everyone should have read, and shouldn't need to be said on the list. Actually, I seem to have left it out of the beginners-cgi FAQ and will add it in. For those of you only on the beginners-cgi list, until it is in the FAQ, have useful subjects :) Cheers, Kevin On Thu,

sendmail error

2001-12-13 Thread Lance Prais
I am using the following piece of code to send email I can not figure out why it errors out because it worked the other day and now it is not. I have not changed anything on the system and installed the sendmail.pl in the lib folder: use Mail:Sendmail; %mail = ( To =>'[EMAIL PROTECTED]

Re: sendmail error

2001-12-13 Thread Francis Henry
Hi Lance: use Mail:Sendmail; should be use Mail::Sendmail; Have a good day, Francis Lance Prais wrote: > I am using the following piece of code to send email I can not figure out > why it errors out because it worked the other day and now it is not. I have > not changed anything on the syst

Re: sendmail error

2001-12-13 Thread Jeff 'japhy' Pinyan
On Dec 13, Lance Prais said: >use Mail:Sendmail; use Mail::Sendmail; Notice the doubled colon. >%mail = ( To =>'[EMAIL PROTECTED]', >From=> 'Nobody', >Subject => 'Error', >Message => "my $data = for (1..21)" > ); I don't think M

Re: [ADMIN] Cross posting

2001-12-13 Thread Etienne Marcotte
May I add one other thing? Sorry if this is posted on both lists, but it's useful for everyone. PLEASE post mails with a *descriptive* subject! Subjects like "Problem" "Help please" "I need some advise" "Question" "Beginner question" and such should be *avoided*. We almost all receive hundred

beginner question

2001-12-13 Thread Lance Prais
use DB_File; tie(@array, "DB_File", "/tmp/textfile", O_RDWR|O_CREAT, 0666, $DB_RECNO) or die "Cannot open file 'text': $!\en" ; $array[4] = "a new line"; untie @array; In the above statment what is the following items refering too? DB_File", O_RDWR|O_CREAT 0666 DB_RECNO --

Re: beginner question

2001-12-13 Thread Curtis Poe
We just discussed this today. Please do NOT crosspost. This is better in the [EMAIL PROTECTED] list. Further, having a useful subject line helps. If I had a penny for every unhelpful subject line I've seen today... hold on a minute... I'd have $1.27 :) (tip 'o the keyboard to Terry Pratchet

Re: sendmail error

2001-12-13 Thread Akshay Arora
> use Mail:Sendmail; Try use Mail::Sendmail; # Two ::, not one -Akshay -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]