Re: INSERTing problems

2001-06-09 Thread Randal L. Schwartz
Dave == Dave Newton [EMAIL PROTECTED] writes: Dave Randal said: Placeholders are even more cool, and require less thinking. Dave If they're supported, which they aren't under all platforms! They're supported by DBI, so it's *all* platforms. Perhaps you're thinking of the :1-style

Re: Making use of use dynamic ?

2001-06-09 Thread Hakan Aksu
thanks for the response. However my problem is not calling the variables. but calling the module. Let says I have this directory structure : ~myapp/class1/foo.pm ~myapp/class2/foo.pm ~myapp/class3/foo.pm and my @INC has ~myapp/ I wan to call : use class?::foo; #dynamic where class? is

Re: if then else

2001-06-09 Thread M.W. Koskamp
- Original Message - From: Jeff Yoak [EMAIL PROTECTED] To: Luinrandir Hernson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, June 09, 2001 12:10 AM Subject: Re: if then else At 05:35 PM 6/8/01 -0400, Luinrandir Hernson wrote: ok, where did i go wrong now??? '=' is the

Re: if then else

2001-06-09 Thread iain truskett
* Jos I. Boumans ([EMAIL PROTECTED]) [09 Jun 2001 10:32]: and for some abbreviation: $ENV{'HTTP_REFERER'} : $previous = $ENV{'HTTP_REFERER'} ? $previous = an unknown site; [...] god bless one liners =) Surely you mean: $previous = $ENV{HTTP_REFERER} ? $ENV{HTTP_REFERER} : 'an unknown

Re: SMS by Perl

2001-06-09 Thread Evgeny Goldin (aka Genie)
I want to find code write in perl to send SMS The simplest and the usual way, IMHO, is to find the provider's portal for sending SMS messages and to send the HTTP request from the script the same way ( i.e with the same parameters ) as HTML form does. The tricky part may be logging in to this

Re: if then else

2001-06-09 Thread Jeff 'japhy' Pinyan
On Jun 9, Jos I. Boumans said: $ENV{'HTTP_REFERER'} : $previous = $ENV{'HTTP_REFERER'} ? $previous = an unknown site; You didn't test that. Perl parses your code: $a ? $b = $a : $b = $c; as (($a ? ($b = $a) : $b) = $c); So that $b gets $c assigned to it no matter what. Either

Re[2]: space

2001-06-09 Thread Tim Musson
Hey Chas, Thursday, June 07, 2001, 7:44:11 PM, you wrote: CO On 07 Jun 2001 19:36:57 -0400, Mark S wrote: You could just set up a web server on your own machine, if that's all you're looking to do. who knows of some free web space that allows the use of perl? so i can test my hello

Re: Comparing two files

2001-06-09 Thread Will W
If your system's memory is large enough to hold the smaller dataset, then as others have said, working with hashes is the way to go: read all of small dataset into hash while another record in large dataset if key for record exists in hash delete hash{key}

Re: Understanding Randal's answer

2001-06-09 Thread Karen Cravens
On 9 Jun 2001, at 10:44, Kevin Meltzer wrote: If it is under the control of your CGI, and you use proper data laundering and checking on paths being created, you shouldn't have a security issue. Or just plain don't create paths through CGI (or for any other trivial reason). That's me.

Re: Understanding Randal's answer

2001-06-09 Thread Kevin Meltzer
On Sat, Jun 09, 2001 at 09:52:45AM -0500, Karen Cravens ([EMAIL PROTECTED]) spew-ed forth: Or just plain don't create paths through CGI (or for any other trivial reason). That's me. Though it's something I'll keep in mind when I do have a need for path creation. (I'll probably be

RE: Understanding Randal's answer

2001-06-09 Thread Dave Newton
So yes, I take newlines in paths seriously. You can't be an ostrich about them burying your head in the sand. That's not secure, and you will be hacked. Ostriches don't really bury their heads in the sand, you know... S, that was supposed to be a secret. I've not been able to

Re: Understanding Randal's answer

2001-06-09 Thread Kevin Meltzer
On Sat, Jun 09, 2001 at 11:17:43AM -0400, Dave Newton ([EMAIL PROTECTED]) spew-ed forth: I've not been able to come up with any reasonable CGI that would be creating a path that the user has any control over; why would one want to do that? What about things like document/filesystem

Re: Understanding Randal's answer

2001-06-09 Thread perlguy
On Sat, Jun 09, 2001 at 10:31:11AM -0500, Karen Cravens ([EMAIL PROTECTED]) spew-ed forth: On 9 Jun 2001, at 11:15, Kevin Meltzer wrote: Well, depending on the application (CGI or otherwise) you sometimes need to. If it is a path, or a file, it may need to be done (as well as putting

Re: Understanding Randal's answer

2001-06-09 Thread Peter Scott
I think the useful point that somehow got buried in the sand along with the ostrich was that security is a running battle. You *must* take every opportunity to plug everything that could conceivably be a security hole, even if it depends upon some other layer of security being broken first.

Re: Understanding Randal's answer

2001-06-09 Thread Randal L. Schwartz
Peter == Peter Scott [EMAIL PROTECTED] writes: Peter Securing a system today is like being Sigourney Weaver in Peter Alien... In what way? We all make millions? We'll be used in many sequels, even when it's technically bizarre? We run around in our undies while fighting beasts? We're in

Re: Understanding Randal's answer

2001-06-09 Thread Randal L. Schwartz
Peter == Peter Scott [EMAIL PROTECTED] writes: We all make millions? Peter Speak for yourself :-) oh, don't I wish. :) When I finally make enough money to afford a new car, I think I'll be happy Just another guy driving around a 7-year-old ugly second-hand SUV, and probably stuck with

Method interface vs Function Interface

2001-06-09 Thread victor
I have recently came across a mod_perl document that suggested Perl's Method Interface is more 'memory friendly' compare to Perl's Function Interface. I'm not too sure I've got the meaning of this 'Method Interface' and 'Function Interface' correctly, is it referring to the procedural function

Re: Re: Regex question

2001-06-09 Thread Bruno Veldeman
Hi, I have a string with this format /blabla/dir/nextdir/name.txt I want only 'name.txt' in one string and the rest in another string. Thanks for the solution. in this case, i would use split: $location = /blabla/dir/nextdir/name.txt; @dirs = split(\/, $location); But then, would it

Waking up NT

2001-06-09 Thread Clinton
Hi First I apologise if this is the wrong list. How would I wake up Win NT to run a perl program at a predefined interval? Some pointers would be much appreciated. Regards CCJ

extracting substr

2001-06-09 Thread William
hi, i want to be able to read a text file and extract only the valid ip addresses. however, along with valid ip addresses my code is grabbing periods and invalid ip addresses, e.g., .xxx, www.xxx.yyy . how can i correct this? = while (inFILE) { chomp; if (($L) = ($_) =~

Re: extracting substr

2001-06-09 Thread iain truskett
* William ([EMAIL PROTECTED]) [09 Jun 2001 23:26]: hi, i want to be able to read a text file and extract only the valid ip addresses. however, along with valid ip addresses my code is grabbing periods and invalid ip addresses, e.g., .xxx, www.xxx.yyy . how can i correct this? It might be

Re: Perl and the MicroSoft NT/Win2000 GUI

2001-06-09 Thread Tim Musson
Hey ggage, Friday, June 08, 2001, 12:17:50 PM, you wrote: gmc I would like to run a perl script and pass in an argument (ARGV[0]) by gmc dragging a textfile icon on to the perl script icon. This would be on an gmc NT/Win2000 system using the icons in file manager, desktop, etc. The gmc

Re: extracting substr

2001-06-09 Thread William
thanks, Karen Iain, et el,, this helps greatly. the book is on order, can't believe the title of that section, gee. ;-) Bill Karen Cravens wrote: iain truskett wrote: [...]

Re: Comparing two files

2001-06-09 Thread subbu cherukuwada
If you have ample of RAM, you may try using grep i.e. open(SMALL,smallfile); open(LARGE,largefile); open(UNIQ,newfile); while(LARGE) { $lin=$_; print UNIQ if(!(grep {^$lin$} SMALL)); seek(SMALL,0,0); } From: Will W [EMAIL PROTECTED] Reply-To: Will W [EMAIL

RE: Waking up NT

2001-06-09 Thread VeeraRaju_Mareddi
Hi Clinton If u want ur program to run at a predefined interval of time ,Please put this script in AT jobs. I think It will Do it. Regards Raju -- From: Clinton [SMTP:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 4:24 AM To: [EMAIL PROTECTED]