Re: perl script as binary

2003-08-21 Thread David T-G
hen you weren't expecting it. Frankly I'd rather something like this than a remote script that can connect to bounce the box; the latter seems entirely too hackable and now you've just given away root access entirely. HTH & HAND :-D -- David T-G * There

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

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

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

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: 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: 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: 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: 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
} 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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
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: 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: 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: 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: 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-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-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: 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: 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: 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: 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: [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: [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-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: 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: 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: 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: At least a number of characters - regular expressions

2002-06-09 Thread David T-G
[EMAIL PROTECTED] :-D "I may not know much perl but I sure know regexps" T-G -- 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.justpicko

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: 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: 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: 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: 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: 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
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: [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
% % 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: 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: 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: 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: 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: 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: 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: 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
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
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-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-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
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
il. --HTML-email-is-really-bad which properly describes the message body in the headers, leaves a blank line to identify the header end and the body begin, and then lays out the body pieces. No, I don't know how to write it in perl. I think I'd feel dirty if I did; this is ba

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: 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: 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