RE: fetchrow_hashref

2002-11-14 Thread wiggins
See inline comments. On Thu, 14 Nov 2002 11:22:09 -0800, "T. Murlidharan Nair" <[EMAIL PROTECTED]> wrote: > Hi!! > I am retriving data in a while loop using fetchrow_hashref > How do I assign it to another hash. I am trying the following > In

RE: Finding out the file name

2002-11-19 Thread wiggins
This isn't possible, and even the pages where you specify the full file name may not actually indicate that a file with that name actually exists, unless you are fetching your own site and know it isn't being dynamically generated. A URL ending in a / either just the domain or a particular subdi

Re: listing perl modues on system

2002-11-21 Thread wiggins
I get no documentation found for this method (solaris w/ 5.6.1), but I would imagine that would only list the base modules. If you are on unix the following is more elegant, from the perldoc perlmodlib page (not sure why it took me so long to find again, grr..) "To find out all modules installe

RE: Question about wantarray()

2002-11-26 Thread wiggins
Well there is the obvious place to start (perldoc -f wantarray): wantarray Returns true if the context of the currently executing subroutine is looking for a list value. Returns false if the context is looking for a scalar. Returns the unde

RE: 5.005_03 vs. 5.8

2002-12-03 Thread wiggins
On Mon, 2 Dec 2002 21:28:49 -0600, "Scot Robnett" <[EMAIL PROTECTED]> wrote: > I am working with a university on a web project which entails setting up a > new server. We're going with Red Hat Linux on Dell hardware (RAID 5 > configuration), but I

RE: 5.005_03 vs. 5.8

2002-12-04 Thread wiggins
On Wed, 4 Dec 2002 11:03:37 -0600, "Scot Robnett" <[EMAIL PROTECTED]> wrote: > Modules that are not pure perl have some sort of compiled > supporting file associated with them True. > and must be installed by root using a 'make install'. Fals

RE: use_named_parameters()

2002-12-10 Thread wiggins
The method has been removed. From the docs: Version 2.57 6. Removed use_named_parameters() because of dependency problems and general lameness. http://stein.cshl.org/WWW/software/CGI/ I think "param" is now the preferred method. http://danconia.org

Re: script runs in console but not in browser

2002-12-10 Thread wiggins
On Tue, 10 Dec 2002 12:35:56 +0100, "Mystik Gotan" <[EMAIL PROTECTED]> wrote: > #!/path/to/perl -wT > use strict; > use warnings; > > That might help. > Any reason to use -w and use warnings? http://danconia.org -- To unsubscribe, e-mail: [EM

RE: can we use "system()" inside cgi ?

2002-12-10 Thread wiggins
You need to read up on tainted variables, I think. perldoc perlsec The problem isn't that it is a CGI, pretty sure the problem is that it is setuid. http://danconia.org On Tue, 10 Dec 2002 07:20:16 -0800 (PST), Admin-Stress <[EMAIL PROTECTED]> wr

RE: Installing CGI.pm in RedHat 8.0.

2002-12-10 Thread wiggins
On Tue, 10 Dec 2002 06:51:27 -0800 (PST), Admin-Stress <[EMAIL PROTECTED]> wrote: > I dont know why, in my OTHER RedHat 8.0 installation, I cant find CGI.pm. I did >install perl5.8.0. > I believe in RH8.0 the CGI module is in a separate RPM. Che

Re: automatically downloading files into a certain directory

2002-12-12 Thread wiggins
On Thu, 12 Dec 2002 08:01:59 -0500, "Christopher G Tantalo" <[EMAIL PROTECTED]> wrote: > Anette Seiler wrote: > > > Dear members of the list! > > > > I want to do something where I am not sure it can be done with perl... > > > > Basically a user

RE: GD Graphs

2002-12-12 Thread wiggins
O'Reilly offers two books (or they claim the second as of Dec) on this subject that you might want to look into, I have not read/seen either so cannot provide a review sorry. http://www.oreilly.com/catalog/prowg/ http://www.oreilly.com/catalog/perlgp/ (December) http://danconia.org ---

RE: cronjob via perl

2002-12-12 Thread wiggins
You could setup the script to run through CGI and then use cron on another box to curl, lynx, LWP, etc. the script at your intervals. This is obviously less secure, but you could do things like require a password, check the IP of the machine doing the call (though this can be spoofed as well, ju

RE: start_tr

2002-12-13 Thread wiggins
I don't believe there is a start_tr() method, which would explain the problem :-). Check out the POD documentation for the CGI module by either issuing perldoc CGI or here: http://search.cpan.org/author/JHI/perl-5.8.0/lib/CGI.pm In particular seach for: "This is extremely useful for creating

RE: 2 Code Interpretation ?s

2002-12-17 Thread wiggins
One more that the other poster didn't mention: perldoc perlretut This goes over Regular Expressions in a slightly higher level than just Perl's thoughts on the subject. http://danconia.org On Tue, 17 Dec 2002 05:41:57 -0800 (PST), Will <[EMAIL P

RE: CGI scripts permissions

2002-12-24 Thread wiggins
This is going to depend somewhat on your setup, mainly what user the web server is running as and what group it might be in. You could probably set your script to be 710 if your web server is in the same group as you but not the same user as you. Or if you go to 711, then anyone can execute the

RE: Post Method versus Get Method

2003-01-07 Thread wiggins
There are many reasons to choose one or the other. A good one for POST is file uploads, where the input values could be very very large (think mega or giga bytes of data) or binary which would have to be encoded and then unencoded in some manner, whereas this is less of a problem over a stream.

Re: Post Method versus Get Method

2003-01-08 Thread wiggins
On Wed, 8 Jan 2003 10:02:20 -0800, drieux <[EMAIL PROTECTED]> wrote: > > On Wednesday, Jan 8, 2003, at 01:21 US/Pacific, Gary Stainburn wrote: > [..] > > The only benefits of using GET that I can think of is that you can > > emulate a > > form by

RE: ISP won't install Perl modules

2003-01-17 Thread wiggins
On Fri, 17 Jan 2003 15:18:42 +0100, Rene Verharen <[EMAIL PROTECTED]> wrote: > Hi all, > > My ISP won't install some Perl modules I want to use (Email::Valid and > Mail::Address). > Is there a way to install these modules in some directory I have

RE: XML with perl

2003-01-17 Thread wiggins
On Fri, 17 Jan 2003 15:00:22 +, Paluparthi Kumar <[EMAIL PROTECTED]> wrote: > Hi, > > I am using perl for the first time. Can anyone please send me some links where I can >find information and examples of Perl modules for XML programming. >

RE: Possibly OT, but CGI related.

2003-01-23 Thread wiggins
On Thu, 23 Jan 2003 03:41:30 -0800 (PST), Will <[EMAIL PROTECTED]> wrote: > Not about perl, but CGI... > > Does anyone know why it would be more secure not to > allow HTML files in a cgi-bin? > > I was working on a project with both perl cgis a

RE: Hash of hash crash!

2003-01-23 Thread wiggins
On Thu, 23 Jan 2003 12:54:25 -0500, Ed Sickafus <[EMAIL PROTECTED]> wrote: Not sure if this is it, but try lowercasing 'if'. I believe Perl is case sensitive in this respect. > If ($tmp{$keyinner} == "LN") > > "BUGS/ Adding or alteri

RE: HoH crash

2003-01-23 Thread wiggins
On Thu, 23 Jan 2003 13:27:31 -0500, Ed Sickafus <[EMAIL PROTECTED]> wrote: > That did it!! > Perl is sensitive to case -- If doesn't compile, if does. :) > Thanks for the help. Ed > > Glad we finally got that taken care of, whew. :-) http://d

RE: HoH Crash II

2003-01-23 Thread wiggins
On Thu, 23 Jan 2003 14:59:07 -0500, Ed Sickafus <[EMAIL PROTECTED]> wrote: > -- Back to square one? > I think you are still having problems with the notion of what the key is and what the value is > # I define 3 variables ... > > $TS =

RE: Number format control

2003-01-29 Thread wiggins
On Wed, 29 Jan 2003 14:02:47 -, "Jattie van der Linde" <[EMAIL PROTECTED]> wrote: > c syntax equivalent: printf ("%3.0f",Value); /*if value = 123.456 result would be >123*/ > > What is the equivalent perl command outputting a floating point

Re: Search for a string

2003-02-03 Thread wiggins
On Mon, 03 Feb 2003 13:09:47 -0500, Jeremy Schwartz <[EMAIL PROTECTED]> wrote: > Not trying to reinvent the wheel. > > I am using Analog for the analysis. > > I am trying to split the server combined log into individual vhost logs. I > can then r

Re: Search for a string

2003-02-04 Thread wiggins
On Tue, 4 Feb 2003 00:14:30 -0900, "Dennis Stout" <[EMAIL PROTECTED]> wrote: > Sheesh. > > Wil ya'll just help a man with a perl problem instead of battering him with > other ways to do it? > At least one of these lists is a beginners list, the ot

RE: Cookie INfo

2003-02-04 Thread wiggins
On Tue, 4 Feb 2003 16:22:17 -0500, "Kipp, James" <[EMAIL PROTECTED]> wrote: > Can anyone point me to some good docs for using cookies with Perl/CGI. I can > only seem to find docs using Javascript. I have already read the cgi.pm > docs, but looking

RE: Using variable to another script

2003-02-06 Thread wiggins
On Thu, 6 Feb 2003 13:59:51 +0800, "Glynn S. Condez" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a question. From a web form, i pass the info to a cgi script. > > i have this variable on the script: > > $username = param('username'); > $las

RE: Finding the size of the structure/data type

2003-02-12 Thread wiggins
On Wed, 12 Feb 2003 10:45:20 +0530, "Roopa.Mahishi" <[EMAIL PROTECTED]> wrote: > > > Hello friends, > I would like to find the size of the data type /struct in Perl. Is there any > command/keyword available in Perl which i can use in my scripts?

Re: Parsing a file as it is being served

2003-02-18 Thread wiggins
On Tue, 18 Feb 2003 10:39:25 +, Philip Pawley <[EMAIL PROTECTED]> wrote: > > Thanks for the suggestions. The problem is I need to start from someone requesting >an html file, not someone calling a script. > > How can I do it? > mod_perl.

RE: Getting a STDOUT value

2003-03-07 Thread wiggins
Remember to include the list in your replies, so that everyone can help and be helped. On Fri, 7 Mar 2003 08:52:04 -0600, "Scot Robnett" <[EMAIL PROTECTED]> wrote: > Thanks - but I don't understand how that redirect works. I've read about > open, s

RE: mod_perl books, cpan modules.

2003-03-21 Thread wiggins
On 20 Mar 2003 09:33:56 -, entius <[EMAIL PROTECTED]> wrote: > I want to learn mod_perl and there're two books who talk about this. > Now a third has arrives and it's talking about 2.0 mod_perl but i am a > Lincoln Stein fan and i want the "Wr

RE: Downloading Email Attachement from POP3 Server

2003-03-26 Thread wiggins
On Wed, 26 Mar 2003 16:39:16 +0530, "Akshay Kumar" <[EMAIL PROTECTED]> wrote: > Hi All, > > Daily a mail with some attachment is sent to an email account. I have got full > access of the email account with pop reading facility. Now, I need to dow

Re: "safe" system()?

2003-03-28 Thread wiggins
On Fri, 28 Mar 2003 12:00:09 -0800, drieux <[EMAIL PROTECTED]> wrote: > > On Friday, Mar 28, 2003, at 11:01 US/Pacific, Jerry LeVan wrote: > > And BEFORE wiggins whines at me for not pointing at > putting stuff that could

RE: Why not Class Objects

2003-06-27 Thread wiggins
On Fri, 27 Jun 2003 09:01:59 -0500, "Daniel J. Rychlik" <[EMAIL PROTECTED]> wrote: > I have been a perl developer or about a year and half and I have a question. How > come perl does not support the use of Class Objects ? > What do you mean b

RE: select multiple

2003-07-10 Thread wiggins
On Thu, 10 Jul 2003 11:39:23 -0800, "Dennis Stout" <[EMAIL PROTECTED]> wrote: > Beginners-CGI; > > If I have a form with a lot of values (such as Tech ID, Tech Name, Tech > Queues..) and one of the fields is a select multiple, with a varied amount

Re: Net::FTP

2003-07-11 Thread wiggins
Please don't top post. On Thu, 10 Jul 2003 18:42:45 -0600, "Gregg R. Allen" <[EMAIL PROTECTED]> wrote: > > If you don't mind escaping to the shell, this is how I get a list of > files I want to ftp. > > > #This returns a list of files to be ftp

RE: Clearing a Form

2003-07-21 Thread wiggins
On Mon, 21 Jul 2003 17:05:57 -0500, Peter Fleck <[EMAIL PROTECTED]> wrote: > I have a cgi that creates a form and then receives the output of the > form and sends it to a mysql database. It also displays the form > information as a preview of wha

RE: urgent help needed! (PHP translation)

2003-07-22 Thread wiggins
On Tue, 22 Jul 2003 17:10:36 +0430, "S. Naqashzade" <[EMAIL PROTECTED]> wrote: > Dear Friends, > I need to trnaslate thid code to PHP. > Can any one help me? This is a Perl list. You might try a PHP list for PHP help, even if it is coming from Pe

RE: Clearing a Form

2003-07-22 Thread wiggins
On Tue, 22 Jul 2003 09:33:28 -0500, Peter Fleck <[EMAIL PROTECTED]> wrote: > Thanks to all for the help on 'clearing the form' and for forcing me > to face the design limitations. > As long as you realize them then that is most of the battle, al

RE: PHP vs Perl

2003-07-22 Thread wiggins
On Wed, 23 Jul 2003 00:39:30 +0300, "Octavian Rasnita" <[EMAIL PROTECTED]> 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

Re: PHP vs Perl

2003-07-23 Thread wiggins
On Wed, 23 Jul 2003 00:59:29 -0700, drieux <[EMAIL PROTECTED]> wrote: > > On Tuesday, Jul 22, 2003, at 20:10 US/Pacific, Wiggins d'Anconia wrote: > > Octavian Rasnita wrote: > [..] > >> Of course, he was talki

RE: Another Regex question.

2003-07-23 Thread wiggins
On Wed, 23 Jul 2003 21:58:52 +0500, "Sara" <[EMAIL PROTECTED]> wrote: > $TS = "THIS INPUT IS IN ALL CAPS"; > > $TS_cont = lc $TS; > > $TS now prints out "this input is in all caps" > > What If I want first letter in caps for every word in string

RE: Another Regex question.

2003-07-23 Thread wiggins
At some point I really do need to read that damn regex book...pass the advil please. http://danconia.org On Wed, 23 Jul 2003 17:51:09 -0400, "Hall, Scott" <[EMAIL PROTECTED]> wrote: > Sara, > > You can use "ucfirst". > > $TS =~ s/(\w+)/ucfirst l

RE: Preserve line endings via ftp

2003-08-04 Thread wiggins
On Mon, 4 Aug 2003 10:47:42 -0500, Peter Fleck <[EMAIL PROTECTED]> wrote: > Greetings, > > I'm using Net::FTP to move a file from a Linux server to a Novell > server. Before I move the file, I have perl change all the line > endings from unix-ba

Re: Mail::Send question

2003-08-05 Thread wiggins
On Tue, 5 Aug 2003 08:13:06 +0300, "Octavian Rasnita" <[EMAIL PROTECTED]> wrote: > What mail module can be used to send email messages with attachments? > I would prefer a module included in the perl package by default. > MIME::Lite is a good cho

RE: obtain web page contents with perl through a proxy server

2003-08-08 Thread wiggins
On Wed, 6 Aug 2003 21:07:50 -0700 (PDT), wendy soros <[EMAIL PROTECTED]> wrote: > Hi, > > I am a new perl user. I have a question of obtaining > web page contents with perl. Hope you can help me. > > Here is my question: how can I use perl to acc

RE: cpan module for mail login and scanning

2003-08-19 Thread wiggins
On Tue, 19 Aug 2003 14:08:37 +0200, Alex <[EMAIL PROTECTED]> wrote: > Hello cgi-people, > > is there such a module that logs into a pop3 account, scans the > content / headers and sends pop3 commands? > > the idea is to frequently log in into my

RE: Mail Reading and Parsing

2003-08-19 Thread wiggins
On Tue, 19 Aug 2003 09:46:11 -0600, "eliu" <[EMAIL PROTECTED]> wrote: > Hello everybody, > > Im looking for some modules that may help me in a proyect where all I > have to do is to analyze all the emails (which supposedly are erronous > mails) an

RE: [PBML] PLEASE USE [PBML] in your subject line

2003-08-22 Thread wiggins
On Fri, 22 Aug 2003 12:04:25 +0100, "brad" <[EMAIL PROTECTED]> wrote: > > > hi peep's > I don't post often but what i have found is that alot of you do not put > [PBML] in your subject lines, i get your posting direct to my trash > without it

RE: Secure Form Submission

2003-08-22 Thread wiggins
On Fri, 22 Aug 2003 05:48:14 +, Greenhalgh David <[EMAIL PROTECTED]> wrote: > Hi All, > > I need to implement a form that is submitted securely. My client does > not have access to SSL on his host. I was thinking in terms of a > session cook

RE: Call to a function is a seperate file

2003-08-25 Thread wiggins
On Mon, 25 Aug 2003 17:30:35 +0100, "Jattie van der Linde" <[EMAIL PROTECTED]> wrote: > How can I call a function from my main script file located in a seperate file i.e. > for instance a reusable piece of code that will generate the index of my s

RE: Net::FTP or similar

2003-08-26 Thread wiggins
On Tue, 26 Aug 2003 15:06:08 -0400, Andrew Brosnan <[EMAIL PROTECTED]> wrote: > Hello, > > Has anyone used Net::FTP to create a browser based FTP client? (I assume > that's one use for it) > > I have a client that needs to let their clients tran

RE: Installing/Uninstalling CPAN modules

2003-08-26 Thread wiggins
On Tue, 26 Aug 2003 19:20:03 +, Greenhalgh David <[EMAIL PROTECTED]> wrote: > This may be the wrong forum to ask this... > > How do I uninstall a module downloaded from CPAN? Specifically, I > cannot get the DBD::MySQL driver to install under

RE: automated file removal / cache clearing

2003-08-27 Thread wiggins
On Wed, 27 Aug 2003 16:18:00 +0200, Shahar Evron <[EMAIL PROTECTED]> wrote: > hi... > I'm working on a CGI program that creates some user-specific file on the > server when accessed. is there a good way to make sure theese files are > cleared whe

RE: automated file removal / cache clearing

2003-08-27 Thread wiggins
On Wed, 27 Aug 2003 10:28:46 -0400, [EMAIL PROTECTED] wrote: > Correct me if i'm wrong, you say use cron and a shell script (let's say bash) > instead of perl? > well, if there are any other ways of doing it instead of using cron, id love to head

Re: automated file removal / cache clearing

2003-08-28 Thread wiggins
On Thu, 28 Aug 2003 23:19:21 +0300, "Octavian Rasnita" <[EMAIL PROTECTED]> wrote: > But why forking more processes? > Right, but the same can be asked for the below... > The cgi program might check which of the files need to be deleted, then > c

Re: CGI and mySQL book, any recommendation.

2004-05-31 Thread Wiggins d'Anconia
Paul Archer wrote: Yesterday, Randal L. Schwartz wrote: By the way... it's consensus amongst experts that MySQL has hit nearly end-of-life. If you're starting a new project, use PostgreSQL instead. A real Database... not a database wannabe. The only reason to use MySQL these days is ignorance or

Re: CGI Book Advice sought ...

2004-09-15 Thread Wiggins d'Anconia
hcohen2 wrote: Recently I jumped in to the list and gave a correct answer, but unfortunately not really appropriate answer to the question asked. I took the 'Beginners' adjective for this list too seriously. Hence, to keep myself out of trouble, I think it is time to get another book on CGI fo

Re: moving files

2004-09-25 Thread Wiggins d'Anconia
Jeff Herbeck wrote: Hello, I am trying to start a "transloading" and webhosting company. This will allow users to login via apache .htaccess type authentication and then be able to put a url of a file into a form and the script will go get that file, download it to the webserver into their html d

Re: How to use sub directories in IIS and Apache HTTPD

2005-02-07 Thread Wiggins d'Anconia
Siegfried Heintze wrote: When I try to employ subdirectories my perl cgi programs stop working. This is because the "use" statements cannot find their files. I could convert the "use evidence_db;" statements to "require '../evidence_db.pm';" and that works. But this is painful. Surely there is an e

Re: Favorite Perl CGI Framework for Web Site Development?

2005-02-11 Thread Wiggins d'Anconia
Chris Devers wrote: On Fri, 11 Feb 2005, Siegfried Heintze wrote: I notice there are a lot of frameworks out there for .NET (eg, .NETNUK), PHP, and Java (eg AppFuse) programmers. These are sets of files that form a typical starter site (or skeleton) that have the basic common features for a web si

sorting and printing text files (was: hello all)

2005-02-17 Thread Wiggins d'Anconia
Don Doucette wrote: hello everyone. my name is don doucette and I am 38 years old and have been involved with computers since the Timex Sinclair. Ok. Please use a more informative subject line. I have recently set up a server and am hosting a web site and forum for my community association. I a

Re: cgi scripts as root or similar - best method

2005-02-25 Thread Wiggins d'Anconia
Chris Devers wrote: On Fri, 25 Feb 2005, Gavin Henry wrote: [...] the problem is [...] cdrecord needs to be run as root. I assume cdrecord is being invoked from a system command, right? Have you considered prefixing that command with `sudo`, and going into the sudoers file to allow the www user

Re: Calling subroutines

2005-03-21 Thread Wiggins d'Anconia
Denzil Kruse wrote: Hi, I have a script for a cgi form that covers about 20 pages, and want to name a subroutine to handle each page like this: page1, page2, page3, etc. Once the script figures out which page it should go to, I dont want to have to do this: if ($page == 1) { &page1() } if ($page =

Re: Variables in Modules

2005-04-13 Thread Wiggins d'Anconia
Ovid wrote: --- Sergio Pires de Albuquerque <[EMAIL PROTECTED]> wrote: I tried with our, importing that var and fully qualified it, but always it get the previous value. My question is: Which method is common to share data among apps? What Am I doing wrong? Also, I always use "strict" and "warn

Re: PATH problem

2005-04-25 Thread Wiggins d'Anconia
TapasranjanMohapatra wrote: > All, > My script goes like this... > -- > #!/usr/bin/perl > print "Content-type: text/html\n\n"; > $cmd = "cat file_one"; > $content = qx!$cmd!; > print "$content"; > -- You should not shell out t

Re: About unoffical HTTP headers

2005-04-26 Thread Wiggins d'Anconia
Shu Cao wrote: > Hi, > > Sorry, my last email has some errors. The unofficial HTTP header should > look like "x: y" not "x=y". > > I am new to Perl CGI programming. And I encounter a difficult problem > wish you guys can help me. Thank you! Here is the problem, how can Perl > CGI program get th

Re: Alternative Modules

2005-04-27 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > we are currently using the Mail::Audit module to resend piped incoming > emails to a particular domain then sends it to various aliases emails > from a database. I'm trying locate a similar module but doesn't put alot > of the header garbage into the body of the em

Re: CGI form Caching problem

2005-05-03 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: [snip] > > I have tried sending all sorts of headers to the browser to stop it > caching the page but nothing has made a difference. So perhaps the problem > is not in the browser, but in apache somewhere?? > > anyone ever had this (or a similar) problem!! > Are

Re: Undefined subroutine Error

2005-05-09 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > occasionally we get this error, due to a mis coding error or type-O > error, but was wondering is there away to check, with a perl code, to > make sure the sub routine exists before displaying this system 500 > internal error message. the error I'm referring too is

Re: Multiple Languages

2005-05-13 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > are there Perl modules available to handle multiple language input like > from forms. we have a situtation where we may need to enter various > languages strings or characters and it's english counter-part version. > As there are many languages that use unique char

Re: Help wanted

2005-05-31 Thread Wiggins d'Anconia
Yuanxin wrote: > Hi, > I had a lot of data, which are all x-y values. I stored these data in MySQL > database. Now I wanna use Perl to get these data from database to build a > figure(2-dimensional) and people can use internet to see the figure. In > addition, when people see the figure via inte

Re: Perl Newbee

2005-06-03 Thread Wiggins d'Anconia
Yuga Chodagam wrote: > Hi all, > I am newbee to Perl. Could anybody please give me head start > with Perl programming? I am interested in playing with some CGI stuff > and want to sese the Perl's data manipulation power. > > > Thanks all. I appreciate any help. > > Yuga. > Though he

Re: Need a perl module

2005-06-07 Thread Wiggins d'Anconia
Tantalo, Christopher G wrote: > I use Mail::Box::Manager 2.00. Works pretty well for me. > +1 http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: quote problem and mysql

2005-07-15 Thread Wiggins d'Anconia
Bob Showalter wrote: > Andrew Kennard wrote: > [snip] > > No, you shouldn't have to do that. Your first approach is correct, so we > need to find out what's going wrong there... > Can you show us GenMainRecData? Are you sure it isn't the culprit here, possibly it is already doing data mungin

Re: MIME::Lite attachments

2005-07-17 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > we're setting up a script to attach mainly PDF files. And was wondering > when setting up the code to attach the file, what TYPE attribute is used: > > > $msg->attach(Type =>'', # WHAT TYPE HERE TO USE ?? > Path =>'/path/to/somefile.p

Re: SetEnv Variable from Apache

2005-07-20 Thread Wiggins d'Anconia
Robert wrote: > How do I use a variable that is set with 'SetEnv' in the Apache config file? > > Robert > > > Have you checked the %ENV hash? print $ENV{'VAR_NAME'}; http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with https post using LWP

2005-08-01 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi all, > > I'm trying send an https post: > > my $url = "https://some.secure.server/secure.dll";; > > my $ua = LWP::UserAgent->new; > > # assemble the request > # > my $request = HTTP::Request->new(POST => "$url"); > $request->content_type('application/x-www-form-urlencod

Re: Script execution time.

2005-08-03 Thread Wiggins d'Anconia
zentara wrote: > On Wed, 3 Aug 2005 03:00:01 -0700, [EMAIL PROTECTED] (Sara) wrote: > > >>I have to test/optimize a script on a shared server. The script contains a >>couple of mySQL queries etc. >> >>Is there a way that I can see the query execution time (like in phymyAdmin) >>and total script

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

2005-08-04 Thread Wiggins d'Anconia
David Dorward wrote: > On Wed, Aug 03, 2005 at 10:45:35PM -0700, Luinrandir wrote: > >>I want to create two web pages in two different windows >>from one CGI. > > > Each request gives one file, that's how HTTP works. You will need at > least two requests, with the script running twice (or two sc

Re: Insecure setuid?

2005-08-09 Thread Wiggins d'Anconia
Tantalo, Christopher G wrote: > Can anyone shed some light on what this error means? > Insecure $ENV{PATH} while running setuid at > /var/appl/sls/bin/driver.pl line 1104. > Line 1104 is > print `date`; > You shouldn't shell out to date anyways, especially in the above manner with n

Re: Clearing cookies

2005-08-16 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi all, > > I'm trying to clear a cookie using CGI::Cookies, and > can't seem to do it :( > > if ($clear_cookie eq 'yes') { > > my %cookies = fetch CGI::Cookie; > > print "getting cookie"; > > if ($cookies{'id'}) { > > print "clearing cookie"; >

Re: Regex Problem.

2005-08-18 Thread Wiggins d'Anconia
Sara wrote: > I am at a loss here to generate REGEX for my problem. > > I have an input query coming to my cgi script, containg a word (with or > without spaces e.g. "blood" "Globin Test" etc). > What I am trying to do is to split this word (maximum of 3 characters) and > find the BEST possible

Re: $ENV{'HTTP_REFERER'}

2005-08-24 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi, > > I want to know the web site that someone came from, > and so I was planning on reading $ENV{'HTTP_REFERER'} > to figure it out. How reliable is that? Do browsers > or other situations block it or obfuscate it? Is > there another way to do it or any other issues > i

Re: Force a file download for link

2005-08-30 Thread Wiggins d'Anconia
Denzil Kruse wrote: > > --- Bob Showalter <[EMAIL PROTECTED]> > wrote: > > > >> use CGI qw(:standard); >> >> open FILE, ...blah blah... >> print header('application/octet-stream'); >> print while ; >> > > > Thanks for the help Bob! Is there another way besides > the content-dispositio

Re: Exact matching using GREP.

2005-09-08 Thread Wiggins d'Anconia
Please bottom post Sara wrote: > No, it's not working, probably you didnt' get my question. How is it not working now? What Ovid sent is exactly what I would have answered so you probably need to provide more information. You mention man pages and switches to grep, there are two greps here,

Re: File Modification Date

2005-09-14 Thread Wiggins d'Anconia
Vance M. Allen wrote: > I'm trying to find out how to determine the date and/or time that a file was > created in a simple procedure. I have heard about a few different libraries > but the examples I have found haven't been very useful. > > The basic purpose I want to do is a simple footer prov

Re: problems with CGI.pm upload feature

2005-09-16 Thread Wiggins d'Anconia
Scott R. Godin wrote: > script is at http://phpfi.com/78748 > > I followed the instructions in CGI.pm as best I could, and from what I > read the upload() function is supposed to return a filehandle ? (it > doesn't say whether this is a direct FH to the tempfile or not) > > I had dome some prelim

Re: problems with CGI.pm upload feature

2005-09-17 Thread Wiggins d'Anconia
Bill Stephenson wrote: > On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: > >> Wiggins d'Anconia wrote: >> >>> Scott R. Godin wrote: >>> >>>> script is at http://phpfi.com/78748 >>>> >>>> I followed the instructions

Re: Forcing a "save as' dialogue box to come up on left click

2005-09-18 Thread Wiggins d'Anconia
Tony Frasketi wrote: Hello Listers I'm trying to find a way to force a download dialogue box to come up when the user clicks on a link on a web page (the link will primarily be for htm, .txt files on the server). Normally when the user left clikcs on the link the .htm or .txt file appears in

Re: Forcing a "save as' dialogue box to come up on left click

2005-09-19 Thread Wiggins d'Anconia
Tony Frasketi wrote: > Wiggins d'Anconia wrote: > >> Most browsers will provide this functionality if the return header is >> "application/octet-stream" rather than "text/html" or the like. In >> the case of IE you may have to fool the browser i

Re: Forcing a "save as' dialogue box to come up on left click

2005-09-19 Thread Wiggins d'Anconia
Tony Frasketi wrote: > >> What I was intending was to call the cgi script and rather than it >> printing the normal text/html header it would print the header directly, >> that way you are guaranteed to be operating the way you intended. > > Hi Wiggins > Thanks for

Re: html file with form and onSubmit="return check_form(this)"

2005-09-23 Thread Wiggins d'Anconia
Edgardo Lust wrote: > Hi. > > I have a html file (created with Dreamweaver) with one form and submit > button with > > >value="/contacto/message.htm"> > value="[EMAIL PROTECTED]"> > > > I need my perl script to return a valid value t

Re: Query on sendmail problem

2005-10-05 Thread Wiggins d'Anconia
Dale wrote: > Hi, > > I'm hoping someone can help me with an issue I've got with, I assume, > sendmail. > > I've copied part of a script below. If I use the first To: line (which > takes the e-mail address from a file - and this works) then a mail > doesn't arrive. If, however, I used the secon

Re: XML [AntiVir checked]

2005-10-11 Thread Wiggins d'Anconia
Naji, Khalid wrote: > Hi, > > Which Module could you recommend for the use of the XML (XML::Simple, > XML::Parser and XML::Writer, XML::DOM, XML::PATH...) ? > > Thanks in advance! > > KN > > Yes. Which one is most appropriate depends on what you need to do. I would generally suggest startin

Re: $CGI::DISABLE_UPLOADS

2005-10-18 Thread Wiggins d'Anconia
Bill Stephenson wrote: > I've been testing the "$CGI::DISABLE_UPLOADS" and "$CGI::POST_MAX" > variables and I don't think I've got it feature working as it should. > The docs say this: > > "CGI.pm also has some simple built-in protections against denial of > service attacks, but you must a

Re: hardcoded paths

2005-10-28 Thread Wiggins d'Anconia
Dermot Paikkos wrote: > Hi, > > I am moving a site from once host to another. There are lots of > hardcoded fully qualified paths to the localhost (EG > http://myserver/cgi-bin/someprog.pl?name=val & > http://myserver/css/mystyle.css). > > I am pretty sure this isn't good practise but I am not

Re: CGI Upload() for nonexistent files?

2005-10-28 Thread Wiggins d'Anconia
Joby Jones wrote: > Hello all, > I have a question about the CGI upload() > function. > > Why does it return a valid file handle to a file > that does not exist on the client (web browser) > machine, and what's the best way to handle this? > Presumably because this is really a cl

  1   2   3   4   5   >