Re: Some questions

2001-07-31 Thread Gabor Szabo

Hi Martin,

You should start learning regular expressions
e.g. by typing 
perldoc perlre

or probably better with one of the Perl Books. Probably Learning Perl
3rd edition can be a good choice though I have seen only the 2nd yet.
and now your examples:

 
 I want to know what this lines can mean. I have a lot of lines like that
 to
 understand.
 
 s/à/a/g
replace all occurance of à by a  in the variable $_

 
 $qte1 =~ /\s*//g ;
replace al white spaces (spac, tab) in the string in $qte1

 $usager =~ s/-/_/g ;
replace dash by underscore

 $ppa =~ /o/i
this does not mean anything on its own (but in an if statement it
would return TRUE if the string in $ppa conatins either o or O

regards
-- Gabor

 
 Thanks a lot
 Martin
 
 
 -- 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-- 
Gabor Szabo
http://www.tracert.com/  
Web site monitoring
Web application development 
Perl training


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Sendmail

2001-07-31 Thread Adam Carson

Thanks Brett.  I'll try that.

  Adam Carson
MIS Department
 Berkeley County, SC

 Brett W. McCoy [EMAIL PROTECTED] 07/30/01 05:19PM 
On Mon, 30 Jul 2001, Adam Carson wrote:

 If you are suggesting that I use Mail::sendmail instead (are you?),
 the reason is that I got this code from Novell's website and it seemed
 to be a useful and easy to understand piece of code.  As a perl
 beginner, I also thought that understanding the process might be
 useful in the future... although I remember the discussion regarding
 hand-rolled CGI subs.  I would like to continue with my low level
 script unless there are valid security concerns regarding its use.  I
 will also look into Mail:sendmail as an alternative.  If I see that it
 is easier to use, I'll definitely switch.

Actually, no I was suggesting using:

open(MAIL, | /usr/sbin/sendmail -oi -t) or die' Can't fork sendmail: $!\n;

print MSG;
...
MSG

I see no reason to explicitly set up the smtp server handshake unless you
are trying to create your own MTA or doing some other kinds of tricks with
your mail transport.

-- Brett

   http://www.chapelperilous.net/btfwk/ 

Q:  Why did the WASP cross the road?
A:  To get to the middle.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 of hashes


[reply posted to list]

Camilo Gonzalez wrote:
 
 Yes, Fliptop. I wrote that in my orignal email. Would appreciate any
advice
 in that regard.

ok, good.  now, what is in the @model array?

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Creating a new query object from an input file

2001-07-31 Thread Brett W. McCoy

On Tue, 31 Jul 2001, Greg Matheson wrote:

 #!/usr/local/bin/perl -w

 use CGI;

 # set a parameter and save it in a file
 open (OUT,/home/greg/test.out) or die No open greg/test.out: $!;
 $p = new CGI;
 $p-param(-name='ID',-value='23423456');
 $p-save(OUT);
 close OUT;

 # reopen for reading
 open (IN,/home/greg/test.out) or die No params from test.out: $!\n;
 $q = new CGI;

Is this code exactly the same that you are running?  Because you are not
attaching the new CGI object to a file here (should be $q = new CGI(IN):,
right?)

-- Brett
   http://www.chapelperilous.net/btfwk/

Many are called, few volunteer.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




multipart/form-data Method POST to cgi script not working

2001-07-31 Thread mlists

Hello all,

If anyone could shed some light on this I would be in there debt. I know
what the BIG problem is...these scripts where written in perl5.004 and we
have moved or are moving to 5.6.0, but I don't know where to start looking
to fix the code so that is works with 5.6.0.

This is a multipart/form-data form, using method POST I'm unable to
retrieve the params passed to the cgi via $cgi-param('PARAM'), HOWEVER,
if the method is GET the $cgi-param('PARAM') works, but GET is not
supposed to work with multipart/form-data and doesn't in actually getting
the file sent by the user via an upload script.

I've even gone over the httpd.conf in hopes that it could be in there.
Everything is install RPM, but I've also tried source with the same results.
I will try to include everything that will be of help, but if I forget
something just e-mail me and I'll get it for you.



Thanks in advance,
Chris



# From rpm -qa

apache-1.3.19-5
mod_perl-1.24_01-2
perl-5.6.0-12

# From the error_log after apache startup
#
Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6
mod_perl/1.24_01 ApacheJServ/1.1.2 configured -- resuming normal operations

# From perl -v
##
This is perl, v5.6.0 built for i386-linux

Copyright 1987-2000, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.


 This is for that application in httpd.conf
###

## Contract Underwriting test##
Directory /path/to/the/dir/of/app
Options Includes FollowSymLinks ExecCGI
AllowOverride FileInfo AuthConfig Limit Indexes

AuthName DBI
AuthType Basic

PerlAuthenHandler Apache::AuthenDBI
PerlAuthzHandler Apache::AuthzDBI

PerlSetVar Auth_DBI_data_source dbi:Oracle:something.something.tgic.com
PerlSetVar Auth_DBI_usernamesomething
PerlSetVar Auth_DBI_passwordsomething
PerlSetVar Auth_DBI_pwd_table   user_tbl
PerlSetVar Auth_DBI_grp_table   user_tbl
PerlSetVar Auth_DBI_uid_field   USER_NAME
PerlSetVar Auth_DBI_pwd_field   USER_PSWD
PerlSetVar Auth_DBI_pwd_whereclause CU='Y'

Limit GET POST
order allow,deny
allow from all
require valid-user
/Limit
/Directory

Location /app/path
SetHandler perl-script
PerlHandler Apache::Registry
Options Includes FollowSymLinks ExecCGI
/Location
## End Contract test##



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Creating a new query object from an input file

2001-07-31 Thread Greg Matheson

On Tue, 31 Jul 2001, Brett W. McCoy wrote:

 On Tue, 31 Jul 2001, Greg Matheson wrote:

  #!/usr/local/bin/perl -w

  use CGI;

  # set a parameter and save it in a file
  open (OUT,/home/greg/test.out) or die No open greg/test.out: $!;
  $p = new CGI;
  $p-param(-name='ID',-value='23423456');
  $p-save(OUT);
  close OUT;

  # reopen for reading
  open (IN,/home/greg/test.out) or die No params from test.out: $!\n;
  $q = new CGI;

 Is this code exactly the same that you are running?  Because you are not
 attaching the new CGI object to a file here (should be $q = new CGI(IN):,
 right?)

Ooops. Big loss of credibility. I must have dropped it out when I
was cutting back the working verison to the failing version.

You can confirm in the output from the debugger that I ahd it as:

$q = new CGI(IN);

Thanks.

-- 
Greg MathesonAutonomous language learning:
Chinmin College, My next project after overseeing
Taiwan   laborers become athletes.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Creating a new query object from an input file

2001-07-31 Thread Greg Matheson

I am trying to use part of the CGI module doc about giving a new
object the parameters saved in a file. 

I am able to save the parameters to a file:

SAVING THE STATE OF THE SCRIPT TO A FILE:
 
$query-save(FILEHANDLE)

and I'm able to add to the parameters that an object already has:

$query-param(-name='foo',-value='the value');

I'm able to also initialize the query object from an associa­
   tive array reference:

 $query = new CGI( {'dinosaur'='barney',
   'song'='I love you',
   'friends'=[qw/Jessica George Nancy/]}
);

But I'm NOT able to use this:

   CREATING A NEW QUERY OBJECT FROM AN INPUT FILE
 
 $query = new CGI(INPUTFILE);


With the code:


#!/usr/local/bin/perl -w

use CGI;

# set a parameter and save it in a file
open (OUT,/home/greg/test.out) or die No open greg/test.out: $!;
$p = new CGI;
$p-param(-name='ID',-value='23423456');
$p-save(OUT);
close OUT;

# reopen for reading
open (IN,/home/greg/test.out) or die No params from test.out: $!\n;
$q = new CGI;

print   $q-header,
$q-start_html;

foreach $name ($q-param) {
print ($name, =, $q-param($name), $q-p);
}

print   $q-end_html;

I get in the debugger,

  DB2
main::(./other.pl:14):  $q = new CGI(IN);
  DB2
main::(./other.pl:16):  print   $q-header,
main::(./other.pl:17):  $q-start_html;
  DB2 x $q
0  CGI::Object=HASH(0x826c1e8)
   '.charset' = 'ISO-8859-1'
   '.fieldnames' = HASH(0x8297b84)
empty hash
   '.named' = 0
   '.parameters' = ARRAY(0x82909c0)
  0  'keywords'
   'keywords' = ARRAY(0x828defc)
  0  'IN'
  DB3

And then as evaluating IN shows, the parameters are sitting
there waiting to be read in.

  DB3 x IN
0  'ID=23423456
'
1  '=
'
  DB4

Curiously, this returning of 'keyword' for the parameters is what
the perldoc says to expect if the script was invoked as an
ISINDEX request.

So I gave up and inserted this to read from the file myself.

while (IN) {
last if $_ =~ m/^=$/;
($name, $value) = split '=';
$q-param(-name = $name, -value = $value);
}

And this works. But why doesn't 

$q = new CGI(IN);

work?


-- 
Greg MathesonAll teaching is teaching 
Chinmin College, under difficult circumstances.
Taiwan   

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: multipart/form-data Method POST to cgi script not working

2001-07-31 Thread Brett W. McCoy

On Tue, 31 Jul 2001, mlists wrote:

   This is a multipart/form-data form, using method POST I'm unable to
 retrieve the params passed to the cgi via $cgi-param('PARAM'), HOWEVER,
 if the method is GET the $cgi-param('PARAM') works, but GET is not
 supposed to work with multipart/form-data and doesn't in actually getting
 the file sent by the user via an upload script.

   I've even gone over the httpd.conf in hopes that it could be in there.
 Everything is install RPM, but I've also tried source with the same results.
 I will try to include everything that will be of help, but if I forget
 something just e-mail me and I'll get it for you.

The crucial thing you forgot to include is the actual code that is
bombing.  I see you are using CGI.pm, but are you using the actual
multipart/form support in CGI.pm (using start_multipart_form)?

-- Brett
   http://www.chapelperilous.net/btfwk/

And what will you do when you grow up to be as big as me?
asked the father of his little son.
Diet.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Exec cgi

2001-07-31 Thread Tiago Almeida Spritzer

Hi,

 Anybody help me with this question?
 I have two folders at the server, one with perl files and other with
html files. I need that the page index.html execute perl file, and I know
that this TAG do that !--#exec cgi
=/usr/local/web/w3/CGI-Bin/leituradois.pl--.  But I try and don't obtain
any result.

Regards,




Tiago Almeida Spritzer
IBM - Sales Operations Support - Brasil
E-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Exec cgi

2001-07-31 Thread Lisa Nyman

Hi,

Lotts of things could be going wrong.

On Tue, 31 Jul 2001, Tiago Almeida Spritzer wrote:

  Anybody help me with this question?
  I have two folders at the server, one with perl files and other with
 html files. I need that the page index.html execute perl file, and I know
 that this TAG do that !--#exec cgi
 =/usr/local/web/w3/CGI-Bin/leituradois.pl--.  But I try and don't obtain
 any result.

leituradois.pl could have errors or return no data.

leituradois.pl may have incorrect permissions.

The server may not be configured to allow exec server-side includes.

The server may not have exectuable directories set up correctly.

Do you get any error message at all on screen or in the logs?

Lisa Wolfisch Nyman  [EMAIL PROTECTED]  IT Warrior Princess
Life is too short to wear ugly underwear.
Get the facts at http://quickfacts.census.gov/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Sending Mail with CGI on Windows server

2001-07-31 Thread James Boeck

Hello All, 
I too am a newbie in the world of perl.  I was wondering if any of you could explain 
to me how you send out mail from a CGI script when your server is a WinNT 4.0 or Win2k 
server.  I figured it would be different since windows does not run sendmail.  Thanks 
for the help,
James H. Boeck

_
Sign up for FREE web based email from UfieMail at http://ufie.org/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Exec cgi

2001-07-31 Thread Tiago Almeida Spritzer


1.  Does leituradois.pl run from the command line?
 Yes.

2.  Are there any entries in your error logs?
 No.

3.  Can you run standalone CGI scripts through a browser
(in other words, is your Web server configured to
allow you to run those scripts)?.
 Yes.

4.  Is .pl the correct extension, or is .cgi required?
 I have tryed both, and it didn't work.

5.  Does the administrator of the box have SSI turned on?
Many sys admins won't enable SSI for security reasons.
 I don't know, could you tell me how can I verify this?

Tiago Almeida Spritzer
IBM - Sales Operations Support - Brasil
http://w3.br.ibm.com/brsales
Phone: 55-21-546-4752   T/L: 831-4752
Av. Pasteur, 138 - MA07 - Rio de Janeiro
E-mail: [EMAIL PROTECTED]


   
 
Curtis Poe 
 
[EMAIL PROTECTED]   To: CGI Beginners 
[EMAIL PROTECTED] 
m   cc:   
 
 Subject: Re: Exec cgi 
 
31/07/2001 
 
12:16  
 
Please respond 
 
to poec
 
   
 
   
 



--- Tiago Almeida Spritzer [EMAIL PROTECTED] wrote:
 Hi,

  Anybody help me with this question?
  I have two folders at the server, one with perl files and other with
 html files. I need that the page index.html execute perl file, and I know
 that this TAG do that !--#exec cgi
=/usr/local/web/w3/CGI-Bin/leituradois.pl--.  But I try and don't obtain
 any result.

 Regards,

 Tiago Almeida Spritzer
 IBM - Sales Operations Support - Brasil
 E-mail: [EMAIL PROTECTED]

A few questions:

1.  Does leituradois.pl run from the command line?
2.  Are there any entries in your error logs?
3.  Can you run standalone CGI scripts through a browser
(in other words, is your Web server configured to
allow you to run those scripts)?.
4.  Is .pl the correct extension, or is .cgi required?
5.  Does the administrator of the box have SSI turned on?
Many sys admins won't enable SSI for security reasons.

Cheers,
Curtis Poe

=
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
Ovid on http://www.perlmonks.org/

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: multipart/form-data Method POST to cgi script not working

2001-07-31 Thread Curtis Poe

--- mlists [EMAIL PROTECTED] wrote:
 
   Here is the code, the HTML page that is a template that is merged with the
 %data hash handled by sub merge_template
 I've even wrote little test pages and scripts just to test the data passing
 and that is where i discovered the diff between POST and GET...i will
 send those too...
 
 During the post no data is passed to the cgii.e. $cgi-param('PARAM') =
 nothing
  test html
 !
 html
 
 head
 titletest/title
 /head
 html
 body
 form enctype=multipart/form-data method=POST
 action=/apps/test1/test.cgi
 Select File: input TYPE=FILE NAME=FILE_TO_UPLOADbr
 Favorite color:input TYPE=TEXT NAME=FAVCOLORbr
 INPUT NAME=SUBMIT TYPE=SUBMIT VALUE=SUBMIT
 /form
 /body
 /html
 
 !!! test cgi
 !
 #!/usr/bin/perl
 
 use CGI;
 $cgi = new CGI;
 
 
 $submit = $cgi-param('SUBMIT');
 $fh = $cgi-param('FILE_TO_UPLOAD');
 $fav = $cgi-param('FAVCOLOR');
 
 open(UPLOAD, /tmp/fileuploadtest);
 while ($fh)
 {
 
 print UPLOAD;
 
 }
 
 close(UPLOAD);
 
 open(LOG, /tmp/test.log);
 print LOG $submit\n;
 #print LOG $file\n;
 print LOG $fav\n;
 close(LOG);
 
 
 print $cgi-header;
 print $cgi-start_html;
 
 
 print $submitbr;
 print $fhbr;
 print $favbr;
 
 print $cgi-end_html;

I don't see any immediate problem (though maybe it's glaring and I'm just not getting 
enough
coffee).  Here's a test script you can try to verify that you're getting data sent:

#!/usr/bin/perl -wT
use strict;
use CGI;
use Data::Dumper;

my $cgi = CGI-new;

print $cgi-header,
  $cgi-start_html( 'CGI Test' ),
  $cgi-pre( Dumper $cgi ),
  $cgi-end_html;

That will dump the CGI object to the screen.  You'll see something like the following:

$VAR1 = bless( {
 '.header_printed' = '1',
 '.charset' = 'ISO-8859-1',
 '.parameters' = [
'color',
'name'
  ],
 '.fieldnames' = {},
 'name' = [
 'Ovid'
   ],
 'color' = [
  'red'
]
   }, 'CGI' );

The '.parameters' will tell you the name of any parameters that were passed and later 
you can see
the values associated with the individual parameters.  It will also show you cookies, 
if
available.  They'll be in a CGI::Cookie object.

Basically, if you get no .parameters, you know that the CGI object did not get any 
data.

Cheers,
Curtis Poe

=
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
Ovid on http://www.perlmonks.org/

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Sending Mail with CGI on Windows server

2001-07-31 Thread Mark Bergeron

Use Net::SMTP. You'll find it and supporting documentation on CPAN.

-Original Message-
From: James Boeck[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Tue Jul 31 08:18:07 PDT 2001
Subject: Sending Mail with CGI on Windows server

Hello All, 

I too am a newbie in the world of perl.  I was wondering if any of you could explain 
to me how you send out mail from a CGI script when your server is a WinNT 4.0 or 
Win2k server.  I figured it would be different since windows does not run sendmail.  
Thanks for the help,

James H. Boeck

_
Sign up for FREE web based email from UfieMail at http://ufie.org/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


/~_. _ | _ _  _  _ 
\_/|(_||| | |(_)| |
 _|
___
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




form-to-email script

2001-07-31 Thread Larry Mullis

The following script is supposed to email the contents of a form, but when I click 
Send, no email is sent. The page returns with The page cannot be displayed.
Any help will be appreciated.

Larry


#!/usr/bin/perl -w 

#use strict;

use CGI qw(standard);

print header;

my $mailprog = '/usr/sbin/sendmail';

my $recipient = '[EMAIL PROTECTED]';

open (MAIL, |$mailprog -t) or dienice(Can't access $mailprog: $!\n); 

print MAIL To: $recipient\n;

print MAIL Reply-to: , param('email'), ' (', param('name'), )\n; 

print MAIL Subject: Form Data\n\n; 

foreach (param) {

  my ($key) = /^req(.*)$/; 

  print MAIL $key = , param($_), \n;

} 

close(MAIL);

print EndHTML; 

   h2Thank You/h2 

   Thank you for applying. Your application has been delivered.p

   Return to our a href=../homemain.htmlhome page/a. 

   /body/html 

EndHTML

sub dienice { 

  my ($errmsg) = @_;

  print h2Error/h2\n;

  print $errmsgp\n; 

  print /body/html\n; 

  exit; 

} 




RE: PERL and JavaScript

2001-07-31 Thread Bradley M. Handy

What kind of problems were you having with Perl?

Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]


 -Original Message-
 From: Chris Johnstone [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 3:23 PM
 To: [EMAIL PROTECTED]
 Subject: PERL and JavaScript
 
 
 I am a beginning PERL programmer working primarily
 with the CGI interface, and have just encountered my
 first problem which I couldn't solve with PERL. After
 about a solid week of trying different things, I gave
 up and used a little JavaScript code. My question is,
 do professional programmers working on large
 applications using the CGI interface oftern turn to
 JavaScript, or do they try to solve everything
 internally with PERL?
 
 Chris Johnstone
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/
 
 -- 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: PERL and JavaScript

2001-07-31 Thread Brett W. McCoy

On Tue, 31 Jul 2001, Chris Johnstone wrote:

 I am a beginning PERL programmer working primarily
 with the CGI interface, and have just encountered my
 first problem which I couldn't solve with PERL. After
 about a solid week of trying different things, I gave
 up and used a little JavaScript code. My question is,
 do professional programmers working on large
 applications using the CGI interface oftern turn to
 JavaScript, or do they try to solve everything
 internally with PERL?

In the various web development places I have worked, JavaScript stuff was
usually handled by the 'front end' people (the designers who did the page
development) and not by the engineering department (the programmers who
did the server-side stuff), so it was a rare case that something was taken
out of engineering and moved to the web developers.  In a freelance job I
am doing right now, we are doing the opposite: I am taking a bunch of
JavaScripted prototyped pages that comprise a web application and am
re-engineering in Perl.

What was the problem you couldn't solve with Perl?

-- Brett
   http://www.chapelperilous.net/btfwk/

It is impossible to enjoy idling thoroughly unless one has plenty of
work to do.
-- Jerome Klapka Jerome


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: PERL and JavaScript

2001-07-31 Thread Curtis Poe

--- Brett W. McCoy [EMAIL PROTECTED] wrote:
 On Tue, 31 Jul 2001, Chris Johnstone wrote:
 
  I am a beginning PERL programmer working primarily
  with the CGI interface, and have just encountered my
  first problem which I couldn't solve with PERL. After
  about a solid week of trying different things, I gave
  up and used a little JavaScript code. My question is,
  do professional programmers working on large
  applications using the CGI interface oftern turn to
  JavaScript, or do they try to solve everything
  internally with PERL?
 
 In the various web development places I have worked, JavaScript stuff was
 usually handled by the 'front end' people (the designers who did the page
 development) and not by the engineering department (the programmers who
 did the server-side stuff), so it was a rare case that something was taken
 out of engineering and moved to the web developers.  In a freelance job I
 am doing right now, we are doing the opposite: I am taking a bunch of
 JavaScripted prototyped pages that comprise a web application and am
 re-engineering in Perl.
 
 What was the problem you couldn't solve with Perl?

We do the same thing here.  Our front-end people handle the javascript work and I 
occassionally
tweak it to serve my needs.  The advantage of javascript is that it is client-side and 
offers much
faster response than Perl.  I will sometimes use javascript to validate form data 
*prior* to it
being sent to the server, simply because this ensures a quicker response.  However, I 
must *still*
validate the form data on the server side because the client may have javascript 
disabled either
out of personal preference or desire to submit bad data (crackers, for example).

A good rule of thumb with javascript:  if you cannot control who will have access to 
the site, use
it to enhance functionality, but not provide it.  If your site is requires javascript, 
you may be
turning away potential users.

We do build sites that require javascript, but usually they are things like 
administrative
consoles where we can restrict access to a set of users who have agreed upon the 
requirements.

Cheers,
Curtis Poe

=
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
Ovid on http://www.perlmonks.org/

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Way off topic...

2001-07-31 Thread Moon, John

F* Up Beyond All Recognition  (which is what happens to the best of
all of us at times ...) ... an old military term ... 

I had that happen once to a program I wrote ... a CGI program ... a PERL CGI
program ... in fact ... several programs ... but I now use strict 

-Original Message-
From: Ryan Davis/Pamela Karr [mailto:[EMAIL PROTECTED]]
Sent: July 31, 2001 17:58
To: [EMAIL PROTECTED]
Subject: Way off topic...


I figure someone here might know, and I've been wondering for years.

Where did 'foo' and 'bar' come from?  

Thanks,
Ryan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Way off topic...

2001-07-31 Thread Bkwyrm

Le Tue, Jul 31, 2001 at 04:58:17PM -0500, Ryan Davis/Pamela Karr a dit le suivant:
} Where did 'foo' and 'bar' come from?  

I was always under the impression that they came from the old
military(?) acronym FUBAR, which stood for
f*cked up beyond all recognition, at least according to good 
ol' dad.  :)

--

Namaste,

Kristin

Kristin Anne Igaki  [EMAIL PROTECTED]
Internal Engineering1010 Turquoise, Ste. 201
BlueMountain.comSan Diego, CA  92109
A division of Excite@Home   phone:  858.539.5444
www.bluemountain.comfax:858.539.7383

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: -= For the LOVE OF GOD!!!! =-

2001-07-31 Thread Casey West

On Tue, Jul 31, 2001 at 11:09:50AM -1100, Jason Helmich wrote:
: yes casey, 
:  thank you so much for clearing that up for me. i have read the faq. i'm
: not a moron this is what i get in return:

I didn't suggest that you were a moron.

: 
: To confirm that you would like
: 
:[EMAIL PROTECTED]
: 
: removed from the beginners-cgi mailing list, please send an empty reply 
: to this address:
: 
:  
: [EMAIL PROTECTED]
: 
: Usually, this happens when you just hit the reply button.
: If this does not work, simply copy the address and paste it into
: the To: field of a new message.
: 
: or click here:
:   
: mailto:beginners-cgi-uc.996547924.odnieinajejpiolljodf-jhelmich=bluesky.as@p
: erl.org
: 
: ---
: so i do that and this is what i get:
: Hi. This is the qmail-send program at onion.perl.org.
: I'm afraid I wasn't able to deliver your message to the following addresses.
: This is a permanent error; I've given up. Sorry it didn't work out.
: 
: [EMAIL PROTECTED]:
: Bad character in address components:
: mailto:beginners-cgi-uc.996547924.odnieinajejpiolljodf-jhelmich=b;

It sounds to me like you might have included the 'mailto:' bit in your
reply.  It's just a guess.  Also, are you unsubscribing from the exact
email address you are subscribed from?  If you're sure that's not the case then
the next thing to do is get in touch with the list owner.  Of course,
that's me so, if you are still having problems after you check my
suggestion, please email me privatley and I'll help you get this taken
care of.

: so dont tell me to read the fuckin faq

I know you are trying to unsubscribe from this mailing list but please
don't do this while you're still here.

  Casey West

-- 
Windows NT 3.5 is not designed to route packets. . .so your Internet
Service Provider cannot be a Windows NT 3.5 box.
 -- Microsoft, 1995, on Win NT RAS

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]