Re: Date Range

2003-01-29 Thread Wiggins d'Anconia
Melissa Stranzl wrote: Hi all, This is part of a perl program I wrote that doesn't compile. I am trying to get my database to search by date- to have current and past events come up. Anyway, based on the following code, I get an error message that reads: can't locate object method "new" via pa

Re: Printing arrays without empty variables

2003-02-04 Thread Wiggins d'Anconia
Jan Cohen wrote: Hi all, newbie here again, Here's a sample of some code that's confusing me: #if ($selectRide = "LibertyRider2" || "RiderGroup") Two key mistakes. First = is assignment, == is equality for numbers, and 'eq' is equality for strings, so essentially you are saying if you can

Re: looking for a host

2003-02-05 Thread Wiggins d'Anconia
Shahar Evron wrote: hi all.. i'm doing all sorts of tests with CGI related perl, and i need a good host that supports perl and SSI to run my scripts on. I'm working with one of those free web site hosting companies that put ads on my pages, and i have problems with stuff like viewing logs, inst

Re: Parsing a file as it is being served

2003-02-08 Thread Wiggins d'Anconia
pt to the next is a bit too involved. (Thanks you, Wiggins D'Anconia, for your help with that). Though it may not be the best way, it is certainly a way. We used to embed special comments in a file, then in the script, read in the "template" as we called it, looked for the comment a

Re: mkdir will not work with a variable

2003-02-10 Thread Wiggins d'Anconia
Tom McKellips wrote: How do I make mkdir work with a variable? I can put mkdir '/mydir'; in a cgiscript and it will work perfect every time but if I use a variable mkdir $mydir; it will never work It does not appear to make any difference how I place " or ' or anything else. I have tested the v

Re: SSL for LWP

2003-02-11 Thread Wiggins d'Anconia
Lance wrote: "Lance" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... OK, I finally found out why Crypt-SSLeay won't install. It is a Solaris-only module! I used 'describe Crypt-SSLeay' in ppm3 to find this out. So the next question is: How can I use my

Re: Download zip files automatically

2003-02-11 Thread Wiggins d'Anconia
Antonis Antoniou wrote: Hi, I would like to download from http://www.somewhere.com/zip/file.zip through a script. Is there any module that I can do this? This will help me download the zip files automaticaly. You should have a look at the LWP set of modules: http://search.cpan.org/modlist/Wor

Re: mkdir will not work with a variable

2003-02-12 Thread Wiggins d'Anconia
Always group reply so taht others can help and be helped by the discussion Tom McKellips wrote: Yes I have tried that and still nothing works. This is a CGI script and setuid also using setuidperl -T and the directory is 777. This is the line out of the script I am working with that is coau

Re: mkdir will not work with a variable

2003-02-13 Thread Wiggins d'Anconia
Tom McKellips wrote: I tried your line and the only thing that happens is I get an error page in the browsererror 500 and the only thing I can find in the log files is premature end of script headers. I have tried the script with and without the -T set still no luck either way. Had you alread

Re: Perl problem:(

2003-02-14 Thread Wiggins d'Anconia
t wrote: Hello all:) You have been greaet helps to me in the past, and im hoping you can help now:) A friend of mine is in a class learning perl and her script keeps getting an error that there is a bracket missing on line 190. When i looked at it, all i could see was the nested statement problem

Re: Getting a STDOUT value

2003-03-06 Thread Wiggins d'Anconia
Scot Robnett wrote: Does anyone know how I capture the value of an operation that defaults to STDOUT? For instance if I want to do something like #!/usr/bin/perl -w use strict; my $value = `perl -c someapp.cgi`; # prints to STDOUT print "Content-type: text/html\n\n"; print "Result: $value"; This

Re: question about uninitialized variable

2003-03-07 Thread Wiggins d'Anconia
Hughes, Andrew wrote: As a relative newbie myself, it appears that you have in essence applied a variable to a variable. I typically use the format my $name=param("name"); when I have a form that has a field called name. This form field value (andrew for example) would be stored in param("name

Re: Help really needed in this script: error: Prematue end of script header

2003-03-04 Thread Wiggins d'Anconia
mel awaisi wrote: Hi, I have with the help of one of the guys of this list got this script to take an image from one directory and then rename it with the time and date of the image and then store it onto a new directory. I sotred the image in the cgi-bin, and then tried to run the file, i got

Re: CGI Condition Statement Problem

2003-03-08 Thread Wiggins d'Anconia
Daniel Rychlik wrote: Kind Sirs, Im having a bit of trouble with my email form. My conditional statement does not return true when you click on Send. I have been working on this simple script for a couple days and I cant seem to figure out whey it will not read the send as an action. Any Ideas

Re: extracting publik key from certificate

2003-03-15 Thread Wiggins d'Anconia
uma ramdoss wrote: hai, i am developing an application which involves extracting public key from certificates. can anyone help me on how to do it. Possibly, but your question does not appear related to CGI so you may get more/better answers from a different mailing list. There is a crypto

Re: Net::LDAP.pm

2003-03-15 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Can anyone tell me why I am receiving an error can't locate Net/LDAP.pm in @ INC (@INC includes /usr/lib/perl5/5.6.1 etc, etc etc, etc. I've never quite gotten this to work. The farthest I've gotten is that the "use Net::LDAP" (as in your case) was being found, but th

Re: passing page URL to SSI script

2003-03-15 Thread Wiggins d'Anconia
javamaster wrote: I am including the same CGI script as an SSI on several web pages. I need to know which page the script was run from (something like the javascript window.location variable). I want to be able to know if the script was executed from index.html, or contact.html, or products.ht

Re: formatting money $12.00

2003-03-15 Thread Wiggins d'Anconia
David Gilden wrote: my (%bags_ordered,$bag); # is it ok to mix match the type of variables inside a # my vars declaration? Does Perl tell you it isn't? Only thing to watch out for here is combining list and scalar type variables during assignment. @bags = param('handbag'); #CGI.pm fo

Re: anonymous hash clarification

2003-03-15 Thread Wiggins d'Anconia
David Gilden wrote: Thanks Dan and the rest of the list for helping hone my PERL skills. Below is the data structure I am using, I think it is a HoH -- Hash of Hash Did get that right ? :) Yes. # This is the data structure %bags_ordered = ( "bag-style-fur" => { price => 10,

Re: shared cookies

2003-03-18 Thread Wiggins d'Anconia
Hytham Shehab wrote: hi guys, i have multiple domain names - etc multiple sites - that i would like to share cookies inbetween, how can i - literally - do that, and is it enough to use HTTP::Cookies !? Mostly you can't, which is why I suppose the list has been so quiet. This is a security issu

Re: Problem with regular expressions!!!

2003-03-18 Thread Wiggins d'Anconia
Hughes, Andrew wrote: This is a newbie observation, but aren't you not supposed to name one of your own variables with a number as the first value after a $, @, or % as in the case of $2? Could this be part of the problem? Just to make sure this doesn't slip through, in his case $2 refers to th

Re: regrex question part 2

2003-03-20 Thread Wiggins d'Anconia
David Gilden wrote: In the following why am I getting '23' Is 23 being treated as a string? Not exactly. It is NOT being treated as a number if that is what you mean, all of $s is being treated as a string. Specifically \w matches any "word" character, which is any alphanumeric...so [A-Za-z0-9_].

Re: regrex question part 2

2003-03-20 Thread Wiggins d'Anconia
Remember to always group reply so others can help and be helped. David Gilden wrote: Why am I getting 'one two three' in $s and not just 'one' You might want to print $1, this will give you a better idea. $1 is being set to everything in the parentheses, which is everything you match, and the

Re: select where clause question with replace subquestion

2003-03-25 Thread Wiggins d'Anconia
Jattie van der Linde wrote: I'm trying to build a dynamic piece of code that generates a HTML view like a year planner for all employees in the company all on one page. My appraoch is to use 2 Quesries, the first getting all the active employee names and the second then determines the dates of abse

Re: Replacing/deleting text in a text file, part deux

2003-03-27 Thread Wiggins d'Anconia
Scot Robnett wrote: Looking at the code below, can anyone help me figure out how to compare the e-mail addresses in @addresses with the e-mail addresses in @emails and print out to the new file as shown, but minus the matching addresses? Didn't look much at the code, sorrybut here are some pl

Re: question about perl.

2003-03-27 Thread Wiggins d'Anconia
Luinrandir Hernsen wrote: How do I run another perl program from within another perl program? if (x=0) { perl_ program_ 1.pl } else { perl_program_2 } exit; Surprised that neither of the other two (especially drieux) asked the question, "Why would you want to do such a thing?" ;-)... It would b

Re: question about perl.

2003-03-27 Thread Wiggins d'Anconia
drieux wrote: On Thursday, Mar 27, 2003, at 16:16 US/Pacific, Wiggins d'Anconia wrote: the full on generic nature of the programme, which as you will note is psuedo code since (x=0) is not a valid statement in perl... so well, I was trying to be Nice... { he said sheepishly } Ye

Re: searching for files using perl

2003-04-01 Thread Wiggins d'Anconia
Shawn Sharp wrote: Can someone help on this one? I created the following code to search for extention .PBD files in the htdocs/PBD folder while using the apache webserver. However it will only search in the cgi-bin folder for these files. What am I doing wrong? #!/perl/bin/perl use warnings; us

Re: warning message

2003-04-02 Thread Wiggins d'Anconia
Christopher G Tantalo wrote: Hello, In a recent perl script I wrote, I have a procedure, read_config(), which reads a config file I have set up and sets a hash to what is in the file. Now, before you mention it, I have stricts on and use the -w on the 1st line, and the following message appe

Re: Why this perl error?

2003-04-02 Thread Wiggins d'Anconia
Octavian Rasnita wrote: I guess it is a Perl 5.8 bug because this didn't happen in Perl 5.6.1. Or, ... it might be a DBI module error, but I don't think so. Not sure if it is a DBI error or not, but I *believe* (read: have some remembrance of it but not sure) that it has been discussed somewhat

Re: Needing IP addresses

2003-06-13 Thread Wiggins d'Anconia
drieux wrote: On Thursday, Jun 12, 2003, at 16:49 US/Pacific, Chris Anderson wrote: [..] I have one page where I need to track all IPs going to that page. I need this to be output to an HTML file or a text file that will be dynamically read by an HTML file. do you mean the REMOTE_HOST REM

Re: array/split/join question

2003-06-14 Thread Wiggins d'Anconia
Scot Robnett wrote: This accomplishes what I want it to, but it's ugly. Any ideas on how I can achieve the same result without opening and closing the OUT file twice? I'll have to open it yet again to populate a DB column with the stripped HTML, and it just seems like I've got WAY too much file act

Re: Packages, run modes, and scopes, oh my

2003-06-28 Thread Wiggins d'Anconia
Scot Robnett wrote: I was wondering if anyone can point me to newbie-type tutorials on any of the following (including but not limited to which perldocs I can read): - Definition of 'lexical' and 'canonical' - Differences between 'my' and 'local' - Good overview of packages

Re: question on global variable / scope

2003-07-04 Thread Wiggins d'Anconia
David Granas wrote: Hi, Im just learning Perl and was a little confused with why I couldnt prevent my subroutines from reading variables from the main program. Here is an example: use strict; my $var = 1; test(); sub test { print $var; } I had thought that a my variable would not be ab

Re: Cookies and mod_perl

2003-07-04 Thread Wiggins d'Anconia
Dennis Stout wrote: Is there any difference in setting cookies between operating under just general CGI and when using an Apache webserver and mod_perl? I got a program I'm writing that generates every page it dishes out on the fly, dynamically. If I can stay away from doing a use CGI;, I would lov

Re: tell-a-friend web functionality?

2003-07-08 Thread Wiggins d'Anconia
Paul Torrance wrote: Hi There, Afraid that I'm an absolute beginner when it comes to cgi/perl. What I would like to achieve, however, is to add 'tell-a-friend' functionality to a web site which I have created. Does anyone have any thoughts/advice? Be sure to start a new thread when posting a new t

Re: POST

2003-07-09 Thread Wiggins d'Anconia
Octavian Rasnita wrote: Hi, Please tell me, can I use somehow the POST method of HTTP to modify some information on the server? For example I want to write to a file. How do you mean? The POST method is just one way to communicate from a client to a server. So modifying the information has more

Re: split function problem.

2003-07-09 Thread Wiggins d'Anconia
Sara wrote: I am extremely thankful to you for your help. I always loved your way of teaching and explaining the code bit by bit. One more question I searched the google for "HTH" abbreviation but didn't find anything. Can you tell me what does it mean? http://info.astrian.net/jargon/terms/h.htm

Re: Reading and comparing files from a directory

2003-07-09 Thread Wiggins d'Anconia
Greenhalgh David wrote: If I am reading this correctly (which I am probably not!) you need another foreach loop in there somewhere. When you compare $file with $lines, you are trying to compare the contents of @temp. I think you need to wrap your comparison with a foreach loop: foreach $file (

Re: select multiple

2003-07-10 Thread Wiggins d'Anconia
Dennis Stout wrote: ARHG. I want to stay as far away from use CGI; as possible =/ *sigh* mod_perl and the methods available in the apache request object shuold beable to replace CGI.pm entirely, especially when you have a highly customized RequestHandler :/ Guess I'll see what happens, since I n

Re: md5

2003-07-13 Thread Wiggins d'Anconia
Alexander Blüm wrote: I solved the problem... not using OO-style, but function-style. like this: ... use Digest::MD5 qw(md5_hex); ... $r->print( "$pw -> ".md5_hex($pw)."" ); ... *tadaa* Well, you skirted the problem and it works so that is fine, but it would be good to get to the root of the pr

Re: Getting the domain name

2003-07-14 Thread Wiggins d'Anconia
Mike Blezien wrote: Hello, We have a fairly simple redirect script a url is entered, and even tho there are directions to not enter the "http://www"; sometimes we get it or "http://";... what is the simplest method to extract just the domain name if a "http://www.somedomain_name.com"; or "http

Re: Regex problem

2003-07-20 Thread Wiggins d'Anconia
Sara wrote: $name = "SARA DEILEY"; how its possible to grasp only initials for First and Last name i.e $name ="SD"?? Depends on how standardized your data is, something simple like this should work for the above: my $name = 'SARA DEILEY'; my $initials; if ($name =~ /^(\w)\w*\s+(\w)\w*/) {

Re: PHP vs Perl

2003-07-22 Thread Wiggins d'Anconia
Octavian Rasnita wrote: Hi all, Talking about PHP, someone asked me to tell him why is PHP better and why it is used more than Perl. I don't know what to tell him because I don't know PHP, but I've seen that it is used more and more and I guess that there are more PHP scripts than Perl scripts now

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-26 Thread Wiggins d'Anconia
drieux wrote: On Friday, Jul 25, 2003, at 13:20 US/Pacific, Ovid wrote: c. we find a way to cage the primates and leave the land free for FriendsOfThePixies to roam freely across the much happier land where no one ever changes the Freaking Underlying Layer that they coded to... Some would argue th

Re: PHP vs Perl

2003-07-26 Thread Wiggins d'Anconia
Octavian Rasnita wrote: I think the reason why PHP is used more and more much than Perl is that for CGI related programs it is much simpler to use than perl. For example it has a set of libraries for the most used functions in a CGI program, for example SSL support, a module for reading and creati

Re: CGI Authentication question

2003-07-28 Thread Wiggins d'Anconia
Tim Brom wrote: I am writing a script for a company to use to manage a section of their website themselves. I have the script working, except I need some sort of authentication mechanism and I was wondering what my options were. This company is using their ISP for their hosting, and it's one of

Re: How to display multiple web pages depending on

2003-07-28 Thread Wiggins d'Anconia
Octavian Rasnita wrote: It is not very hard. You can use an sql statement like this: my $sth = $dbh->prepare("select id, name, age, bla from table order by name limit ?, ?"); $sth->execute($skip, $show); You can get the number of rows you want to skip ($skip) and the number of rows you want to sh

Re: How does CGI.pm handles Content-type: text/html\n\n ?

2003-07-29 Thread Wiggins d'Anconia
LI NGOK LAM wrote: > I have read throught the CGI::Carp::fatalsToBrowser... > not quite understand all, but I wonder how does this script > handles the "Content-type: text/html\n\n".. > So in the some case s(such as warnings) this header line won't re-print ? > Read the docs or the source

Re: Help with page reloads

2003-07-30 Thread Wiggins d'Anconia
Johnstone, Colin wrote: Hi all, I am writing my own form processing script as a learning exercise and want to know how to reload the page after processing the form to clear the forms processor, to prevent the user from refreshing the page and duplicating their submission. Im a PHP guy normally and

Re: Help with page reloads

2003-07-30 Thread Wiggins d'Anconia
Always group reply so everyone can help and be helped. Johnstone, Colin wrote: Thank You, I tried this but with no success #!/usr/bin/perl -w print 'Location: http://www.mydomain.com/cgi-bin/myform.cgi'; You need to indicate the end of the headers with a double new line: print "Location: htt

Re: Mail::Send question

2003-08-01 Thread Wiggins d'Anconia
Scot Robnett wrote: Is there any way to force Mail::Send to accept a "From" name, as opposed to simply sending and using the hostname by default? I don't see anything in the docs about setting the "From" field in the headers. (of course, I can just open a pipe to sendmail, but I want to see if ther

Re: Mail::Send question

2003-08-01 Thread Wiggins d'Anconia
Camilo Gonzalez wrote: Wiggins d'Anconia wrote: Scot Robnett wrote: Is there any way to force Mail::Send to accept a "From" name, as opposed to simply sending and using the hostname by default? I don't see anything in the docs about setting the "From" field in t

Re: cookies with CGI and IE7

2003-08-04 Thread Wiggins d'Anconia
Andrew Brosnan wrote: Anyone having trouble setting or retrieving cookies with CGI.pm and IE7? I'm doing: my $cookie = $q->cookie( -name=> 'session', -value => $session, -expires => '3h', print $q->header( -cookie => $cookie);

Re: Mail::Send question

2003-08-04 Thread Wiggins d'Anconia
Camilo Gonzalez wrote: Todd W. wrote: "Camilo Gonzalez" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Definitely avoid this if possible, there are numerous mail message modules, one of them is bound to provide what you need. Why is sendmail held in such low regard by this g

Re: Installing a module from CPAN

2003-08-11 Thread Wiggins d'Anconia
David Granas wrote: Hi, Im trying to install the Graphics-Simple module from CPAN on ActivePerl but can't seem to get it to work. I ran the PPM install Graphics-Simple which worked ok, but then I tried to run the test program gt1.pl and it gave me an error about not having the Gtk module. I t

Re: perl / MySql application overview question

2003-08-14 Thread Wiggins d'Anconia
Hughes, Andrew wrote: I have a multi-table MySQL database that holds different pieces of information that will all be displayed on a web page template. The general principle is that non web people will be able to populate web pages through an admin panel. The data in all of the MqSQL tables will

Re: Regex and Email address.

2003-08-14 Thread Wiggins d'Anconia
wrote: Regexes are always more fun :) How else can you write a program with almost no letters. $email =~ s/(?<[EMAIL PROTECTED]).*$/.../; perldoc perlre search for 'look-behind' Scott -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Tuesday, A

Re: Regex and Email address.

2003-08-14 Thread Wiggins d'Anconia
Sara wrote: Simple Regex problem How you will convert $email = "[EMAIL PROTECTED]"; TO $email = "[EMAIL PROTECTED]"; using Regex. Well this isn't necessarily a regex issue, TMTOWTDI, my $email = '[EMAIL PROTECTED]'; $email = substr($email, 0, (index($email,'@')+2)); print "Email: $email

Re: Selecting using regular expressions

2003-08-14 Thread Wiggins d'Anconia
Octavian Rasnita wrote: Hi all, I want to select all the content of a table from a file using regular expressions (and not a module). Can you give me some hints about how can I do this? Uh, use a module. For example I have the following text: .. .. ... ... As you see, I co

Re: Stripping HTML from a text file.

2003-09-04 Thread Wiggins d'Anconia
Won't this remove *everything* between the given tags? Or maybe I misunderstood the question, I thought she wanted to remove the "code" from all of the contents between two tags? Because of the complexity and variety of HTML code, the number of different tags, etc. I would suggest using an HTML

Re: Stripping HTML from a text file.

2003-09-04 Thread Wiggins d'Anconia
drieux wrote: It could just be my OCD, but if I could have hammered flat every FROOOTLOOP who wanted merely a 'quick and dirty' one time only fix, 'honest, it's just this one time', rather than actually cure the root cause problem, WE would be on a flat earth from all the pounding That or we

RE: accessing a hash map...

2003-09-09 Thread Wiggins d'Anconia
On Tue, 9 Sep 2003 14:39:58 -0400, "Li, Kit-Wing" <[EMAIL PROTECTED]> wrote: > This may not be the right thread but I'd like to see if someone could point > me to the right direction. I'm writing a CGI script to show current > performance of the A

RE: form submission DoS

2003-09-10 Thread Wiggins d'Anconia
On Wed, 10 Sep 2003 00:53:06 +0200, Kevin Pfeiffer <[EMAIL PROTECTED]> wrote: > [a little OT in a general way...] > > This was sent to another list today and I am wondering what the answer might > be... > > > The following data was submitted fr

RE: Perl/Linux problem.

2003-09-11 Thread Wiggins d'Anconia
On Thu, 11 Sep 2003 15:37:05 +0500, "Sara" <[EMAIL PROTECTED]> wrote: > I recently installed RH 9.0 on my machine with pre-configured Apache and Perl. > > I made a simple script "HELLO WORLD" to check the Perl and it gave me a continuous > error

RE: Cookies

2003-09-18 Thread Wiggins d'Anconia
On Wed, 17 Sep 2003 20:33:00 -0800, "Alejandro Chavarria - CyPage" <[EMAIL PROTECTED]> wrote: > Hey, > > I have a script and I want to allow an administrator log on to it. Once > logged in they can change things... etc. Basically stuff I don't

RE: Guest Book design / mySql / perl

2003-09-19 Thread Wiggins d'Anconia
On Fri, 19 Sep 2003 09:51:20 -0500, David Gilden <[EMAIL PROTECTED]> wrote: > Hello, > > I am taking over a site that was on a M$ server and redoing the Guest book and form > pages > in PERL. Question I have is the design of database. > > I hav

Re: Cookies

2003-09-20 Thread Wiggins d'Anconia
Alejandro Chavarria - CyPage wrote: Thanks for your reply Wiggins d'Anconia. I understand the part about just setting the cookie to an empty value, but I don't understand the part about the secret key and a check failing. Could you explain further? When would this happen: initially s

RE: POSIX 'strftime' and time zones

2003-10-01 Thread Wiggins d'Anconia
On Tue, 30 Sep 2003 23:57:16 -0500, David Gilden <[EMAIL PROTECTED]> wrote: > Quick question, > > the server is on west coast time (California) > client is in Texas, central time (+2 hours) > > How can I add two hours to offset for central time?

Re: Email with attachment and HTML email

2003-10-07 Thread Wiggins d'Anconia
On Tue, 07 Oct 2003 13:32:02 +0100, Greg Bolshaw <[EMAIL PROTECTED]> wrote: > Octavian Rasnita wrote: > > > I know to use the Net::SMTP module, but I would like to send an email which > > has a fiew file attached and to be an HTML type because I w

Re: CGI Scripts

2003-10-10 Thread Wiggins d'Anconia
Phillip Bruce wrote: Hi, I have the following form that I use as survey I that I'm building for my web site. Now here is the CGI script I've written so far. #!/usr/bin/perl # use Mail::Internet; use strict; # always use warnings; # usually, at least during development # Collect parameter

Re: CGI Scripts

2003-10-10 Thread Wiggins d'Anconia
Phillip Bruce wrote: Wiggins d'Anconia wrote: Thanks for the suggestions. Now I get totally different error. I ran this on the command line and get following: % ./survey.cgi Content-type: text/html Substitution replacement not terminated at ./survey.cgi line 37. Here is my code changes

Re: Reg ex help

2003-10-10 Thread Wiggins d'Anconia
Johnstone, Colin wrote: Gidday All, I am writing a print this page script. I have slurped in the page to be printed and now want to strip out the stuff to print. To do this I have created the following tag sets in the html page. I need to write a regex to achieve this. In general attempting

Re: Best Token Char For Template

2003-10-10 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: 1 - What is the best char to use in a file template? Also, please give me a good regex? A character *guaranteed* (which is a very strong word) not to exist in the template, but that's in an ideal world... I will have a formatted html page with some keys that I want to

Re: CGI Scripts

2003-10-11 Thread Wiggins d'Anconia
Phillip Bruce wrote: Wiggins d'Anconia wrote: Well, I'm using perl 5.8 and I'm now getting these error messages. The errors you are getting now are because of the stricture. You have to declare the scope of all of your variables (among other things). perldoc strict

Re: CGI Scripts

2003-10-12 Thread Wiggins d'Anconia
Phillip Bruce wrote: Wiggins d'Anconia wrote: In the following line you need a 'my' to give the variable scope $mail = Mail::Internet->new(Header => $head, Body => [$body], Modify => 1); Ok, I did that and

RE: Installing modules

2003-10-16 Thread Wiggins d'Anconia
http://groups.google.com/groups?q=wiggins+CPAN+o+conf+group:perl.beginners.*&hl=en&lr=&ie=UTF-8&oe=UTF-8&group=perl.beginners.*&selm=200309101906.h8AJ6To30565%40smapp01.siteprotect.com&rnum=2 See if that helps. You will have to have the mysql-devel libs installed al

Re: Finding the current path

2003-10-26 Thread Wiggins d'Anconia
Octavian Rasnita wrote: Hi all, Does anyone know if it is possible to find out the path in which a perl program is launched? For example, I am in /var/www and I run the following command: perl /home/script.pl And I want it to give me the result: /var/www Thank you very much. Check out FindBi

Re: HTTP::Request

2003-11-06 Thread Wiggins d'Anconia
Tobias Fink wrote: Hi, why doesn't my $ua = LWP::UserAgent->new; my $res = $ua->request(GET 'http://www.google.de/search', q => 'asdasd'); if ($res->is_success) { my $server_response = $res->content; print $server_response; } print the html-source of http://www.google.de/search?q=asdasd ?

Re: removing apache

2003-11-06 Thread Wiggins d'Anconia
BetaGamma wrote: Hi guys... If I want to remove my apache server do I need to only delete the $HOME/apache directory and delete the enteris from my .cshrc or anything else is also required. This is a Perl list, there are many lists for apache questions. There are way to many possiblities to e

Re: MySQL beginner's script

2003-11-22 Thread Wiggins d'Anconia
Teresa Raymond wrote: Hello, I was wondering if anyone could help me solve this problem. The script appears not to be connecting to the database. This script prints "Here we go" but never prints "Database connected". I used the format that the hosting company supplied. "DBI:mysql:$database:loc

Re: Rounding Off

2003-11-22 Thread Wiggins d'Anconia
Mike Blezien wrote: Hello, I need the ability to round off dollar amounts to the nearest 100th of a dollar amount, IE $14.9564 to $14.96 or $132.1123 to $113.11 what is the best way to accomplish this ?? perldoc -q 'have a round' perldoc -f sprintf http://danconia.org -- To unsubscribe, e-mail

Re: pagination of dbi results on html browser

2003-11-28 Thread Wiggins d'Anconia
A L wrote: Hello [EMAIL PROTECTED], This continuation post is from another post at [EMAIL PROTECTED]; it's posted here because this is more relevant to CGI. Previously, I had 2 questions, one being pagination (the other question is yet addressed until pagination issue is understood). Now, afte

Re: CGI.pm question

2003-12-02 Thread Wiggins d'Anconia
Greg Zartman wrote: I'm relatively inexperienced at using this module as I've always preferred coding my own cgi functions. A question: If one were to use the CGI::Safe CGI subclass to turn-off uploads, does this shut off uploads in general for the cgi session or is it required that one use CG

Re: Bad referrer!

2003-12-06 Thread Wiggins d'Anconia
Sara wrote: There was a script which people were using remotely, so I have to add this simple subroutine to check referrers. Currently, the site is getting approx. 20,000 hits per day. I don't think you are using the correct ENV variable. The referer tells you what page the user was linking from

Re: How to verify whether a directory exists

2003-12-06 Thread Wiggins d'Anconia
Please don't cross post, if your question is CGI based then use that list, otherwise use the other... B. Fongo wrote: I want to use mkdir(blah blah, o777), but want to first find out whether the directory "blah blah" exists. I'm not if the -e option will bw right here. Let's say: unless

Re: sendmail error: No reciient address found in header

2003-12-08 Thread Wiggins d'Anconia
B. Fongo wrote: It's my first time to use sendmail. I want to my script to send a mail to [EMAIL PROTECTED] or whoever is in the To: line. The script warns:"No recipient name found in the header" and dies, even though there's a recipient. I'm puzzled. ### #

Re: Calling JavaScript from Perl

2003-12-25 Thread Wiggins d'Anconia
Please bottom post. Charlie somerville wrote: Not neccisarily, javascript can be a server side for example in ASP you can set the <%@ Language=""%> bit to <%@ Language="javascript" %> Hence the words "in general" http://danconia.org "Wiggins

Re: Help with PPM install

2003-12-25 Thread Wiggins d'Anconia
Charlie somerville wrote: Shouldn't you bbe posting to perl.scripts? i mean, cross posting is rude so don't do it Shall we mention spamming the list posting about threads that are ancient, top posting, and in general not being terribly helpful, 'perl.scripts'?? http://danconia.org "Ash Singh

Re: Hit counter

2003-12-25 Thread Wiggins d'Anconia
Please bottom post... Charlie somerville wrote: You don't need to get that from a database! All you havve to do is put a lock on a file read the file, increment it write the file and take the lock off, easy! Without knowing more about the OP's design how can you possibly determine whether a DB is

Re: php testing in my pc

2003-12-25 Thread Wiggins d'Anconia
Please bottom post Charlie somerville wrote: POST TO THE DAMN PHP NEWSGROUP NOT THIS ONE! There are certainly more polite ways to indicate that a poster's question is off topic for a particular group... http://danconia.org "Daniel Hurtado Brenner" <[EMAIL PROTECTED]> wrote in message news:[

Re: Script within a script

2004-01-17 Thread Wiggins d'Anconia
Barbara Lindsey wrote: I haven't seen this before. Can you do this to add more subs to a module without making a parent module out of them? With the 'system' definitely not, it executes in a separate process completely. 'require' simply loads the code, which may or may not have subs in it. In

Re: help with progress bar -test site

2004-01-18 Thread Wiggins d'Anconia
zentara wrote: So now all you have to do is setup the mailings. For example, this code should work, but there are many mail modules available to make it easier. my $mailprog='/usr/sbin/sendmail'; my $email = $emailaddr; my $from = '[EMAIL PROTECTED]'; open( MAIL, "|$mailprog -t" ) || sa

Re: use lib "../" for javascript and css files?

2004-01-25 Thread Wiggins d'Anconia
Richard Heintze wrote: I have a perl cgi file that works fine. However, I want to move it into a sub directory -- the cgi-bin directory for Apache HTTPD is just getting too crowded. I know that feeling... So I created a directory and moved my file. It could not find my evidence_db.pm file (which d

Re: db to HTML with checkboxes

2004-02-03 Thread Wiggins d'Anconia
Andrew Gaffney wrote: I have a Perl CGI script that runs a query against a MySQL table. I have about 20 boolean values that I want shown as checkboxes in the produced HTML, but I don't want to have to do something like the below for every value. The key to this is contriving good names for the

Re: Deleting a file(s) with variables _HELP!

2004-02-03 Thread Wiggins d'Anconia
Luinrandir Hernsen wrote: 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 wildc

Re: db to HTML with checkboxes

2004-02-03 Thread Wiggins d'Anconia
Andrew Gaffney wrote: Wiggins d'Anconia wrote: Andrew Gaffney wrote: I have a Perl CGI script that runs a query against a MySQL table. I have about 20 boolean values that I want shown as checkboxes in the produced HTML, but I don't want to have to do something like the below for e

Re: How to explicitly declare an array of hashes?

2004-02-08 Thread Wiggins d'Anconia
Richard Heintze wrote: Is there a way I can explictly declare that each array cell contains a hash? Only with a loop of some sort. Here is the only way I know to do it: my @PCEs=[]; This does not do what you think it does. This is assigning an anonymous array reference into the first element of

Re: How to explicitly declare an array of hashes?

2004-02-08 Thread Wiggins d'Anconia
Jan Eden wrote: Richard Heintze wrote: Is there a way I can explictly declare that each array cell contains a hash? Here is the only way I know to do it: my @PCEs=[]; while ($Data->FetchRow()) { my %dh = $Data->DataHash(); $PCEs[$cn]{$dh{"id"}} = $dh{"ridPCE"}; } This "my" declaration only says

Re: How to explicitly declare an array of hashes?

2004-02-08 Thread Wiggins d'Anconia
Please group reply so everyone can help and be helped, and bottom post. Richard Heintze wrote: Wiggins and Jan, Thank you very much for such an extremely prompt response. You are right, I want my @PCEs = (); I'm using the Win32 ODBC API on acres of legacy code that does not

<    1   2   3   4   5   >