Need basic commands on perl programming

2001-12-07 Thread reggy patagan
Good day: What are the basic comands in creating a perl programs, do i have to do it in a text editor or in a /usr/bin directory where perl is installed. I have a perl here with Version 5.6.0 and can you give me a simple program for just a guide?.. Thank you and more power.

Re: Need basic commands on perl programming

2001-12-07 Thread Stephan Tinnemeyer
You will find a good tutorial for the first steps in CGI-programming in Perl at http://www.lies.com/begperl/ Cheers Stephan -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: Need basic commands on perl programming

2001-12-07 Thread Jerry Preston
Reggy, The first line is "#!/usr/local/bin/perl". You can add -w = warning or -T = taint (#!/usr/local/bin/perl -w) Then you can add 'use strict'. Jerry reggy patagan wrote: > Good day: > >What are the basic comands in creating a perl > programs, do i have to do it in a text editor o

Using custom modules

2001-12-07 Thread Gerry Jones
I want to use a module I have created and stored in cgi-bin directory. It holds a few commonly used functions. I remember having done this before, but can't remember how I got it to work, and my error log says the module did not return a true value. Somebody please save me from wading through a

Re: Re: Need basic commands on perl programming

2001-12-07 Thread Mark Bergeron
Not the best stuff in the world but it will get you started with a lot of the basics. Forms, directories, cookies. Stuff like that. GoTo: http://cgi.resourceindex.com/Documentation/ GL, Mark Bergeron -Original Message- From: "Jerry Preston"<[EMAIL PROTECTED]> To: "reggy patagan"<[EMAIL

Re: Using custom modules

2001-12-07 Thread fliptop
Gerry Jones wrote: > > I want to use a module I have created and stored in cgi-bin directory. It > holds a few commonly used functions. I remember having done this before, but > can't remember how I got it to work, and my error log says the module did not > return a true value. Somebody please sa

Re: Using custom modules

2001-12-07 Thread Gerry Jones
On Friday 07 December 2001 12:49, fliptop wrote: > Gerry Jones wrote: > > I want to use a module I have created and stored in cgi-bin directory. It > > holds a few commonly used functions. I remember having done this before, > > but can't remember how I got it to work, and my error log says the mo

Perl shopping cart with MySQL and Cookie

2001-12-07 Thread Sodbayar Badarch
I am seeking for Perl shopping cart script which is use Mysql and cookie. Simple one. And MySQL must not have many tables. I really need it. Best Regards, Sodoo, __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.co

Re: graphic manipulation program

2001-12-07 Thread fliptop
Carl Franks wrote: > > Could someone advise me on a program to use. > I want to use a command-line program to resize .jpegs, and specify > compression. > I've not found anything suitable so far. > The GD module looks promising, but I can't find useful documentation for it. have you looked into i

Re: graphic manipulation program

2001-12-07 Thread Carl Franks
>> Could someone advise me on a program to use. >> I want to use a command-line program to resize .jpegs, and specify >> compression. >> I've not found anything suitable so far. >> The GD module looks promising, but I can't find useful documentation for it. > > have you looked into imagemagic

Re: graphic manipulation program

2001-12-07 Thread Carl Franks
>www.imagemagick.org Just read the first paragraph on the home page; it's exactly what I need. Thank-you very much! :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: graphic manipulation program

2001-12-07 Thread Brett W. McCoy
On Fri, 7 Dec 2001, Carl Franks wrote: > Could someone advise me on a program to use. > I want to use a command-line program to resize .jpegs, and specify > compression. > I've not found anything suitable so far. > The GD module looks promising, but I can't find useful documentation for it. Chec

graphic manipulation program

2001-12-07 Thread Carl Franks
Hi, Could someone advise me on a program to use. I want to use a command-line program to resize .jpegs, and specify compression. I've not found anything suitable so far. The GD module looks promising, but I can't find useful documentation for it. I'm running linux (slackware). Thanks Carl --

Re: Next 10 Results Help Needed

2001-12-07 Thread Brett W. McCoy
On 7 Dec 2001, Randal L. Schwartz wrote: > > > ... too bad I've already written my *last* WT column, to appear > in Feb 2002, because the magazine is terminating. :( Bummer. -- Brett http://www

From html to Perl back to html

2001-12-07 Thread Mark Jervis Sr.
Hello, I know this is probably a really newbie question. But then again I am really a newbie. I am trying to make a form where user input gets output back to another html form. My script is not erroring out so my log files is clean. But I am missing something in my script and have looked for

Re: From html to Perl back to html

2001-12-07 Thread fliptop
"Mark Jervis Sr." wrote: > > I am trying to make a form where user input gets output back to another > html form. > > My script is not erroring out so my log files is clean. But I am missing > something in my script and have looked for the answers through google but I > must be typeing in the wr

Re: Perl shopping cart with MySQL and Cookie

2001-12-07 Thread Brent Michalski
Just in case you were wondering why you are not getting many/any responses to your inquiry. This is a list for people LEARNING how to write CGI programs. If you have a specific question, you will normally get many answers. However, you are looking for a complete solution. You may want to try

Re: Need basic commands on perl programming

2001-12-07 Thread Jeremy Webster
I personally really like this site as well http://www.cgi101.com/class/ It does a great job getting you set up and going. Have fun Jeremy [EMAIL PROTECTED] On Friday 07 December 2001 07:06 am, you wrote: > Reggy, > > The first line is "#!/usr/local/bin/perl". You can add -w = warning or > -T

Re: Need basic commands on perl programming

2001-12-07 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Reggy Patagan) wrote: > Good day: > >What are the basic comands in creating a perl > programs, do i have to do it in a text editor or in a > /usr/bin directory where perl is installed. > >I have a perl here with Version 5.6.0 and can

Re: Next 10 Results Help Needed

2001-12-07 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > > One of my very first WT columns... > > > > .. too bad I've already written my *last* WT column, to appear > in Feb 2002, because the magazine is termin

Re: Re: Need basic commands on perl programming

2001-12-07 Thread Mark Bergeron
Yes, it's easy to understand. Limited examples though. Read (past tense) the book. Easily worth the 21.95 -Original Message- From: "Jeremy Webster"<[EMAIL PROTECTED]> To: "Jerry Preston"<[EMAIL PROTECTED]>, [EMAIL PROTECTED] Date: Fri Dec 07 10:09:43 PST 2001 Subject: Re: Need basic comm

Need to use #

2001-12-07 Thread Mark Jervis Sr.
In my code I need to use the number symbol # I know this is a symbol to use for commenting out code is there a work around so that I can use this symbol in a certain part of my code without the program ignoring everything after it? Thanks, Mark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Need to use #

2001-12-07 Thread Dean Theophilou
Hello: Have you tried using a backslash? Like this, maybe: \#. It's worth a shot. Dean Theophilou Genisar -Original Message- From: Mark Jervis Sr. [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 12:50 PM To: [EMAIL PROTECTED] Subject: Need to use # In my code I ne

Here is how I am trying to use the #

2001-12-07 Thread Mark Jervis Sr.
This is the block of code giving me errors when I am trying to use the # I am also getting an error saying missing right bracket. This is the only if statement in my code so maybe this will help those of you who tried to help see the problem. if($textcolor eq custom) { print " te

RE: Here is how I am trying to use the #

2001-12-07 Thread Bob Showalter
> -Original Message- > From: Mark Jervis Sr. [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 07, 2001 4:35 PM > To: [EMAIL PROTECTED] > Subject: Here is how I am trying to use the # > > > > This is the block of code giving me errors when I am trying > to use the # > > I am also ge

Hopefully I can see the light.

2001-12-07 Thread Mark Jervis Sr.
Ok I have tried all of your suggestions and I'm closer to making it work however there a couple things it's doing that I have been told should be working right and it isn't. >From this code on a web page that is calling up this script the person should be able to pick either a select color or ent

Fwd: RE: Passing variables

2001-12-07 Thread Curtis Poe
Ron, I think you meant to send this to the list, too :) I don't know ksh, so I am terribly familiar with what's going on there, but it doesn't look terribly difficult. I still don't know if you need anything returned to the user. If you don't and these programs don't take long to run, you cou

Oops! Re: Fwd: RE: Passing variables

2001-12-07 Thread Curtis Poe
Please ignore. Sent to wrong list and this is my apology :) --- Curtis Poe <[EMAIL PROTECTED]> wrote: > Ron, I think you meant to send this to the list, too :) > > I don't know ksh, so I am terribly familiar with what's going on there, but it >doesn't look > terribly difficult. > > I still do

almost there

2001-12-07 Thread Mark Jervis Sr.
Ok here is what it is returning. I fixed the code to this: if($textcolor eq "custom") { print " text=\"$textcolor\""; } else{ print " text=\"$txtcustom\""; } when textcolor equals custom thats what it's returning rather than reading

Re: almost there

2001-12-07 Thread Marty Landman
Mark, It's not clear to me what you're wanting to do from your posting. One comment though if you don't mind... you can avoid the backslash character and in this case make the code more legible by using Perl's 'custom quotes' feature. For example, " text=\"$textcolor\"" can be rewritten as

Re: almost there

2001-12-07 Thread Mark Jervis Sr.
I need to have perl return a # some how I am having my code write to a webpage. In the webpage I need to be able to change colors of the page and text. While yes it is possible and it is working to use default names of colors such as white, red, blue ect. I would also like the code to be able to

I figured it out :-)

2001-12-07 Thread Mark Jervis Sr.
Woohoo, I figured it out. I had my code backwards. If the textcolor was custom I was still trying to print custom when in fact I wanted to print a value that I specified. Thats where my loop was. I had to sit back get away from it and rethink it on paper till I found it. But thanks guys for tr

Re: almost there

2001-12-07 Thread Marty Landman
At 07:25 PM 12/7/01 -0500, Mark Jervis Sr. wrote: >I am having my code write to a webpage. In the webpage I need to be able >to change colors of the page and text. After you determine the colors, why not just code print qq||; >I would also like the code to be able to use custom colors such as

Re: almost there

2001-12-07 Thread Mark Jervis Sr.
At 07:48 PM 12/7/01 -0500, you wrote: >At 07:25 PM 12/7/01 -0500, Mark Jervis Sr. wrote: > >>I am having my code write to a webpage. In the webpage I need to be able >>to change colors of the page and text. > >After you determine the colors, why not just code > >print qq||; Because the code is

Explanation of what I was doing wrong

2001-12-07 Thread Mark Jervis Sr.
I am writing what I did wrong so others can see and learn. here is my code I sent out earlier. As you can see from the code I had it backwards. If custom was chosen on the web page I wanted it to use a custom color by way of hex code. However my code tells the program if custom is chosen use $

generating an xml file

2001-12-07 Thread Jeremy Webster
I have a perl script which takes input from an html form, and appends the info to an XML file. My code works fine if I run it from the command line (substituting in values for the form values) but when I run it by calling it from a SUBMIT button, it wont alter the XML file at all. the perm

Re: generating an xml file

2001-12-07 Thread Mo Holkar / UKG
At 00:24 08/12/01, you wrote: >the permissions on the XML file are set as -rw -rw -r-- >and it's owned by root >The perl script is owned by root When it's being run from a Web page, it's (probably) being run by the 'httpd' user, so you might need to alter your permissions to allow that user to

Re: Next 10 Results Help Needed

2001-12-07 Thread Randal L. Schwartz
> "Darryl" == Darryl Schnell <[EMAIL PROTECTED]> writes: Darryl> I have that part worked out, however now I want to have the results Darryl> display in groups of ten allowing the user to click on next results to Darryl> see the next results. I've tried to look at some examples but they are Da

help with form

2001-12-07 Thread Pedro A Reche Gallardo
Hi all, I am working on a cgi script that can create a temporal file with either an uploaded file, or, in its absence, the pasted content of that file. I have managed to upload the file only if that is the only input field in my form, but if I add the choice to paste the content of the file,