Re: Why perl lost steam...

2010-09-21 Thread Randal L. Schwartz
insert any modern language here]. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion --

Re: Auto detect timezone

2009-05-25 Thread Randal L. Schwartz
;FULL'); print $result->[0]{timezone}{content}, "\n"; ==> America/Los_Angeles As I would expect. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing

Re: FormMail within a CGI Script

2008-09-20 Thread Randal L. Schwartz
ACTION="http://somewebhost/forms?login=myusername&to=myaddress&confirm=confirmed.html&error=error.html"; Mike> METHOD="POST">, Mike> , Mike> , You need a Perl program, not a mashup of two different things. -- Randal L. Schwartz - Stoneheng

Re: CGI query and FORM

2007-12-13 Thread Randal L. Schwartz
set up *only* if you especially ask for it. And that's only for backward compatibility... you would be better to use the "param()" calls: use CGI qw(param); if (param('lab') eq 'pager') { ... } -- Randal L. Schwartz - Stonehenge Consulting Ser

Re: Stripping HTML code from emails

2006-11-09 Thread Randal L. Schwartz
il "Richard> in HTML format it looks messy, I am looking for a perl module that will "Richard> convert it to plain text or just strip the HTML. Does anyone have any "Richard> ideas on a module to-do this? See my article "A MIME is a terrible thing to waste", <

Re: Tracking/Blocking IPs.

2005-11-03 Thread Randal L. Schwartz
course, if your site is highly visible, expect *that* to be automated and worked around. There is no "ultimate" solution. Only a series of solutions depending on your willingess to spend money to keep the bad guys out. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 5

Re: Taking Multiple Values for The Same Form Field.

2005-10-29 Thread Randal L. Schwartz
o correlate fields, use distinct names: name1 email1 name2 email2 name3 email3 -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. et

Re: Book Recommendation: Secure web programming ?

2005-10-08 Thread Randal L. Schwartz
> input to an external program (for example, `sendmail'); Even better, don't let such things get near a shell. Use multi-arg exec or system, or multi-arg open to fork-and-pipe. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/

Re: New Website for Perl Beginners: perlmeme.org

2005-10-02 Thread Randal L. Schwartz
d a prominent link to learn.perl.org, I will withdraw my complaint. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite a

Re: Help w/Modules

2005-09-25 Thread Randal L. Schwartz
of loading all the data needed to process Bill> all the "run-modes" used in an entire application? That's why I created CGI::Prototype::Hidden... to lazy-load the code for the particular step of the application. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 7

Re: How big is too big?

2005-09-17 Thread Randal L. Schwartz
t and my own CGI::Prototype so much... all the heavy lifting is in testable modules. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.co

Re: What about perlcc?

2005-06-20 Thread Randal L. Schwartz
>>>>> "Augusto" == Augusto Flavio <[EMAIL PROTECTED]> writes: Augusto> Hi >>> did you pay attention to ANY of the answers? Augusto> Yes, I pay attention in all answers. Apparently not, because you're still trying to hide your source code. ST

Re: What about perlcc?

2005-06-19 Thread Randal L. Schwartz
>>>>> "Augusto" == Augusto Flavio <[EMAIL PROTECTED]> writes: Augusto> What i do?! Unless you're not the same person who asked this question earlier here, my question to you is: did you pay attention to ANY of the answers? have yo

Re: hide source code

2005-06-18 Thread Randal L. Schwartz
>>>>> "Glauco" == Glauco Magnelli <[EMAIL PROTECTED]> writes: Glauco> I would hide source code in my CGI Perl scripts. Just make it so crappy that no one will want to steal it. :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Re: Just to know why ?: is not working here

2005-06-15 Thread Randal L. Schwartz
_redirectto); Definitely *not*. That's using ?: in a void context, to be avoided. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining

Re: How to save the state of a CGI script

2005-05-29 Thread Randal L. Schwartz
>>>>> "Ankur" == Ankur Gupta <[EMAIL PROTECTED]> writes: Ankur> a.cgi calls b.cgi through POST method. Why? Why? CGI is a protocol that permits a server to launch a process to handle a browser hit. YOU SHOULD NOT HAVE CGI "calling" EACH OTHE

Re: How to save the state of a CGI script

2005-05-29 Thread Randal L. Schwartz
ents to the Ankur> same file. Ankur> Kindly help Ankur> PS: Earlier I was using GET method and I had one or two parameters to pass. Ankur> So I was able to sort on different columns passing the list explicitly. Ankur> --Ankur Ankur> Whatever games are played with us, we

Re: No appending...

2005-05-18 Thread Randal L. Schwartz
gt; I assure you that this is the problem. I change the sleep 1; to Wert,> system("sleep 1"); and the script runs perfectly. Then the system() is also forcing a flush of all filehandles. You can avoid the external process using the method I gave earlier. It's not the "

Re: No appending...

2005-05-18 Thread Randal L. Schwartz
now flushing all buffers whenever a child process is forked. Nathaniel> or using fopen instead Nathaniel> of open. I welcome your comments and thanks for the help. fopen() means you are creating an unbuffered filehandle, just like my code said to do. :) -- Randal L. Schwar

Re: No appending...

2005-05-18 Thread Randal L. Schwartz
haniel>sleep 1; Nathaniel>print STDOUT "test\n"; Nathaniel> } Nathaniel> close(TEMPFILE); Nathaniel> -- Nathaniel> Thanks. Nathaniel> Nate. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merl

Re: Recomdations for Template Plugins for Windows/CGI/ApacheHTTP

2005-05-17 Thread Randal L. Schwartz
iend. I wouldn't say "many". More like "some". Some use a native embedded full-featured language (like PHP or Mason[Perl]). Some use "programming masquerading as data", like XSLT or HTML::Template. -- Randal L. Schwartz - Stonehenge Consulting Services, In

Re: CGI::Cookie Reading.

2005-03-29 Thread Randal L. Schwartz
value" on an Sara> undefined value" Ahh, the classic cookie misunderstanding. You can't *read* a cookie that hasn't been sent to you by a browser yet. And the browser isn't going to send you a cookie until the *second* hit, because the cookie is being set in the *firs

Re: Calling subroutines

2005-03-21 Thread Randal L. Schwartz
27;); Denzil> &{page$page}() You really really *really* don't want to do that. Please pay attention to the proper solutions provided elsewhere. For one, your example will fail on "use strict", which is what every program larger than 10 lines should use. And your exact example

Re: Send equivalent of this via perl

2005-03-16 Thread Randal L. Schwartz
, where you massage it in some nefarious way, Lawrence> and then forward the massaged data to Paypal on their behalf? "My spider sense is tingling." -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Perl/Unix/secur

Re: Unsticky fields with CGI? (Sorry)

2005-03-11 Thread Randal L. Schwartz
hidden field with >> some other values after the script has been called once you'll have >> to do it manually: >> >> $query->param('hidden_name','new','values','here'); Or, you can call $query-> (why are you using the obje

Re: How to avoid accidental re-sending of POST data

2004-12-03 Thread Randal L. Schwartz
button on a result page? Ingo> The browser typically warns you when you want to do that but I was Ingo> wondering whether there is an easy way to make it impossible. <http://www.stonehenge.com/merlyn/WebTechniques/col64.html> -- Randal L. Schwartz - Stonehenge Consulting Se

Re: What exactly does "$| = 1;" do?

2004-11-30 Thread Randal L. Schwartz
cripts so that a naive "system" invocation doesn't come out before the headers. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. e

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Randal L. Schwartz
>>>>> "Robert" == Robert Page IV <[EMAIL PROTECTED]> writes: Robert> Woops! XMP is deprecated with HTMl 4.01. Robert> Sorry for the extra message. XMP has been deprecated for over half the age of the web. :) -- Randal L. Schwartz - Stonehenge Consul

Re: HINT: regex coach

2004-09-08 Thread Randal L. Schwartz
nd doesn't appear to be provided in source form. Jose> There, I said it :-) Me too. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, et

Re: Finding date when a file was created

2004-08-19 Thread Randal L. Schwartz
probably close to "creation" as you would probably mean it or need it. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See

Re: Mailing Script

2004-07-08 Thread Randal L. Schwartz
mfighters, like me. In fact, that's my telltale sign that I'm looking at a spammer because they've called something "double opt-in". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn

Re: Mailing Script

2004-07-08 Thread Randal L. Schwartz
o from web to mail. Bad idea, unless you've fully round-tripped the web requestor from a real mail address. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Tec

Re: Mailing Script

2004-07-08 Thread Randal L. Schwartz
you put this on a form and then send email to that address, you will incur my wrath, and within a short period of time, you will also be on every "spam blocklist" that I can possibly suggest. Do *not* send email to addresses taken from forms. Ever. -- Randal L. Schwa

Re: Unexpected CGI and HTML

2004-06-25 Thread Randal L. Schwartz
ly a list or a scalar, as selected by the context of invocation. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehe

Re: Hijacking forms [was help with adjusting log file data?]

2004-06-13 Thread Randal L. Schwartz
y the time you process your form element, there shouldn't *be* any %0a or %0d there. Also, % doesn't need to be backwhacked. This regex looks cargo-culted... {sigh}. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]>

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Randal L. Schwartz
resSQL is Bill> free.) And the .org domain is run on postgresql. Like I said, experts who have discovered postgresql are migrating. So I'm trying to get the word out as well. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]>

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Randal L. Schwartz
*and* license. There's no point in starting a new project with MySQL, *except* for legacy. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy,

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Randal L. Schwartz
PostgreSQL instead. A real Database... not a database wannabe. The only reason to use MySQL these days is ignorance or legacy. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Uni

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Randal L. Schwartz
nt. Thank you for that. Luinrandir> I am wrting a web site just for beginners like usyou Luinrandir> could help. Please, never ever post the URL to your website. "Blind leading Blind" comes to mind. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 7

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread Randal L. Schwartz
re orthogonal technologies... you can easily use one without the other. So it'd be hard to find a single comprehensive book on both. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/sec

Re: Only one click please

2004-05-27 Thread Randal L. Schwartz
a Perl-only solution: <http://www.stonehenge.com/merlyn/WebTechniques/col64.html>. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See

Re: Redirecting

2004-05-20 Thread Randal L. Schwartz
r's address Jan> bar. Jan> How can I circumvent making the parameters visible? Is there an Jan> alternative method for redirection (in fact, it's a recursive Jan> call to the script)? Redirect using a session ID instead. Generate a nice unguessable value, and then tie

Re: Display while forked

2004-04-06 Thread Randal L. Schwartz
ceroute" solution: <http://www.stonehenge.com/merlyn/LinuxMag/col39.html>. There's hardly ANYTHING that comes up here that I haven't addressed. Especially about CGI. I've pretty much beat that into the ground. :) -- Randal L. Schwartz - Stonehenge Consulting Services,

Re: handling multiple select with CGI

2004-03-17 Thread Randal L. Schwartz
tem1&selectname=item2&selectname=item3'. If I Andrew> do '$p = $cgi->Vars', wouldn't I only get the last value? Don't do that. Use param(): use CGI qw(param); my $one_value = param('selectname'); # gives one of them my @all_value

Re: Webhosting with good Perl support

2004-02-14 Thread Randal L. Schwartz
osophy, and has its trade offs, but I'm willing to put up with fewer compatible packages in exchange for more security. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consultin

Re: Webhosting with good Perl support

2004-02-14 Thread Randal L. Schwartz
r security, you can run linux instead. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for ons

Re: CGI Script to annoy script kiddies.

2004-02-06 Thread Randal L. Schwartz
>>>>> "Carl" == Carl Fischer <[EMAIL PROTECTED]> writes: Carl> if (defined $ARGV[0] == FALSE) { What do you expect this to do? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.co

Re: LWP get with no cache (code)

2004-01-23 Thread Randal L. Schwartz
. My mind rejects CGI scripts that are >> written this poorly. J> If you see CGI.pm, ReadInput and ReadParse works exactly the same way. No. CGI.pm works better. Much better. use CGI.pm, please. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <

Re: LWP get with no cache (code)

2004-01-22 Thread Randal L. Schwartz
t); Eeek! "use CGI". "use CGI". "use CGI". Not this stuff. I didn't read any further. My mind rejects CGI scripts that are written this poorly. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> htt

Re: large directory handling

2004-01-05 Thread Randal L. Schwartz
d answered on perl-beginners. And it's rude to post a question to both lists, either it *is* a CGI problem, or it isn't. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consult

Re: Getting a users IP addy

2003-12-25 Thread Randal L. Schwartz
the various image fetches will come from many different machines. (I can demonstrate it if you want). And given that this already outnumbers any other significant userbase for your website... I think I can safely say "logging IP addresses is OK, but using them to define unique users will total

Re: encrypting email address (to prevent spam)

2003-12-17 Thread Randal L. Schwartz
ng List at Yahoo. It's a waste of resource to post a question like this in multiple places, and unethical to not disclose that it has been asked in such a manner. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehe

Re: Fork

2003-12-09 Thread Randal L. Schwartz
short example about how I should create that loop? Any one of the articles you get from the following google search: site:stonehenge.com cgi fork should be able to help you out. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://

Re: extracting email addys.

2003-11-23 Thread Randal L. Schwartz
won't be publishing that *bad* answer again. On the flip side, there are very few things that I get this riled up about. :-) Bad memes, security holes, hiding code, and one other thing that escapes me now. The rest, I live and let live. -- Randal L. Schwartz - Stonehenge Consulting Services

Re: extracting email addys.

2003-11-22 Thread Randal L. Schwartz
t's a bit extreme. Couldn't you explain John> even a little bit why it's so wrong, and give more details about "the John> FAQ"? It is a beginners' list after all. It's just that we keep seeing this over and over again. That's the point of the FAQ. What

Re: extracting email addys.

2003-11-20 Thread Randal L. Schwartz
>>>>> "Silent" == Silent Zed <[EMAIL PROTECTED]> writes: Silent> You could very simply match the email address, like so: Silent> $text =~ m/[EMAIL PROTECTED]/g; WRONG. WRONG WRONG WRONG. Please read the FAQ on this. And dare I say again, WRONG. -- Randa

Re: flock() semantics?

2003-11-01 Thread Randal L. Schwartz
ock(OUT, LOCK_UN); Rarely needed, almost always dangerous. Don't LOCK_UN unless you completely understand why I said that. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/>

Re: Apache Logs

2003-10-03 Thread Randal L. Schwartz
?? You mean, besides Apache::ParseLog, which I immediately saw on the first page of the search result by typing "apache logs" in search.cpan.org? Please learn to use the existing search engines. Please read the FAQ for this mailing list. -- Randal L. Schwartz - Stoneheng

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-24 Thread Randal L. Schwartz
taken over from "brian d foy", who is currently in Iraq under military orders until next April. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writin

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-24 Thread Randal L. Schwartz
ou don't want to create a "ticket", just use unpack("H*", pack "NS", time, $$), which should be fairly unique and yet short enough to cut and paste nicely. In fact, that'd be nice column idea! I needed one for TPJ today. Thanks. -- Randal L. Schwartz

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-22 Thread Randal L. Schwartz
ht as well develop with your final release until you can figure out what is wrong with CGI::Carp. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, et

Re: Stripping HTML from a text file.

2003-09-05 Thread Randal L. Schwartz
L; my $p = XML::LibXML->new or die; $p->recover(1); my $d = $p->parse_html_fh(\*STDIN) or die; $_->unbindNode for $d->findnodes("/html/head"); print $d->toStringHTML(); -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <

Re: disable back button

2003-08-25 Thread Randal L. Schwartz
ot; hoping it will help them solve a part of "x", when in fact we need to ask what "x" is because "y" is almost always the wrong partial solution. This is a valid exchange of questions. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 &l

Re: Why executable?

2003-08-14 Thread Randal L. Schwartz
er and it runs my script. You can't tell what implements it. In fact, you could even make it "register.html" for all that it matters (none!). -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.co

Re: Why executable?

2003-08-14 Thread Randal L. Schwartz
ty of your webserver, not increasing it. You should never be able to guess the implementation language by looking at a URL. Wrong. Wrong. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> P

Re: urgent help needed!

2003-07-22 Thread Randal L. Schwartz
>>>>> "S" == S Naqashzade <[EMAIL PROTECTED]> writes: S> Dear Friends, S> I need to trnaslate thid code to PHP. S> Can any one help me? This is the *perl* beginners list. Not the PHP help desk. You must've pushed some buttons by mistake. -- Randal

Re: HTTP_ACCEPT_LANGUAGE

2003-07-20 Thread Randal L. Schwartz
s;q=0.8,es;q=0.5,fr;q=0.3" See <http://www.w3.org/Protocols/rfc2616/rfc2616.html> under section 14.4. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical wri

Re: question on global variable / scope

2003-07-05 Thread Randal L. Schwartz
://www.stonehenge.com/merlyn/UnixReview/col46.html> -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.

Re: Difference of $hash, and %hash. (was Getting my head round hashes)

2003-06-06 Thread Randal L. Schwartz
saying it's justified, but I'm also not saying it isn't. :) Non-CGI questions get asked and answered frequently and politely on the Perl IRC channels I monitor. CGI questions tend to ruffle feathers. Consistently. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 50

Re: Help creating HTML for immediate output, and more than once

2003-05-31 Thread Randal L. Schwartz
Not nice to repost it without saying that it's a multi-post. {sigh} -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
rinted) right now. I don't have a copy of the book at hand, but in Safari, the only time it's spelled all caps is on the front cover, and I can certainly imagine that it was done that way for aesthetic reasons. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
#x27;t hang out with the experts. Put another way, when *you* spell it "PERL", we know you aren't part of the "cool crowd". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
miss anything And there's no such thing as "PERL". It's "Perl" for the language, "perl" for the engine. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl

Re: The very un-useful 'premature end of script headers' error message

2003-03-28 Thread Randal L. Schwartz
; As a work around, I changed this Cool> foreach my $pair (split(/[&;]/, $submission)) { Cool> # Convert plus to space Cool> $pair =~ y/+/ /; Please don't use this code. "use CGI qw(param)". -- Randal L. Schwartz - Stonehenge Consulting Services, I

Re: help needed in frames with php

2003-03-16 Thread Randal L. Schwartz
>>>>> "Mel" == Mel Awaisi <[EMAIL PROTECTED]> writes: Mel> help needed in frames with php php questions are not really appropriate on a Perl help list, unless there's some Perl component as well. -- Randal L. Schwartz - Stonehenge Consulting Services, I

Re: Previous and Next

2003-03-13 Thread Randal L. Schwartz
tscape). As in, "what could that possibly mean?" That's either impossible or mis-specified. We need to know more before we could even begin to write code or answer it. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http:

Re: Random letters

2003-03-08 Thread Randal L. Schwartz
n> I would like a result like: Octavian> 122oijopi3j4po5j5o6j6opjop5 my @charset = ('a'..'z', '0'..'9'); my $length_desired = 15; my $random_string = join "", $charset[rand @charset], 1..$length_desired; -- Randal L. Schwartz - Stonehenge Consulting S

Re: Learning Perl

2003-02-28 Thread Randal L. Schwartz
y a copy and resell it. We worked hard to design Learning Perl to be the best book to spend your first 30-40 hours while learning the language, no matter where you will be using Perl eventually. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECT

Re: Using variable to another script

2003-02-06 Thread Randal L. Schwartz
rly. THere's already stuff in CGI.pm to do this for you properly. param("username", $username); print start_form("http://yourhost/another.cgi";), hidden("username"), submit, end_form; -- Randal L. Schwartz - Stonehenge Consulti

Re: Naming a variable from value of a scalar.

2003-01-18 Thread Randal L. Schwartz
r> You can do it. But you shouldn't. Ever. And "use strict" rightfully keeps you from doing so. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Tech

Re: funny characters in form field

2003-01-11 Thread Randal L. Schwartz
TML generation: param('my_hidden', '3/1/2003'); print hidden('my_hidden'); during CGI response: my $input = param('my_hidden'); No mess, no stress. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTE

Re: HTML in perl autoresponders

2003-01-06 Thread Randal L. Schwartz
doesn't work here. This mailing list enforces plain text email, so your HTML branch was stripped. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Co

Re: Running a Perl program countinuously

2002-11-16 Thread Randal L. Schwartz
>>>>> "Octavian" == Octavian Rasnita <[EMAIL PROTECTED]> writes: Octavian> How can I make it to start automaticly after stopping? while true do perl-command-goes-here done & But why are you asking this in a CGI list? This has nothing to do with CGI

Re: Calculate PI

2002-11-03 Thread Randal L. Schwartz
) Sven> or Sven> $pi = 4x ( (1/$y) - ) Beware that's a very very very very slow convergence. There are many better formulas. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Uni

Re: Looping

2002-10-13 Thread Randal L. Schwartz
>>>>> "Octavian" == Octavian Rasnita <[EMAIL PROTECTED]> writes: Octavian> I've tried with: Octavian> foreach my $email (keys %list{'list_number1'}) { Octavian> Octavian> } Nearly. It's "keys %{$list{'lis

Re: How to verify the email address?

2002-09-29 Thread Randal L. Schwartz
>>>>> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> The Windows program lies. As proof, see if your "Windows program" can tell which of the following addresses are valid or invalid: [EMAIL PROTECTED] fred&[EM

Re: How to verify the email address?

2002-09-29 Thread Randal L. Schwartz
t doesn't matter what programming language you use. Thank the spammers for removing some of the utility of the net, but there were also always addresses that could not be verified. Octavian> I can use that program for verifying the email addresses, No. You can't. Not conclusively.

Re: How to verify the email address?

2002-09-29 Thread Randal L. Schwartz
>>>>> "Wiggins" == Wiggins D'Anconia <[EMAIL PROTECTED]> writes: Wiggins> You may also want to consider using the Email::Valid module. Yeah, that's what the recent FAQ says. My mail is typed on an openbsd machine running 5.6.1, and it wasn'

Re: How to verify the email address?

2002-09-28 Thread Randal L. Schwartz
ask them to include the PIN in their reply. But if it bounces, or the message is included via a ``vacation'' script, it'll be there anyway. So it's best to ask them to mail back a slight alteration of the PIN, such as with the characters reve

Re: Creating thumbnails (Newbie Question)...

2002-09-21 Thread Randal L. Schwartz
rsion, you get a 12x25 version, which is the same proportions, but both numbers are smaller than 25. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Co

Re: Post to a second CGI script

2002-07-30 Thread Randal L. Schwartz
e yet. Many corporate firewalls filter javascript. Many individual users have it turned off for security and abuse reasons. Javascript should never be used for essentials... only to enhance the experience. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EM

Re: question about cgi-lib.pl

2002-07-24 Thread Randal L. Schwartz
e code that uses it, see "perldoc CGI" and look for the part where it refers to cgi-lib compatibility. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical wri

Re: Finding the country

2002-07-24 Thread Randal L. Schwartz
on to certain countries, no. Because it's wrong 25% of the time, and can also be easily spoofed. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Com

Re: Getting the real email address?

2002-05-10 Thread Randal L. Schwartz
is wrong posting and read the rest of the repeated answers in the thread. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See P

Re: exec CGI versus include virtual

2002-04-06 Thread Randal L. Schwartz
cript? Yes, exec CGI is deprecated. It permits only mod_cgi as a response. You really want include virtual all the time. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security con

Re: IP Address

2002-04-04 Thread Randal L. Schwartz
od that you *finally* got that. {sigh} But even using cookies is no guarantee that one vote will be given. I can erase cookies. And the "XP" system of Perlmonks.org shows that users can and will create dopplegangers just to vote multiple times. Voting on the net is always a joke. --

Re: IP Address

2002-04-04 Thread Randal L. Schwartz
.com who wants to vote after the first one has already done so. Do you really want to frustrate millions of people? IT DOESN'T WORK. DON'T EVEN TRY IT. {sigh} -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stoneh

Re: IP Address

2002-04-04 Thread Randal L. Schwartz
fetches for that page will all show up as different addresses. And then of course, those same small-number-of-proxies are used for millions of users. So again, I repeat: A user is not an IP address Get it through your head that using IP address for vote blockout is just ... WRONG. -- R

Re: Re :Camel Book

2002-03-21 Thread Randal L. Schwartz
>>>>> "Sunish" == Sunish Kapoor <[EMAIL PROTECTED]> writes: Sunish> Want an HTML version of Programming Perl Second version (Free) . I would certainly hope that you are not serious. If you are, you'll be reported to O'Reilly's enforcem

Re: existing username

2002-03-21 Thread Randal L. Schwartz
le_new_name)) { # it already exists } else { # it's new! } -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining

  1   2   >