Re: problems with sendmail within a cgi

2002-08-16 Thread t
rite ALL 100+ scripts > > within my companies cgi-bin within 3 weeks and could > > REALLY use the help:) > > ... > > open MAIL, "| '/usr/lib/sendmail' -t -i" or die "Could > > not open sendmail: $!"; > > > > print MAIL &l

Error: requires explicit package name

2002-08-30 Thread t
Hello:) i am working on a script and have come across a problem. if i call a variable from the preceeding form, it works correctly, BUT, if i declare a variable within the script, then try to use it as the "To:" fiels in an e-mail, it tells me that "Global symbol "$auto" requires explicit

Re: Error: requires explicit package name

2002-08-30 Thread t
Felix Thanks! That was just what i needed:) thia --- Felix Geerinckx <[EMAIL PROTECTED]> wrote: > on Fri, 30 Aug 2002 13:58:47 GMT, [EMAIL PROTECTED] (T) wrote: > > > "Global symbol "$auto" requires explicit package name" > > [...] > >

uninitialized values

2002-09-11 Thread t
E FOLLOWING STARTS WITH line 316) if ($OptOut eq "Yes") {print MAIL "\t-Do not use my information\n\n";} else {print MAIL "\t-not checked\n\n";} I am using the cgi.pm module on an IHS server. Besides the error, it also gives me a screen after i hit submit on the

ending a script

2002-09-12 Thread t
I have now got my script to work off of my html form (thanks for all the suggestions, turns out if i take out the eq out of the if/then statements, it works), but i have found a rather bizarre problem. run against the html form it works fine, BUT, if i just try to run the cgi script, it just ke

Perl problem:(

2003-02-14 Thread t
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 i had

Re: File upload question

2004-07-27 Thread T. Raymond
Hi Sean, I'm not sure but try taking out "$q ->" in front of your print statements. i.e.: print header(); my $value=$q->param('upload_file'); Also, in the above you set the value of my $value but then do not use it elsewhere in your script. In the below you end up using the value of my $value.

Re: Help needed in extracting html over HTTTPS protocol.

2004-08-03 Thread T. Raymond
Anas, I think it is doing that because it is the secure protocol. Presumably, I think that means that others can't tap into it unless they have a username and password or some other authorized access. If you're trying to extract from your own site, then I think you need to download the html into

need logic and one error help

2005-03-27 Thread T Raymond
locate $filename\n"; @rows = ; close(FH); print table({-border=>'l'}); print Tr(); print th('Weight').th('Employee ID').th('Last Name'). th('First Name').th('Hourly Wage').th('Hours Worked').

Re: need logic and one error help

2005-03-27 Thread T Raymond
Hi, This is a homework assignment but we are allowed to get help. --Tee T Raymond wrote: Hi all, Please advise me about my logic/syntax errors. I can't seem to figure out how to write in a logical sequence this code. I'm also getting an error which I don't understand whic

Re: need logic and one error help

2005-03-28 Thread T Raymond
Hi Charles and everyone, It turns out I was clearing my hash each time because it was re-initializing every time. Once I stopped doing that, my error went away. Thanks everyone for your tips and help, I will try to incorporate your tips in my programs. --Tee Charles K. Clarkson wrote: T

valid use of while expression

2005-03-30 Thread T Raymond
Hello everyone: If there is a word in $words[$n], is the following expression for while valid? --Teresa #get letters into array my @letters; my $length = 1; while ($words[$n]) { @letters=split//; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: valid use of while expression

2005-03-30 Thread T Raymond
Thanks Charles, I got what I wanted to work by replacing while with for. --Teresa Charles K. Clarkson wrote: T Raymond <mailto:[EMAIL PROTECTED]> wrote: : If there is a word in $words[$n], is the following expression for : while valid? --Teresa Define "valid". We can test the

DBI w/ DBD:ODBC vs DBI w/ DBD:mysql

2002-03-20 Thread Bob T
river = "DBI:mysql"; my $dbh = DBI-> connect( "$driver:$database", "bobby", "bobby") or die "Can't connect"; The error referred to database not being quoted but then after I used the first script to establish a connection the second script worked??? Sorry for the multiple questions ..Can anyone Help.. Bob T.

Fw: DBI w/ DBD:ODBC or DBD:mysql or DBIx-AnyDBD

2002-03-21 Thread Bob T
- Original Message - From: Bob T To: [EMAIL PROTECTED] Sent: Thursday, March 21, 2002 11:10 PM Subject: Fw: DBI w/ DBD:ODBC or DBD:mysql or DBIx-AnyDBD - Original Message - From: Bob T To: [EMAIL PROTECTED] Sent: Thursday, March 21, 2002 11:08 PM Subject: DBI w/ DBD:ODBC

Perl.cgi and permmisions in Netscape

2002-04-02 Thread Bob T
from all AddHandler cgi-script .cgi and so on.. The cgi script which runs in windows is chmod 644 and chmod +x So it is executable and anyone should be able to run it but Netscape via Apache won't?? Any Help!! Bob T -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cgi.pm

2002-04-02 Thread Bob T
In order to have perl work as a cgi scripter are any modules besides CGI.pm actually needed?? Bob T -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DBD mysql

2002-04-10 Thread Bob T
et my perl programs find the mod and use it just fine. Why can't query find DBD:mysql Bob T. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to send mail on IIS on a Windows server

2006-06-14 Thread Moore, George T.
Are you just printing lines and directing the output to the Linux Mail, or are you using the Perl Mail package on Linux? Mail::Sendmail should work platform independent. If that is what you are using, perhaps you might want to show a line of code that you are using that needs to be modified for XP

RE: Multiple .cgi scripts vs. one large script

2006-06-14 Thread Moore, George T.
It depends on how you are using your scripts. The most "expensive" aspect of the files is the IO used to read them from the hard drive they reside on. If you are calling on the scripts multiple times and they have to be read each time, rather than being cached in memory, then you only want to read

RE: Hyperlink return

2006-07-21 Thread Moore, George T.
You seem to be missing a quotation mark after $login. It looks like you have got yourself caught in a loop because you call one script from another without exiting the first one, so the first script becomes the location you are in. Try printing your location when you enter each script to see where

RE: Perl script problem

2006-08-29 Thread Moore, George T.
The cgi attachment is here, but the html didn't make it. The lack of comments comes from this: tie(%mail, "SDBM_File", "c09ex3", O_RDONLY, 0) or die "Error opening c09ex3. $!, stopped"; $mail{$email} = "$name|$comments"; untie(%mail); The line $mail{$email} = "$name|

RE: perplexing popup problem -- CGI .pm bug?

2006-08-29 Thread Moore, George T.
Take a look at the if statement below. I think you want <= not just < -Original Message- From: Mary Anderson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 11:42 AM To: beginners-cgi@perl.org Subject: perplexing popup problem -- CGI .pm bug? I am having a problem with popup-me

how to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
I am trying to require() a file using its absolute name. In command line mode everything works fine, but not in Apache: [Fri Feb 27 17:45:07 2009] [error] Can't locate /home/stf/public_html/test/arcv/public_html/../common.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thr

Re: how to require() a file?

2009-02-27 Thread Stanisław T. Findeisen
Dermot Paikkos wrote: If you are using mod_perl then you can use the PerlSwitches directive for -I/path/to/common.pl. Alteratively you use `use lib` in your ticket-list.pl Alternatively, I can do chmod g+r,o+r common.pl :-) STF ==

user sessions

2009-03-04 Thread Stanisław T. Findeisen
Hello, how to make user sessions? Something like: * log in using password * maintain session state across several executions of several scripts forming the application * log out Do I have to do it manually or is there something ready that you can recommend? Thank you. STF

Re: how to require() a file?

2009-03-04 Thread Stanisław T. Findeisen
Gunnar Hjalmarsson wrote: Stanisław T. Findeisen wrote: I am trying to require() a file using its absolute name. In command line mode everything works fine, but not in Apache: [Fri Feb 27 17:45:07 2009] [error] Can't locate /home/stf/public_html/test/arcv/public_html/../common.pl in

Oracle stored procedures and Perl CGI

2002-04-19 Thread T. Murlidharan Nair
Hi All: This for the benifit of all. I had a wonderful time discussing this topic with David Kirol (one of the members in the list) and was finally able to solve it. David had the following comments " I can think of two approaches. The first involves dynamically creating a temporary table

Re: URL for security issue?

2002-05-30 Thread David T-G
pointers page; the closet is Ovid's response to Fred Sahakian outlining some things to check when looking at a CGI script. % % - John HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to

Re: Problems with perl.beginners.cgi?

2002-05-30 Thread David T-G
anything wrong with the newsgroup, but the mail gatewaying is working dandily; I saw your post from today at 16:02 (your +0200 time) in my mailbox as <[EMAIL PROTECTED]> and there have been others as well. % % Regards % Richard HTH & HAND :-D -- David T-G * It&#x

Re: The size of the uploaded file

2002-06-03 Thread David T-G
n you can. % large files will be familiar with FTP. Typically true, but web browsers are pretty ubiquitous these days and many folks, believe it or not, don't know a thing about ftp :-)/2 HTH & HAND :-D -- David T-G * It's easier to fight for one's

Re: The size of the uploaded file

2002-06-03 Thread David T-G
looking at http://cr.yp.to/publicfile.html and reading up on some of Dan's other references. Alas, I do not know if publicfile accepts files; I kind of doubt it. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL P

Re: HTML in E-mail

2002-06-03 Thread David T-G
Fred, Camilo, et al -- ...and then Camilo Gonzalez said... % % Fred, % % Thank Jah this problem was recently successfully solved! Try this: % % open(MAIL,"|$mailprog -t"); % print MAIL "Content-Type: text/html\n"; % print MAIL "To: $comm\@courts.state.ny.us\n";

Re: HTML in E-mail

2002-06-03 Thread David T-G
to hear... You make the call ;-) HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl

Re: HTML in E-mail

2002-06-03 Thread David T-G
-mail as raw HTML, what am I leaving out? A Mime?: Yes; you have to specify your text body as an HTML document instead of just plain ascii. You also need to skip a line between your headers and your body, BTW. HTH & HAND :-D -- David T-G * It's easier to fight

Re: HTML in E-mail

2002-06-03 Thread David T-G
he had, which means we're pursuing the ultimate beating of a dead horse here :-) % % Scot Robnett % inSite Internet Solutions % [EMAIL PROTECTED] % [EMAIL PROTECTED] HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than

Re: HTML in E-mail

2002-06-04 Thread David T-G
John, et al -- ...and then John Brooking said... % % --- David T-G <[EMAIL PROTECTED]> % > % > ...and then Scot Robnett said... % > % % > % I don't personally share the 'HTML e-mail is evil' ... % > intimated that he had, which means we're pursuing % &

Re: HTML in E-mail

2002-06-04 Thread David T-G
so look into TMDA (even if it is written in Python ;-) to generate controllable return mail addresses if you can get away from LookOut! for your mail. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to

Re: HTML in E-mail

2002-06-04 Thread David T-G
oaging enforced across the system). % % Poor me stuck with SH1Tty mail programs at work. Start a revolution! :-) I should probably be quiet now; we've definitely strayed, unless you plan to bring up writing a perl MAPI module to talk to your mail and get rid of the spam... HAND :-D -- Dav

Re: HTML in E-mail

2002-06-04 Thread David T-G
gious topic. BWA HA HA HAHAHA! :-) HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngv

Re: The Cannons of True Faith

2002-06-04 Thread David T-G
drieux, et al -- ...and then drieux said... % % On Tuesday, June 4, 2002, at 07:59 , David T-G wrote: % [..] % >% % >% I didnt know this was such a religious topic. % > % >BWA HA HA HAHAHA! :-) % ... % % Is there an official site dedicated to the True Cannons of Perl? Don'

Re: Content Warning from MailScan to Mail-Sender!

2002-06-04 Thread David T-G
Eric, et al -- ...and then Eric Peers said... % % Take a look at % http://www.symantec.com/avcenter/venc/data/w95.hybris.gen.html for details % about the worm. Sadly, its no laughing matter. *snicker* For those of us not using Windows it is :-) % % Eric HAND :-D -- David T-G

Re: OT - attachments (was "Re: The size of the uploaded file")

2002-06-04 Thread David T-G
ou will see an extra line at the beginning and then some gibberish at the end. % % Thank you. HTH & HAND % % Teddy, % [EMAIL PROTECTED] :-D - -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to the

Re: Re[2]: Dynamically creating submit buttons

2002-06-05 Thread David T-G
odule to spit out the end of the html page? I'd think you'd save that part for when you're done writing to the page! HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- for

Re: System test.

2002-06-06 Thread David T-G
ECTED] and see what the list server tells you, but we're each entitled to our own opinion. HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http:/

Re: What database would your recommend?

2002-06-07 Thread David T-G
% % Teddy, % [EMAIL PROTECTED] :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg05240/pgp0.pgp Description: PGP signature

Re: [OT] Re: What database would your recommend?

2002-06-07 Thread David T-G
ick up, even if it isn't a four-letter word. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/S

Re: What database would your recommend?

2002-06-07 Thread David T-G
back and pin him down on what he meant since his statement so obviously contradicts the docs. % % % Paul Arsenault, CCNA % [EMAIL PROTECTED] Thanks & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up t

Re: webBotting a Job Hunt

2002-06-07 Thread David T-G
another story, but I don't think that's within this scope. 2) i want a copy :-) % % % ciao % drieux HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cooki

Re: What database would your recommend?

2002-06-07 Thread David T-G
arn not just DB but RDB interfacing. Thanks a lot for the pointer! HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx

Re: CGI::Graph --- description

2002-06-07 Thread David T-G
or me? Did you try search.cpan.org to look for it?? I did and landed at http://search.cpan.org/doc/MCHANG/CGIGraph-0.93/lib/CGI/Graph.pm and that seems pretty complete to me... % % Thanks HTH & HAND % % Konrad :-D -- David T-G * It's easier to fight for on

Re: Refresh dynamic content using query_string

2002-06-07 Thread David T-G
ader( -Refresh=>'5; URL=$URL2' ), Have you tried printing your header with "" instead of ''? I believe '' inhibits interpolation. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [

Re: Am I doing something wrong?

2002-06-08 Thread David T-G
re a block documentation instead of code, which works well enough. However, the format is code code =cut junk junk =cut morecode without a "start" involved. I'd love to tell you more about how pod is written but I don't know the format yet :-)

Re: Printing a single quoted string

2002-06-09 Thread David T-G
t;;>me Is there anything else in your code that we should see? HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/da

Re: At least a number of characters - regular expressions

2002-06-09 Thread David T-G
not so bad: [zero] [9:59pm] ~> echo "xxAyyBzzCnn" | \ perl -e 'while (<>) { print "GOTIT\n" if /[A-Z].*[A-Z].*[A-Z]/ }' GOTIT (One of the few times you'll see me use " if ".) % % Thank you for any tips. HTH & HAND % % Teddy, %

Re: Running a Perl program in background

2002-06-09 Thread David T-G
t;I am the child; away we go\n"; code code loop { forever } } else { print "fork bombed!\n"; exit 99 } according to the camel book... % % Thank you. HTH & HAND % % Teddy, % [EMAIL PROTECTED] :-D -- David T-G * It's easi

Re: Mastering Regular Expressions?

2002-06-09 Thread David T-G
I'm sure isn't licensed to be given away. There's the perlre man page you, in case that helps... % % Thank you very much! HTH & HAND % % Teddy, % [EMAIL PROTECTED] :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROT

Re: how to write pod (was "Re: [OT] RE: POD vs. # Comments (was Am I doing something wrong?)")

2002-06-10 Thread David T-G
- % check in the code you want, and DO NOT have chunkage of dead % code floating around - it WILL BITE YOU - someone will zone *grin* It sure will. % out why this 'ugly' little '=cut' is there... and suddenly % you are off in a new morass chasing code you forgot you % left b

Re: [OT] RE: POD vs. # Comments

2002-06-10 Thread David T-G
know how they map to anything else... Is there a primer outlining all of the =* directives and how they go together? So far all I know is that =cut ... =cut will conveniently comment out large chunks of code. Arrgh! TIA & HAND :-D -- David T-G * It's easier to fig

Re: [OT] RE: POD vs. # Comments

2002-06-10 Thread David T-G
Felix, et al -- ...and then Felix Geerinckx said... % % on Mon, 10 Jun 2002 18:56:20 GMT, David T-G wrote: % % > Yeah, but the point is that I still don't know what I'm doing. ... % % perldoc perlpod Ah! I was trying "perldoc pod" and every permutation thereo

Re: [OT] RE: POD vs. # Comments

2002-06-11 Thread David T-G
like to know where so that I can at least know how I missed it... TIA & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/

Re: Using strict and a configuration file?

2002-06-11 Thread David T-G
espace", the latter part of which may also be useful (no put intended ;-) in light of some of the scoping concerns brought up in other replies. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to

Re: Having problems with login

2002-06-12 Thread David T-G
ame, password compare name, password to hash thus letting you check every user instead of only the last one. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work)

Re: Any web site teaching comparison of Shell and Perl?

2002-06-13 Thread David T-G
here. A little more googling led me to http://www.unixreview.com/documents/s=2427/uni1021415397994/0205f.htm which covers how to do a task in shell and perl and might show you some of the differences. All in all, it's probably a very good question in need of a good answer. % % Amy HTH

Re: Perl Help

2002-06-13 Thread David T-G
"./fooble"))[9]; \ (undef,$min,$hour,$day,$mon,$year) = (localtime($mtime)); \ print "Year is $year, Mon is $mon, Day is $day, \ Hour is $hour, Min is $min\n";' Year is 102, Mon is 0, Day is 2, Hour is 3, Min is 4 See perldoc -f stat perldoc -f localtime and hav

Re: test.cgi hashing error

2002-06-23 Thread David T-G
%pages) # you meant this instead of (links %pages), no? { foreach =. "$link's page: $pages{$link}\n" } to iterate through your links and add the text you want to a $foreach variable, which ou can then spit out later. It feels like there should be a less clunky way, but ot

Re: test.cgi hashing error

2002-06-23 Thread David T-G
"$key" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors. [zero] [8:46am] ~> ^each^each my^ perl -we 'use strict; my %pages = (); foreach my $key (keys %pages) {print ".\n"}' [zero] [8:46am] ~> HTH

Re: test.cgi hashing error

2002-06-24 Thread David T-G
quot;google","http://google.com";); \ my $output = "" ; while ( my ($key, $page) = each %pages ) \ { $output .= qq{$key\n};}; \ print "OUTPUT:\n$output";' OUTPUT: http://google.com";>google http://yahoo.com";>yahoo [zero] [6:42am] ~>

Re: test.cgi hashing error

2002-06-24 Thread David T-G
thing like print < ... ... My favorite links: $output EndOfHTML and stick $output in where you want the links to show up. % > % > % % > % Thank you, HTH (more clearly this time!) & HAND :-D -- David T-G * It's easier to fight for

Re: What editor for Perl do you recommend?

2002-06-24 Thread David T-G
from ftp.vim.org or http://vim.org at your leisure. % % Thank you. % % Teddy Center for the blind: http://teddy.fcc.ro/ % Mail: [EMAIL PROTECTED] HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to

Re: What editor for Perl do you recommend?

2002-06-24 Thread David T-G
Teddy, et al -- ...and then David T-G said... % % ...and then Octavian Rasnita said... % % ... % % Can you recommend me a good editor for Perl scripts that runs under Windows? % % It should: % % vim. Maybe gvim if you're feeling decadent. I forgot to mention that it's lightweigh

Re: passing variables in POST

2002-06-25 Thread David T-G
uot;view source" or the equivalent in your browser (and if there isn't an equivalent then find a browser, even if just for a moment, that DOES have it) and look and see your data hanging right out there for all to see. HTH & HAND :-D -- David T-G * It'

Re: passing variables in POST

2002-06-25 Thread David T-G
Marty -- ...and then Marty Landman said... % % At 06:06 AM 6/25/02 -0500, David T-G wrote: % % >If the variables are in the page to be in the form to be % >sent back via POST, then the user can find them, period. % > % >Try it yourself: set up something via POST and then surf

Re: passing variables in POST

2002-06-25 Thread David T-G
Marty -- ...and then Marty Landman said... % % At 06:50 AM 6/25/02 -0500, David T-G wrote: % ... % >view the page source and you will see the form structure and the hidden % >(note that "hidden" simply means "don't bother to try to display on the % >page",

Re: passing variables in POST

2002-06-25 Thread David T-G
to call yourself an expert :-) % % Marty % % -- % SIMPL WebSite Creation: http://face2interface.com/Home/Demo.shtml TIA & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cooki

Re: Extract numbers from in between parentheses with regex

2002-06-26 Thread David T-G
t parens outside the save-your-place expression, so it changes from (\(\d+\)) to \((\d+)\) and if we knew that your target digits would be the first on the line like in the example instead of "My2Thing(803), Value(3)" which would mess us up, we could just use (\d+\) because it w

Re: Extract numbers from in between parentheses with regex

2002-06-26 Thread David T-G
know. Less than a week and I'm home in Atlanta! Yee ha! % % % Thank you botha again. % Kristofer. HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [E

Re: how to add

2002-07-07 Thread David T-G
it somewhere as you like. % % -- % Best regards, % Henk mailto:[EMAIL PROTECTED] HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECT

Re: CGI Calendar Script

2002-07-09 Thread David T-G
localtime in thirty seconds so I fell back on an additional module (which is quite handy, BTW). % % Thanks, % Roger HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune

Re: CGI Calendar Script

2002-07-10 Thread David T-G
Gunther, et al -- ...and then Gunther Birznieks said... % % At 08:55 AM 7/10/2002, David T-G wrote: % > ... % >searching (fruitlessly) for a calendar that will print multi-day events % >in a lined-up bar across the days instead of jumbling events together. % >Will yours work for

Re: Running CGIs offline

2002-07-22 Thread David T-G
f the box so that nobody can hit you while this is running). You know, it never hurts to check CPAN; maybe someone has already written a little web server in perl :-) % % Thank you for whatever you say! HTH & HAND :-D -- David T-G * It's easier to fight for

Re: Running CGIs offline

2002-07-22 Thread David T-G
Bob, et al -- ...and then Bob Showalter said... % % > -Original Message- % > From: David T-G [mailto:[EMAIL PROTECTED]] ... % > You know, it never hurts to check CPAN; maybe someone has % > already written % > a little web server in perl :-) % % HTTP::Daemon, part of

Re: question about cgi-lib.pl

2002-07-23 Thread David T-G
a directory in your @INC to find it effortlessly or anywhere you want to make yourself use the tricks in 4) above. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune

Re: Finding the country

2002-07-24 Thread David T-G
Teddy -- ...and then Octavian Rasnita said... % % Hello all, Hi! % ... % I would like to find the IP address of the visitor ISP, or something else % that can help me to find the country. That's easy; just use %ENV{REMOTE_ADDR} as Apache hands it to you. HTH & HAND :-D --

Re: Post to a second CGI script

2002-07-29 Thread David T-G
needs to be a part of the "post." I can never remember which is POST and which is GET, but just have your script pass the data over to MENU.CGI (are you on a Win machine, BTW, or do you ALWAYS SHOUT? ;-) in the environment as that-which-is-not-the-url method does. % % Any advice w

Re: Annoying 1

2002-08-01 Thread David T-G
} if ( $con eq "index2" ) { dofilemagic("index2.html") } if ( $con eq "main" ) { dofilemagic("main.html") } ... (though I'd prefer to use the lovely Switch module from CPAN in this sort of case)? % % Thank you, % -- % Kyle HTH & HAND :-D

Re: Annoying 1

2002-08-01 Thread David T-G
RE IT COMES\n"; print $content ; chop $content; \ > print "THERE IT WAS\n"; close(F);' HERE IT COMES THERE IT WAS Just what were you planning to do with $content anyway? HTH & HAND :-D -- David T-G * It's easier to fight for one'

Re: Annoying 1

2002-08-01 Thread David T-G
not really printing the whole file there, but line by line in each of your open loops! Take a look again at my example, and try printing your $content with a few more surrounding diagnostics (or, of course, dive into the debugger and just take a look at it directly). HTH & HAND :-D

Re: REMOVE ME from your mailing list!

2002-08-13 Thread David T-G
olor laser printer we cannot accept cash via email at this time. % % % % -- % To unsubscribe, e-mail: [EMAIL PROTECTED] % For additional commands, e-mail: [EMAIL PROTECTED] Don't read the lines just above this... Whatever you do, don't look at them. HTH &

Re: REMOVE ME from your mailing list!

2002-08-13 Thread David T-G
Troy, et al -- ...and then Troy May said... % % LOL This cracked me up! :) Happy to be of service :-) Thanks & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie

Re: new lines and stupidity

2002-08-14 Thread David T-G
the previous hour or more. Don't be so hard on yourself; it happens to us all :-) HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.

Re: Checking Form data

2002-08-14 Thread David T-G
o please at least keep me in the CC list if this thread goes off-list (which it probably should). HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTE

telnet/ssh web interface

2002-08-27 Thread David T-G
a session ID so that not only can the state be maintained but perhaps I could have a second session as well. Any thoughts? TIA & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fort

Perl CGI Object handling

2002-09-10 Thread T. Murlidharan Nair
Hi !! Well, I am not sure how to pose this question properly, but let me give it a try. I am have a cgi that reads the file and loads it into a mysql database. The entire file is read as an object and the methods associated with that object then does all the work like chacking the data formats and

Perl MSGraph

2002-10-28 Thread T. Murlidharan Nair
Hi!! I must confess this is not a Perl CGI question, but,since we have some Perl gurus here I am taking the liberty to ask this question, hoping that someone might be able to help me out. Has anyone used the MSGraph module developed by Mark Solomon? I am getting having problems with his example

Writings PERL CGI in windows environment

2002-10-28 Thread T. Murlidharan Nair
Hi!! Has any one written something similar to using a LWP user agent under windows environment ? If you have an example code that greatly help. Cheers always!! Murli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Unable to run cgi script

2002-11-11 Thread David T-G
Kelvin -- ...and then Kelvin McWha said... % ... % I *think* you have to qualify this, as action="http://localhost/home/kelvin/cgi-bin/myscript.cgi";> Certainly worth a try... HTH & HAND :-D -- David T-G * There is too much animal courage

fetchrow_hashref

2002-11-14 Thread T. Murlidharan Nair
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 while (my %hashRef =$sth->fetchrow_hashref()){ foreach $keys (keys %hashRef){ print $keys; print "$hashRef{

Another Hash ref question

2002-11-14 Thread T. Murlidharan Nair
=$$hashRef{$keys}; print "$self->{'_colData'}{$keys}\n"; # IT PRINTS FINE HERE #print "$keys\t"; #print "$$hashRef{$keys}\n"; } } } sub dump{ my $self = shift; my ($keys, $n_co

Checking for existance for data in a column

2002-12-03 Thread T. Murlidharan Nair
Hi!! I have a CGI that looks up data from a mysql data base and does a bunch of calculations. I only want to do calculations on the columns which contains any data. What I mean is for some colums there is no data available at all. So I don't want to do any calculations on them obviously. How do

  1   2   >