Re: Mailing Script

2004-07-08 Thread Camilo Gonzalez
Gunnar Hjalmarsson wrote: Randal L. Schwartz wrote: Werner Otto writes: Randal L. Schwartz wrote: Do *not* send email to addresses taken from forms. Ever. why is that? Because you have no authentication of the requestor. Any fool can go to your website, enter [EMAIL PROTECTED], and all of a

Re: use CGI qw(:standard);

2004-06-11 Thread Camilo Gonzalez
Owen Cook wrote: On Fri, 11 Jun 2004, Werner Otto wrote: I am making use of use CGI qw(:standard); to create my form. I need to amend the size of a submit button and need to tell the button which script to call (ie. action=test.cgi). Where can I find documentation on all the attributes of

Re: CGI and mySQL book, any recommendation.

2004-06-01 Thread Camilo Gonzalez
Randal L. Schwartz wrote: Wiggins == Wiggins D'Anconia [EMAIL PROTECTED] writes: Wiggins Agreed. I have requested this from him before, but didn't get much. I haven't responded because I've been using the net at 40 cents per minute from a satellite link on a ship this past week, and

Re: CGI and mySQL book, any recommendation.

2004-05-30 Thread Camilo Gonzalez
Randal L. Schwartz wrote: Remko == Remko Lodder [EMAIL PROTECTED] writes: Remko I have the book MySQL and Perl from Paul Dubois, By the way... it's consensus amongst experts that MySQL has hit nearly end-of-life. If you're starting a new project, use PostgreSQL instead. A real

Re: Uploading file

2004-03-19 Thread Camilo Gonzalez
Ash Singh wrote: Use this as an example, it converts the file to binary mode just in case its not. It also strips out the path of the file coming from the user's local machine. #!/usr/bin/perl use CGI; use strict; my $cgi = new CGI; print $cgi-header; my $query = CGI::new(); use CGI qw(param);

Uploading file

2004-03-18 Thread Camilo Gonzalez
Okay, I'm totally stumped. I'm trying to upload a file using a browser and a file upload field and saving the file to my server. The code is as follows: my $filename = $cgiobj-param('uploaded_file'); my $fh = $cgiobj-upload('uploaded_file'); open (OUTFILE, ../featImages/$filename)

Standarized tests

2004-03-17 Thread Camilo Gonzalez
Are there any standarized tests one can take to measure one's Perl prowess? How much are they and where can I find them? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: matching newline

2004-03-02 Thread Camilo Gonzalez
zsdc wrote: Camilo Gonzalez wrote: zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later

Re: matching newline

2004-02-29 Thread Camilo Gonzalez
Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; Hope it helps, Tracy New to the list, so apologies if I post incorrectly. On Feb 28, 2004, at 11:50 PM, Camilo Gonzalez wrote

Re: matching newline

2004-02-29 Thread Camilo Gonzalez
zsdc wrote: Tracy Hurley wrote: Camilo, I don't think you need to put $email in quotes to do the check, but it works if you do. Try this: if $email =~/@.*@/g || $email =~ /\n/s; It still might not be secure depanding on how $email is being used later. Is it used in a system() call? In

matching newline

2004-02-28 Thread Camilo Gonzalez
Perl dudes, I'm trying to match a newline to dissuade spammers from hijacking my script. This is what I have #!/usr/local/bin/perl -wT use CGI::Carp qw(fatalsToBrowser); use strict; use CGI; my $cgiobj = new CGI; $ENV{PATH} = ; #Get parameters my $name = $cgiobj-param('name'); my $address =

Re: Email text encoding

2004-02-11 Thread Camilo Gonzalez
Eek! I've been told by my ISP that my Perl script to email myself and the user of my form the contents on my contact form has been hijacked by a spammer. My ISP has been deluged by recipients with complaints. Where have I gone wrong? Please be kind, this is a beginners' list after all.

Re: special characters

2003-12-27 Thread Camilo Gonzalez
J., In my experience, the numeric escapes where available seem to be more universal between browsers. J. Alejandro Ceballos Z. wrote: I may try with nueric equivalents (like #046;) or htmlspecialchars() or htmlentities() Octavian Rasnita wrote: Hi all, I want to create some web pages that

Re: Counter triggered on download

2003-08-24 Thread Camilo Gonzalez
This is the sort of stuff I was talking about. Modules are great but sometimes you just have to wrest back control. zsdc wrote: fliptop wrote: merrill - i'm a little late on this thread, and the other suggestions are valid, but here's one way to serve up files w/o using a direct link by

Re: Counter triggered on download

2003-08-21 Thread Camilo Gonzalez
I would solve this by using the link to invoke a Perl script that would trip a counter and serve up the PDF document, shift-click be damned. Who uses shift-click anyway? Merrill Oakes wrote: I have a link to a PDF file on a web page. I want to count how many times that someone clicks on the

Re: Perl line breaks

2003-08-14 Thread Camilo Gonzalez
Yech, what a mess. I think you may need to escape the question mark and or dots. In any case, why try to escape such an unwieldy string? Why not use a heredoc? Laziness is the mark of a good programmer. Mike Harrison wrote: I was trying to find a log file to look at. I guess half the problem

Re: Why executable?

2003-08-14 Thread Camilo Gonzalez
Okay then, how should scripts be called? Let's say I'm using a form. What would the action be? Kristofer Hoch wrote: You should never be able to guess the implementation language by looking at a URL. Wrong. Wrong. I couldn't agree more. None of my scripts are executed directly...IE

Re: Perl line breaks

2003-08-10 Thread Camilo Gonzalez
Mike Harrison wrote: Hello all, Well, I have spent the last few nights messing around trying to work out why one of my PERL programs doesn't work. If anybody can shed some light on this, I might be able to get some sleep :) I am using a hosting service to host my web site, and they use a

Re: Mail::Send question

2003-08-04 Thread Camilo Gonzalez
Todd W. wrote: Camilo Gonzalez [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Definitely avoid this if possible, there are numerous mail message modules, one of them is bound to provide what you need. Why is sendmail held in such low regard by this group? Most

Re: Mail::Send question

2003-08-01 Thread Camilo Gonzalez
Wiggins d'Anconia wrote: Scot Robnett wrote: Is there any way to force Mail::Send to accept a From name, as opposed to simply sending and using the hostname by default? I don't see anything in the docs about setting the From field in the headers. (of course, I can just open a pipe to

Where's the Perl jobs, baby?

2003-07-30 Thread Camilo Gonzalez
I'm not sure if this question has been asked before but it may never be as relevant. I'm a Perl programmer trying to survive the Bush recession. What's a good resource for finding jobs? All I ever see are job listings for that icky Microsoft stuff. What options are open to the nattering

Re: saving a textarea to a text file

2003-06-26 Thread Camilo Gonzalez
Wrong. Try: use CGI; my $q = new CGI; my $record = $q-param('text_field'); open(OUTFILE, output.txt) or die Can't open output.txt: $!; print OUTFILE $record; close OUTFILE; Andrew Brosnan wrote: On 6/26/03 at 10:14 PM, [EMAIL PROTECTED] (Bob X) wrote: How would I go about

Memory shortage

2003-06-05 Thread Camilo Gonzalez
Okay, I'm still struggling here. My problem is I have a client who has a rather large tab delimited text file I am attempting to slurp up and place in a MySQL table. The file is almost 6 megs large but my ISP only allows 2 megs of RAM per user. I can slurp up only about 1.5 megs before I get

Need more memory

2003-05-30 Thread Camilo Gonzalez
Help, How do I flush out the memory so I can start with a fresh allotment? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: uninitialized values

2002-09-11 Thread Camilo Gonzalez
I'm kinda a stupid moronic idiot, but it seems to me you're calling a variable out of its scope. Try declaring it globally. If it doesn't work use sarcasm on me -Original Message- From: t [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 2:26 PM To: [EMAIL PROTECTED]

RE: retain same file name when uploading

2002-09-09 Thread Camilo Gonzalez
Naomi, The purpose of this list is not for us to write programs for you but to help you overcome any specific problems you may have. Please post specifically what you think the problem(s) are and the kind Perl gurus here will be all too happy to assist you. -Original Message- From:

RE: retain same file name when uploading

2002-09-09 Thread Camilo Gonzalez
Nevermind. -Original Message- From: Christopher G Tantalo [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 3:11 PM To: Camilo Gonzalez Cc: 'Naomi Arries'; [EMAIL PROTECTED] Subject: Re: retain same file name when uploading Camilo Gonzalez wrote: Naomi, The purpose

RE: Viruses

2002-07-18 Thread Camilo Gonzalez
Antibiotics won't work against viruses. Like the anti-windows message though. -Original Message- From: Shawn [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:21 AM To: [EMAIL PROTECTED] Subject: Re: Viruses zentara [EMAIL PROTECTED] wrote in message [EMAIL

Benchmarking

2002-07-15 Thread Camilo Gonzalez
Good Kind Perl Gurus, I see mention of benchmarking CGI scripts to see how quickly they run. What's the best way to do this? I'm in a hosted Unix IRIX environment so may not have access to the shell and other areas. #!/usr/local/bin/perl print ' EOF' Camilo Gonzalez

RE: Subroutines

2002-07-15 Thread Camilo Gonzalez
Theresa, Paul Duboise in his book Perl and MySQL puts all connection schemes in a library. Would that work for you? -Original Message- From: Theresa Mullin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:31 PM To: [EMAIL PROTECTED] Subject: Subroutines Hi Everyone, I am

RE: Displaying counter

2002-07-15 Thread Camilo Gonzalez
Dude, Make it easy on yourself, use an animated GIF. It's close enough. You don't really mean 600 seconds do you? -Original Message- From: Jim Lundeen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:58 PM To: begin begin Subject: Displaying counter Hello all, I know this

RE: tail -f with cgi

2002-07-12 Thread Camilo Gonzalez
Alright, what's a tail -f? -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:09 AM To: 'Max Clark'; '[EMAIL PROTECTED]' Subject: RE: tail -f with cgi -Original Message- From: Max Clark [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: Accessing Extra Information in die()

2002-07-11 Thread Camilo Gonzalez
Will $! suffice for you? -Original Message- From: John Pitchko [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 10:21 AM To: [EMAIL PROTECTED] Subject: Accessing Extra Information in die() Hello, I wrote a custom error message to be displayed in my CGI pages instead of the

RE: Using strict and configuration files

2002-06-11 Thread Camilo Gonzalez
Bob, Exactly what does our do? I understand my and even local but have yet to grasp the our concept. -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:12 AM To: 'Octavian Rasnita'; [EMAIL PROTECTED] Subject: RE: Using strict and

RE: Using strict and configuration files

2002-06-11 Thread Camilo Gonzalez
So the following are equivalent: use vars qw(foo) our $foo = -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:17 AM To: 'Camilo Gonzalez'; [EMAIL PROTECTED] Subject: RE: Using strict and configuration files -Original Message

RE: What database would your recommend?

2002-06-07 Thread Camilo Gonzalez
That's a good point. Are there still advantages to using Perl over using PHP? I'd be bummed to hear I'm using a dying language. -Original Message- From: Fred Sahakian [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:52 AM To: [EMAIL PROTECTED] Cc: Subject: Re: What database

RE: What database would your recommend?

2002-06-07 Thread Camilo Gonzalez
]] Sent: Friday, June 07, 2002 11:06 AM To: 'Camilo Gonzalez'; 'Fred Sahakian'; [EMAIL PROTECTED] Cc: Subject: RE: What database would your recommend? Perl a dying language? are you nutz?!?!?! Haven't you been reading the Apocalypse pages for PERL 6??!?!? http://dev.perl.org/perl6/apocalypse

RE: subroutine or subroutine

2002-06-06 Thread Camilo Gonzalez
Janek, Wouldn't it print: foo: foo:A B C Also, I believe that you must declare the subroutine before you are allowed to reference it without the . Am I right about that? -Original Message- From: Janek Schleicher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 5:10 AM To:

RE: subroutine or subroutine

2002-06-06 Thread Camilo Gonzalez
Bob, Since this is a list for newbies, can you please be a bit more specific why you are opposed to those things you list. I'm quite fond of using the foo or foo(args) calling styles. Is this just a personal preference? -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]]

RE: website keywords

2002-06-06 Thread Camilo Gonzalez
Hytham, This a HTML question, not a CGI one but here goes: Keywords are usually stored in the meta tags at the top of a page. They follow the form meta name=keywords content=some list of keywords -Original Message- From: Hytham Shehab [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06,

RE: Content Warning from MailScan to Mail-Sender!

2002-06-04 Thread Camilo Gonzalez
I think 'HAHAHA' is one of the subject lines used by a virus. -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:15 AM To: cgi cgi-list Subject: Fwd: Content Warning from MailScan to Mail-Sender! can one of the more elegantly enabled in our

RE: The size of the uploaded file

2002-06-03 Thread Camilo Gonzalez
Why not just set up a FTP site? I assume the people who want to upload those large files will be familiar with FTP. -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: The size of the uploaded file Hi

What is cat?

2002-06-03 Thread Camilo Gonzalez
I see the word 'cat' being used an awful lot lately here and have encountered it in other readings. What is cat and what is it used for? #!/usr/local/bin/perl print ' EOF' Camilo Gonzalez Web Developer Taylor Johnson Associates [EMAIL

RE: The size of the uploaded file

2002-06-03 Thread Camilo Gonzalez
David, Since there are a lot of newbies here, can you please enumerate on the pains and differences between both FTPs and what SCP is? -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 9:17 AM To: [EMAIL PROTECTED] Cc: Camilo Gonzalez Subject: Re

RE: HTML in E-mail

2002-06-03 Thread Camilo Gonzalez
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; print MAIL From: fsahakia\ @courts.state.ny.us\n; print MAIL Subject: Forwarded \n\n; print MAIL This person has

RE: HTML in E-mail

2002-06-03 Thread Camilo Gonzalez
[mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:11 PM To: perl beginners cgi Cc: Camilo Gonzalez; 'Fred Sahakian' Subject: Re: HTML in E-mail Fred, Camilo, et al -- and then Camilo Gonzalez said... % % Fred, % % Thank Jah this problem was recently successfully solved! Try

RE: Counter and scoping(?) issue

2002-05-29 Thread Camilo Gonzalez
Gack, you Perl Lords once again save my butt. Thanks Roberto, it worked like a charm. -Original Message- From: Kevin Meltzer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 7:30 AM To: Roberto Ruiz Cc: Camilo Gonzalez; [EMAIL PROTECTED] Subject: Re: Counter and scoping(?) issue

Opening Filehandles under taint check

2002-05-22 Thread Camilo Gonzalez
Dudes, Someone has to have some inkling how to open filehandles for writing whilst running in taint mode (-T). C'mon there are some of the best Perl minds in the world here. Is it impossible? I've tried untainting the data I'm using to write with this snippet: #untaint $count if

RE: Matt Wright's formMail

2002-05-15 Thread Camilo Gonzalez
Verio, the world's largest ISP. -Original Message- From: Dave Cross [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:37 PM To: [EMAIL PROTECTED] Subject: Re: Matt Wright's formMail On Mon, 13 May 2002 16:07:54 +0100, Camilo Gonzalez wrote: I've just been informned by my ISP

RE: yahoo mail did't compile HTML mail

2002-05-14 Thread Camilo Gonzalez
To: $email\n; print MAIL From: $wemail\n; print MAIL Subject: $subject\n\n; print MAIL $contents\n; close (MAIL); --- END source--- anyone try to make like me before? Thankx again From: Camilo Gonzalez [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL

Matt Wright's formMail

2002-05-13 Thread Camilo Gonzalez
using his crap. Does anyone have the URL of that site that offers alternatives to Matt's scripts? #!/usr/local/bin/perl print ' EOF' Camilo Gonzalez Web Developer Taylor Johnson Associates [EMAIL PROTECTED] mailto:[EMAIL PROTECTED

RE: Matt Wright's formMail

2002-05-13 Thread Camilo Gonzalez
Thank you all for this link. -Original Message- From: Kevin Meltzer [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:53 AM To: Camilo Gonzalez Cc: [EMAIL PROTECTED] Subject: Re: Matt Wright's formMail try the rewrite from NMS: http://nms-cgi.sourceforge.net/ Cheers, Kevin

RE: Matt Wright's formMail

2002-05-13 Thread Camilo Gonzalez
The problems seem to be that it uses the Referer environmental variable to exclude spammers and it gives the option of encoding data in the URL. I've been told both are considered security risks. My ISP does not think even the latest release addresses these issues and refuses to let Formmail on

RE: Matt Wright's formMail

2002-05-13 Thread Camilo Gonzalez
simply opening a pipe to a process? How does the NMS replacement code handle this, and what do you all do in similar cases? - John --- drieux [EMAIL PROTECTED] wrote: On Monday, May 13, 2002, at 09:21 , Camilo Gonzalez wrote: [..] The problems seem to be that it uses the Referer

RE: Matching string (here I am again)

2002-05-07 Thread Camilo Gonzalez
Try /[a-z]*\d[2]/ -Original Message- From: Rafael Cotta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 12:16 PM To: [EMAIL PROTECTED] Subject: Matching string (here I am again) First of all, special thanks to Drieux. I need to check if a string with the following patern:

RE: Does CGI.pm have escapeURL?

2002-05-01 Thread Camilo Gonzalez
Try 'escapeHTML()'. -Original Message- From: John Brooking [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:49 PM To: Beginners CGI Subject: Does CGI.pm have escapeURL? Does CGI.pm have some kind of URL escape function, similar to escapeHTML? I couldn't find any

RE: html in a cgi script

2002-03-21 Thread Camilo Gonzalez
Can someone resend the regex they formulated for checking for valid emails? I seem to have accidently deleted it. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Camel Book

2002-03-20 Thread Camilo Gonzalez
The one you seek is called Programming Perl and is indeed an O'Reilly book. However, if you're new to programming you may want to consider first reading Learning Perl which has a gentler learning curve. -Original Message- From: matt stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Regex fro email addresses

2002-02-19 Thread Camilo Gonzalez
Does anyone have a regex handy that will extract email adresses and nothing but? I have a large document with email addresses scattered throughout. The addresses are preceeded and followed by a space. #!/usr/local/bin/perl print ' EOF' Camilo Gonzalez Web Developer

RE: buton names

2002-02-13 Thread Camilo Gonzalez
You're asking for a peck of trouble. One solution I would consider is JavaScript's onSubmit() method. -Original Message- From: GsuLinuX [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: buton names Hola! , There are 2 submit butons

RE: buton names

2002-02-13 Thread Camilo Gonzalez
I understood his request differently, that he wanted to send the parameters to different scripts depending on the submit button pushed. -Original Message- From: Hanson, Robert [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:44 PM To: 'GsuLinuX'; [EMAIL PROTECTED] Subject:

Career

2002-02-04 Thread Camilo Gonzalez
I'm an open source freak and I was wondering about my prospects for finding a job. Are there like-minded companies or am I doomed to Windoze? Are Perl programmers in great demand? #!/usr/local/bin/perl print ' EOF' Camilo Gonzalez Web Developer Taylor Johnson

RE: Using SSI in a CGI program

2002-01-21 Thread Camilo Gonzalez
Troy, Not sure why you're doing that. SSI won't work on parsed pages. You're already generating a page so why not include header.html in your template or as a heredoc or open it as a filehandle and print it? -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: 2 Q's, Google and Me - can you spell it out?

2002-01-09 Thread Camilo Gonzalez
This is a common problem. The heredoc terminator must be on a line all by itself, no spaces, no tabs. Here you have it preceeded by spaces. -Original Message- From: Henk van Ess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 9:22 AM To: Bob Showalter; [EMAIL PROTECTED]

RE: 2 Q's, Google and Me - can you spell it out?

2002-01-09 Thread Camilo Gonzalez
it and no extraneous characters, including spaces. Does that make sense? -Original Message- From: Henk van Ess [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 9:49 AM To: Camilo Gonzalez; Bob Showalter; [EMAIL PROTECTED] Subject: Re: 2 Q's, Google and Me - can you spell it out

scheduling

2002-01-07 Thread Camilo Gonzalez
Anyone know of a module or method that will run a Perl script on a given time each day? I need to FTP a file from one site to another daily and I was hoping to automate it. if ( $Camilo_Gonzalez $Web_Developer ) { Taylor Johnson Associates; [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ;

RE: scheduling

2002-01-07 Thread Camilo Gonzalez
How can I find out about cron? -Original Message- From: fliptop [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 4:30 PM To: Camilo Gonzalez Cc: [EMAIL PROTECTED] Subject: Re: scheduling Camilo Gonzalez wrote: Anyone know of a module or method that will run a Perl script

Docs

2001-10-15 Thread Camilo Gonzalez
Where's a good place to find documentation in HTML of the CGI and DBI modules? if ( $Camilo_Gonzalez $Web_Developer ) { Taylor Johnson Associates; [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ; www.taylorjohnson.com http://www.taylorjohnson.com/ ; }

RE: Easy way to get output from system()

2001-10-11 Thread Camilo Gonzalez
Dude, assign it to a variable. $tempdir = system(ls -l /tmp) -Original Message- From: Chuck [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 3:42 PM To: PERL-CGI List Subject: Easy way to get output from system() I have several CGI's that use system() to get various OS

RE: ultimate stupidity

2001-10-05 Thread Camilo Gonzalez
Yeah, don't worry about it. We're all bozos on this bus. -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 10:43 AM To: Francesco Scaglioni Cc: [EMAIL PROTECTED] Subject: Re: ultimate stupidity On Fri, 5 Oct 2001, Francesco Scaglioni

RE: How to save and retreive form

2001-09-26 Thread Camilo Gonzalez
Doesn't PostgreSQL have a reputation as being somewhat pokey? Is it open source? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Re: How to save and retreive form Brett == Brett W McCoy

foreach loop scoping

2001-08-17 Thread Camilo Gonzalez
Ack! Fellow programmers, I have what is probably a rudimentary problem I hope some one can solve. I'm trying to construct a hash of hashes from a form. The relevant code is as follows: for $modelkey (@model) { $datum = shift @data; @fields = (split //, $datum);

RE: search and return a value from a table

2001-08-09 Thread Camilo Gonzalez
Hmmm, didn't we cover overly general questions recently? Are you new to this group, Cynhsieh? Have you read any Perl books or taken any Perl classes? I apoligize if I sound a bit harsh. I'm no Perl expert by any means. I applaud you for choosing Perl for this task. You must realise however, that

RE: How to open a http or https url, as if it was a file

2001-08-08 Thread Camilo Gonzalez
Why not open the file itself? In other words, try: open (FILE, 'somefile.html') or die Can't open HTML document $!; I don't think you can open and search an entire site. -Original Message- From: Gael PEGLIASCO [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 8:15 AM To:

RE: Hash of hashes

2001-07-31 Thread Camilo Gonzalez
The @model array is composed of condo unit numbers, 301-627ish. The values may later be names so I'm treating them as strings. -Original Message- From: fliptop [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 7:02 PM To: Camilo Gonzalez Cc: [EMAIL PROTECTED] Subject: Re: Hash

RE: Hash of hashes

2001-07-30 Thread Camilo Gonzalez
Fliptop, Haven't studied all of CGI.pm's capability's yet. Is there an easier way to build a hash of hashes using it? -Original Message- From: fliptop [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 11:46 AM To: Camilo Gonzalez Cc: '[EMAIL PROTECTED]' Subject: Re: Hash of hashes

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
Bradley, I'm not sure your second example would work. I don't think single quotes block interpolation -Original Message- From: Bradley M. Handy [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 12:56 PM To: Tony Paterra; [EMAIL PROTECTED] Subject: RE: Copy and past HTML into a perl

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
. -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 2:35 PM To: Camilo Gonzalez Cc: 'Bradley M. Handy'; Tony Paterra; [EMAIL PROTECTED] Subject: RE: Copy and past HTML into a perl script On Fri, 13 Jul 2001, Camilo Gonzalez wrote: I'm not sure your

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
So let's clarify this. You believe the following to be equivalent: print ( 'The rain in $Spain' ); print ( 'The rain in $Spain' ); -Original Message- From: Bradley M. Handy [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 2:58 PM To: Camilo Gonzalez; 'Brett W. McCoy' Cc: Tony

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
To: Camilo Gonzalez; 'Brett W. McCoy' Cc: Tony Paterra; [EMAIL PROTECTED] Subject: RE: Copy and past HTML into a perl script No they aren't equivalent. The first prints out - The rain in $Spain The second prints out - The rain in $Spain Does that clarify things? -Original Message

Nasty

2001-07-13 Thread Camilo Gonzalez
I don't work with a lot of programmers. I hope to get into a situation where I do. Is it fair to say the majority are *holes? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Bucks

2001-07-11 Thread Camilo Gonzalez
I've been writing PERL scripts for over two years now. It's the only type of CGI I know. Would any of you more seasoned programmers say that there's still a market for PERL programmers? I've read of Python and possibly PHP taking over PERL's place as THE CGI language. I've also heard ASP takes up

RE: Script written HTML won

2001-07-10 Thread Camilo Gonzalez
Mine too. See if you have an unclosed table tag or even a missing /HTML or /FORM tag -Original Message- From: Bradley M. Handy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:53 PM To: Mark Bergeron; Samuel Brown; [EMAIL PROTECTED] Subject: RE: Script written HTML won It can

RE: Shifting bits

2001-07-09 Thread Camilo Gonzalez
Yes, and -Original Message- From: Brian Jackson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 12:26 PM To: [EMAIL PROTECTED] Subject: Shifting bits Unfortunately I don't have any Perl books available to me at this time and I am trying to find the answer to this on the web,

RE: floor

2001-07-09 Thread Camilo Gonzalez
Use integer, e.g. print her age is integer($age); The function will round up to the next highest number. -Original Message- From: Thomas Jakub [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 3:36 PM To: [EMAIL PROTECTED] Subject: floor in c++ you can floor a variable to drop