Re: Testing my CGI

2014-11-04 Thread John SJ Anderson
Look at the source code for the module. The 'tick' method just uses a bare 'return' on success, which means it's going to fail an ok() test regardless of whether or not it works. You may also want to look at Test::WWW::Mechanize. chrs, john. On Tue, Nov 4, 2014 at

Re: WWW::Mechanize question

2014-11-04 Thread John SJ Anderson
ord" > AuthUserFile /var/www/passwords/cportal.passwd > Require valid-user > > > login/password is the same for all versions. > > > I know it is something just one step away, can’t get what it is? > > >> On Nov 3, 2014, at 8:50 AM, John SJ Anderson wro

Re: WWW::Mechanize question

2014-11-03 Thread John SJ Anderson
then you won't have to worry about it. chrs, john. On Mon, Nov 3, 2014 at 6:41 AM, Patton, Billy N wrote: > I’ve inherited an app that uses templates. > Most of the template contain multiple forms and tables within and buttons > within that. > The order of the forms I can get

Re: cgi and inheritance

2014-10-06 Thread John SJ Anderson
;error()' method, on the result returned by calling the 'log()' method, on the current object ($self). You could also write that as: my $log = $self->log(); $log->error(*) (I'm assuming '*' is a stand-in for the actual arguments.) chrs, john.

Re: Showing errors with user input

2009-12-10 Thread John W. Krahn
declare that subroutine and prototype. Just remove the invalid prototype. This is the same prototype that is giving you problems on line 43. John -- The programmer is fighting against the two most destructive forces in the universe: entropy and human stupidity. -- Damian C

Re: Showing errors with user input

2009-12-10 Thread John W. Krahn
print "\n"; print "Password: ", password_field(-name=>'Password1', -maxlength=>120), "\n"; print "\n"; print "Repeat Password: ", password_field(-name=>'Pas

Re: Data Conversion ?

2009-11-07 Thread John W. Krahn
Nathan Gibbs wrote: How would I get the length of a string as returned by length () into a 4 byte unsigned integer in network byte order my $length = pack 'N', length $string; John -- The programmer is fighting against the two most destructive forces in the universe: entropy

Re: Creating a Logon Form

2008-12-14 Thread John W. Krahn
John W. Krahn wrote: PekinSOFT wrote: John W. Krahn wrote: pekins...@gmail.com wrote: I enter the string 'hiyall2008' in the password field and get the following values in my logon script... Click 1: hiyall2008153639492 Click 2: hiyall2008135813700

Re: Creating a Logon Form

2008-12-12 Thread John W. Krahn
PekinSOFT wrote: John W. Krahn wrote: pekins...@gmail.com wrote: I enter the string 'hiyall2008' in the password field and get the following values in my logon script... Click 1: hiyall2008153639492 Click 2: hiyall2008135813700 Click 3: hiyall2008152312388

Re: Creating a Logon Form

2008-12-10 Thread John W. Krahn
mbers instead of 9! I know that it is something that I'm not doing correctly, but I cannot figure out what I'm doing wrong. If you just want to "strip" 9 characters from the end of your string then: $ perl -le' $_ = "hiyall2008153639492"; print; substr( $_

Re: awk command in script?

2008-11-21 Thread John W. Krahn
-1]\n"; } } Or more simply: #!/usr/bin/perl -w use strict; while () { if ( /QQQ/ ) { print +( split )[ -2 ], "\n"; } } John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at lo

Re: awk command in script?

2008-11-20 Thread John W. Krahn
guess that you want the line number where // was found? If so: while ( my $line = ) { next unless /xxxx/; print $q->center( $q->h3( "\nNext line containing '' is:\n" ), $q->h3( $_ ), $q->h3( "At line number: $."

Re: Processing files in a directory

2008-11-11 Thread John W. Krahn
Susheel Koushik wrote: use the PERL system command. Its a wrapper for system call on your host OS. ex: system("rm *.tmp"); Why, when you can just do: unlink <*.tmp>; John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of

Re: parsing a line

2008-08-20 Thread John W. Krahn
59010081bb300597603b6f90ef4421 001608427754e957a0d281bb30059760 a72f731c3be6 John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order.-- Larry Wall -- To unsubscribe, e-mail: [EMAIL PR

Re: Testing an array for a match

2008-04-10 Thread John W. Krahn
:/, @Treasures ) { John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order.-- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl Courses

2007-08-21 Thread John Arbes
;s course: http://www.traininghott.com/Courses/Perl-Programming-CGI-Scripting.htm Thanks in advance, John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Help downloading a file

2007-05-01 Thread Moon, John
0) { print $buff } } Generates: Status: 200 OK Expires: Wed, 02 May 2007 14:53:53 GMT Date: Tue, 01 May 2007 14:53:53 GMT Content-Disposition: attachment; filename="Requested_Report.pdf" content-length: 92455 Content-Type: application/pdf John W Moon

Re: Adding a comma to format localtime

2007-04-11 Thread John W. Krahn
5 ( my $datetime = localtime ) =~ s{(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)} {$1, $3 $2 $5 $4}; John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall --

Re: Can't use string as a subroutine ref while "strict refs"

2006-11-11 Thread John W. Krahn
== > Trying to call the subroutine main from variable $do but I am gettin' error: > Can't use string ("main") as a subroutine ref while "strict refs. > But somehow I don't want to remove the 'use Strict;' > > Any way out? my $q = new CGI;

Re: Convert Date to Timestamp.

2006-11-03 Thread John W. Krahn
values that you have to supply to POSIX::mktime() are the first six, the other values are recomputed, so: my ( $sec, $min, $hour, $mday, $mon, $year ) = ( 1, 0, 0, 1, 10, 107 ); my $timestamp = mktime( $sec, $min, $hour, $mday, $mon, $year ); John -- Perl isn't a toolbox, but a small mac

Re: Script produces nothing when run from web page

2006-10-24 Thread John Kennedy
t the system call works > and I > get the data I would expect. In fact I left the $domain set to > www.resmaster.com > and tried running it as a cgi and I get nothing from the system call. > > I am using Apache 2.2 as my webserver and perl 5.8.8 both as they came with > Fedora core 5. > > Can anyone

Re: indexing... in some way

2005-12-12 Thread John W. Krahn
grep does not work? The string in $_ has a newline at the end. > Is this the fastest way? sort -u tagged_files/* > word+tag.txt grep -L -f word+tag.txt tagged_files/* Or did you really want to do it in Perl? Maybe if you could explain in more detail exactly what you want to do? John --

Re: Exact matching using GREP.

2005-09-09 Thread John W. Krahn
x27;s not working, probably you didnt' get my question. That's the way I read it and that is how you do it in Perl. It looks like you think that Perl's grep is the same as the grep program you use on the command line but it is not. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: getstore and comments

2005-08-19 Thread John W. Krahn
normal > variable or a filehandle to read with whlie(<>)? I don't understand, sorry. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

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

2005-06-14 Thread John W. Krahn
on whether you are looking at the left side or the right side of the operator. So you should write the expression without parentheses like: # Returns code or redirect to the page print $str_codetoreturn ? $cgi_this->header() . $str_codetoreturn : $cgi_this->redirect( -uri => $st

Re: hello all

2005-02-21 Thread John W. Krahn
r die "Cannot open $directory/$filename: $!"; my ( $author, $message ) = ( split /\|/, )[ 1, 8 ]; close FILE; die "Cannot find a message!\n" unless defined $message; print header, start_html( 'Untitled Document' ), p, "Here is the newest post t

RE: Favorite Perl CGI Framework for Web Site Development?

2005-02-11 Thread Stokes, John
I don't know if this is exactly what you're looking for, but WebGUI by PlainBlack (www.plainblack.com) looks like an option. -John -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: Fri 2/11/2005 8:15 AM To: Siegfried Heintze Cc: Perl Beginners

RE: Premature end of script headers

2005-02-08 Thread Moon, John
Subject: Premature end of script headers hello, I am getting following error. Premature end of script headers Can anybody plz tell me what is the cause of this. Have you tried to execute the script from the command line? That is sometimes helpful in finding the error... jwm -- To unsub

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

2004-09-08 Thread John Sharpe
-Original Message- From: Robert Page IV [mailto:[EMAIL PROTECTED] Sent: 09 September 2004 03:19 To: Sean Davis Cc: [EMAIL PROTECTED] Subject: Re: CGI.pm : Handling Carriage Returns from textarea() On Sep 6, 2004, at 8:52 PM, Sean Davis wrote: > White space (including carriage returns

RE: A little off topic

2004-08-16 Thread Moon, John
Thanks for the reply... I guess it was a little too much coffee. The problem was in the function it's self... Once I fixed that error everything worked OK jwm -Original Message- From: Shaun Fryer [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 11:55 AM To: Moon, John Su

A little off topic

2004-08-13 Thread Moon, John
Has anyone has experience getting the to work? Where MyFunction is a JavaScript... with IE ? Thanks in advance jwm -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Help with CGI & HTML

2004-07-06 Thread Moon, John
I have a form that targets a reply to a "new" window. I would like to post the progress of the reply then display an option to "display" or "save" the file I generate. Here is what I have so far (which is not working)...: $|++; print $q->header(); ... print "progress..."; ... print "progress...";

Re: CGI and mySQL book, any recommendation.

2004-05-30 Thread John Halladay
Ditto. "I would appreciate a little evidence in support of these claims so that I can better judge for myself." John Halladay Green Aspen, Inc. Web Development - Server Admin - Hosting - Consulting Be sure to visit us at www.greenaspen.com! Paul Archer wrote: Yesterday, Randal L. Schw

Re: CGI and mySQL book, any recommendation.

2004-05-29 Thread John Halladay
I learned Perl by reading 'Learning Perl, 2nd ed.' and found it very easy to read - on top of that 'CGI Programming with Perl' is also a good read. I'd suggest you give O'Reilly a try - I don't buy any other publisher for my Linux/Perl books. John Hallada

RE: CGI and mySQL book, any recommendation.

2004-05-29 Thread John
Randal, "Orthogonal". Randal, We just love it when you talk dirty! ~~~~ John-- [EMAIL PROTECTED] > -Original Message- > From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 29

RE: Displaying Data in a Table

2004-05-11 Thread John Mooney
Late to the question, but don't discount using a simple (pre-formatted) tag either ... keeps things lined up nicely in a mono-spaced font. I often use this for short web-ified shell cmd results. #!/usr/local/bin/perl -w print "Content-type: text/html\n\n"; our @cmd = `df -sk|fgrep -v nf

Re: cgi retaining state (even though I don't want it to)

2004-04-19 Thread John Kennedy
ot;\n"; $doc->dispose; $q->delete_all; exit; sub error { my( $q, $reason ) = @_; print $q->header(-type=>'text/html', -expires=>'now'), $q->start_html( "Error" ), $q->h1( "Error" ),

cgi retaining state (even though I don't want it to)

2004-04-16 Thread John Kennedy
after I submit a request and then submit a new one I get the correct behaviour.(sometimes this takes longer to work). The cgi script seems to be saving the final state of my previous request and I don't know how to stop this.. can anybody help?? cheers johnk -- Dr. John

CGI module comparison

2004-03-29 Thread John Goodleaf
weaknesses. I'd like to figure out which ones I might make use of, so I'm actually looking to RTFM. I just haven't found an M that suits. Thanks, John PS How do you pronounce 'munging'? I'm having an argument with a coworker. The split is between 'munjing' a

RE: What are you really trying to do? - document type = applicat ion/vnd.ms-excel

2004-02-27 Thread Moon, John
-Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 3:10 PM To: 'Moon, John'; CGI Beginners Subject: RE: What are you really trying to do? - document type = applicat ion/vnd.ms-excel Moon, John wrote: > What I'm trying to

RE: What are you really trying to do? - document type = application/vnd.ms-excel

2004-02-27 Thread John Mooney
>>> "Moon, John" <[EMAIL PROTECTED]> 2/26/2004 3:42:26 PM >>> >-Original Message- >From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] >Sent: Thursday, February 26, 2004 3:03 PM >To: Moon, John; CGI Beginners >Subject: RE: What are you rea

document type = application/vnd.ms-excel

2004-02-26 Thread Moon, John
I am trying to generate a web page with : print $q->header("application/vnd.ms-excel"), This tries to launch Excel but I get the error: "File cannot be opened because: A declaration was not closed Line 1, Position 1 <" When I use: print $q->header("text/html"), The page displays correctly and I

RE: What are you really trying to do? - document type = applicat ion/vnd.ms-excel

2004-02-26 Thread Moon, John
adsheet... Any thoughts would be greatly appreciated... Thanks, jwm -Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 1:51 PM To: Moon, John; CGI Beginners Subject: Re: document type = application/vnd.ms-excel > I am trying to genera

RE: What are you really trying to do? - document type = applicat ion/vnd.ms-excel

2004-02-26 Thread Moon, John
-Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 3:03 PM To: Moon, John; CGI Beginners Subject: RE: What are you really trying to do? - document type = applicat ion/vnd.ms-excel Gotcha, please bottom post... > What I'm tryi

RE: extracting email addys.

2003-11-24 Thread John Horner
Here's my position on this. Randal is a very respected member of the Perl community, but in this case I think his response was a bit extreme, especially as it didn't spell out *why* he was so annoyed. First of all, what's "The FAQ"? Perl, and the various version of Perl, have a lot of differen

Re: extracting email addys.

2003-11-22 Thread John Horner
> $text =~ m/[EMAIL PROTECTED]/g; WRONG. WRONG WRONG WRONG. Please read the FAQ on this. And dare I say again, WRONG. Wow, Randal, even for you that's a bit extreme. Couldn't you explain even a little bit why it's so wrong, and give more details about "the FAQ"? It is a beginners' list after

Re: hit counter

2003-11-13 Thread John Horner
I just wanted to note that the HTML in this was incorrect. "" & myarray(i) & ".gif" should be '' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Can't locate GD.pm in @INC...

2003-11-03 Thread Krautkramer, John
r modules installed in the normal >locations, have the proper C compiling libs and programs, etc. etc. etc. > >If this doesn't work then come back for a second round... > >http://danconia.org That was it! I also found I needed to install a later version of libgd to get GD.pm to properly install. Thanks for the help! John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Can't locate GD.pm in @INC...

2003-11-03 Thread Krautkramer, John
el-1.8.4-11 gd-1.8.4-11 Any ideas for a very new user? Thanks! John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: unlink help.

2003-10-29 Thread Moon, John
Another way ... opendir REMOVEIT, $dir or die "Open Failed"; my @gone = grep /\.bak$/ , map "$dir/$_". readdir REMOVEIT; closedir REMOVEIT; print "Remove ", join(',', @gone), "? :"; my $cnt; if (<> =~ /y/i) { $cnt = unlink @gone; print "Removed $cnt files from $dir ending in .bak\n" if (

RE: quotes problem

2003-10-20 Thread Canavan, John
Did you try making the quote line read: $field = qq(This is the string "which" contains the quotes); ??? That's the trick I always use. John -Original Message- From: Sara [mailto:[EMAIL PROTECTED] Sent: Sunday, October 19, 2003 16:56 To: beginners-cgi Subject:

Re: Problem writing to a file

2003-09-17 Thread John Park
On Wednesday, September 17, 2003, at 03:56 PM, drieux wrote: Remember that most web servers are running as the web-server uid - www or apache - and so can only 'write' where that uid has 'write permission'. It can of course read/execute anything that is 'world readable/executable' but as a genera

Problem writing to a file

2003-09-17 Thread John Park
n files, and output its contents to a new webpage. Am I using the wrong function for creating files? Thank you. -John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: radio_group question:

2003-06-06 Thread Herbold, John W.
That was it! You da man! Thanks! John W. Herbold Jr. IS Specialist/DBA -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:54 PM To: 'Herbold, John W.'; [EMAIL PROTECTED] Subject: RE: radio_group question: Herbold, John W. wro

radio_group question:

2003-06-06 Thread Herbold, John W.
=$t1 ; push @sval, $T1; } print Tr(td((radio_group({-name=>'SCHEMA_ID', -default=>$SCHEMA_ID, -linebreak=>'Y', -values=>[EMAIL PROTECTED], -labels=>\%slbl};

RE: Please Help a NOVICE

2003-05-29 Thread Rev John J Macuga III
Thank you, I for to say that I am using RedHat 9.0 John -Original Message- From: Sp0oKeR [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 1:20 PM To: Rev John J Macuga III Subject: Re: Please Help a NOVICE I saw this problem ath RedHat 9.0. Then, I install modules from RPM

Please Help a NOVICE

2003-05-29 Thread Rev John J Macuga III
I need HELP bad! I have never really had a problem installing perl modules either via CPAN or Self Install. However, I find myself back in this position with a new desktop system and my troubles are mounting. I am using a system with an Intel 3.06GHz processor with "HyperThreading" and a dual c

RE: lower casing email address

2003-02-25 Thread John
That's fine for the first step. However, its getting a regex in Perl to output lower case numbers which is the real gotcha! (Okay, okay. I'm sorry. I just couldn't resist...) ~~~~ John-- [EMAIL PROTECTED] > ---

executing system command via browser

2003-02-15 Thread John Lin
he problem is at this time Any help is welcome! Thank you all! John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

execute system command

2003-02-15 Thread John Lin
he problem is at this time Any help is welcome! Thank you all! John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Cookie INfo

2003-02-05 Thread John Mooney
. 1 result from Google). http://www.ietf.org/rfc/rfc2109.txt http://wp.netscape.com/newsref/std/cookie_spec.html HTH - John >>> "Kipp, James" <[EMAIL PROTECTED]> 2/5/2003 8:04:16 AM >>> > > > Can anyone point me to some good docs for using cookies &

Re: Handling & =

2002-12-10 Thread John Stokes
Oh! Didn't think about that. Yes, that looks like a very workable solution. Thanks again. -John On 12/10/02 11:33 AM, "Larry Coffin" <[EMAIL PROTECTED]> wrote: > At 2:15 PM -0500 12/10/02, John Stokes wrote: >> Ah yes... That makes sense. >> >> Th

Re: Handling & =

2002-12-10 Thread John Stokes
ike I'm back to where I was before: splitting the string on & before I process %26. That's still OK. It's a better solution than what I'm doing now. Thanks again all (esp. Larry). -John On 12/10/02 11:03 AM, "Larry Coffin" <[EMAIL PROTECTED]> wro

Re: Handling & =

2002-12-10 Thread John Stokes
Nope, no luck. When I use something like: Print >> End_form; Name: $q->param("name") End_form My output looks like: Name: CGI=HASH(0x6590)->param("name") I think I tried this before and that's why I didn't use CGI.pm for variable processing. But

Re: Handling & =

2002-12-10 Thread John Stokes
ompany Name Applicant's Name: $q->param("Name") End_of_form ?? If that's a legal syntax, then that solves my problem! Thanks all! -John On 12/10/02 9:39 AM, "Larry Coffin" <[EMAIL PROTECTED]> wrote: >> In terms of "why reinvent the wheel",

Re: Handling & =

2002-12-10 Thread John Stokes
om doing something like print >> End_of_form ...lots of HTML code... End_of_form Unless I'm missing something there, too. Thanks very much! -John On 12/9/02 2:21 PM, "Wiggins d'Anconia" <[EMAIL PROTECTED]> wrote: > Do you know what browser(s)? Most browser

Re: Handling & =

2002-12-09 Thread John Stokes
If I do that, then all of them would be replaced and I'd have the same problem with the - then. How do I distinguish between an & that HTML inserted as a delimiter vs. an & the user entered? (or an =, for that matter) -John On 12/9/02 4:50 PM, "Sven Bentlage" <[EMAI

Handling & =

2002-12-09 Thread John Stokes
I have an ongoing problem. As you know, HTML encodes GET and POST requests using the format: "myurl.com?name1=value1&name2=value2&..." My problem is, I have users constantly using ampersands (&) in text fields (ex: John & Jane Doe), so my data comes across as: "?na

RE: mysql

2002-11-02 Thread Herbold, John W.
h one user one each MySQL is about 4 times faster! More testing is needed but it is looking good. Thanks, John Herbold IS Specialist/DBA -Original Message- From: Admin-Stress [mailto:meerkapot@;yahoo.com] Sent: Saturday, November 02, 2002 1:36 AM To: [EMAIL PROTECTED] Subject:

Re: missing the boat on s///

2002-08-28 Thread John Pitchko
$_ =~ s/$w/$i/; John Pitchko Data Services Saskatchewan Government Insurance >>> "Jerry Preston" <[EMAIL PROTECTED]> 08/28/02 10:04am >>> Hi!, I know this is simple, but what am I doing wrong? $_ = "Who is missing the boat"; $j = "Jerry"; $w = "Who"; $_ = s/$w/$j/; Thanks, Jerry

RE: No cache

2002-08-27 Thread John Mooney
Also, some proxy servers (notably AOL) ignore HTTP_EQUIV directives set in META tags. aol HTTP header info: http://webmaster.aol.com/index.cfm?article=556&expand=0&sitenum=2&menuid=56 >>> Bob Showalter <[EMAIL PROTECTED]> 8/25/2002 4:11:25 PM >>> > -Original Message- > From:

pgp in cgi's - using someone elses keyring?

2002-08-20 Thread John Mooney
own, but I'm still unsure how to let user nobody use this from a CGI. I also checked CPAN for pgp but didn't see any modules specifically helpful for using PGP in a CGI. Did I miss some good ones? I am using PGPfreeware 5.0i on AIX, with Netscape http server. Thanks - John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to set cookies for an SHTML document?

2002-08-20 Thread John Pitchko
Is the cookie being generated by the SHTML page or by a Perl script? John Pitchko Data Services Saskatchewan Government Insurance >>> "Octavian Rasnita" <[EMAIL PROTECTED]> 08/19/02 12:03pm >>> Hi all, I have an SHTML file and I want to set cookies for it.

Re: REMOVE ME from your mailing list!

2002-08-14 Thread John Pitchko
Very clever! But what's really scary is his e-mail address. "@us.army.mil" How nice, an army guy that hasn't figured out how to unsubscribe from an e-mail list. I hope he isn't the dude that holds his finger above the nuke button. John Pitchko Data Services Saskatch

Re: REMOVE ME from your mailing list!

2002-08-13 Thread John Pitchko
Did you read where it says, "To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]"??? Or try mailing the admin? John Pitchko Data Services Saskatchewan Government Insurance >>> "Buskirk, Richard Mr USAREC" <[EMAIL PROTECTE

Re: How to find the remote time?

2002-08-12 Thread John Pitchko
Uh probably not with CGI because that is all executed server side, so I don't think you can access anything on the individual clients unless they expressly submit data to the server. Maybe try some JavaScript? John Pitchko Data Services Saskatchewan Government Insu

Re: Checking Form data

2002-07-31 Thread John Griffiths
he best way to make sure this > format is entered. Should i use javascript here or regex? -- Dr. John Griffiths \( ~ )7 The Teahouse of Experience MAILTO:[EMAIL PROTECTED] http://www.frontier.net/~grifftoe/ O, call back yesterday. Richard II, act 3, sc. 2. -- To unsubscribe, e-mail:

HTTP_EQUIV Meta Tag

2002-07-30 Thread John Pitchko
-head=>meta({-http_equiv => 'Content-Type', -content=> 'text/html'})) Any ideas guys? Thanks, John PitchkoData ServicesSaskatchewan Government Insurance

RE: fetch CGI::Cookie Trouble

2002-07-29 Thread John Pitchko
he CGI::Cookie package with the fetch subroutine, but I thought I would try it using the CGI package. I took this code from the http://www.perl.com/doc/manual/html/lib/CGI.html#NETSCAPE_COOKIES. The result is that these hashes are empty. John Pitchko Data Services Saskatchewan Government Insuran

fetch CGI::Cookie Trouble

2002-07-29 Thread John Pitchko
g the fetch CGI::Cookie command, we get: Can't call method "value" on an undefined value at /appl/webdocs/cgi-bin/verify.cgi line 45. We are using the exact code from the manpage and have no idea why this is happening. Any suggestions? Thanks, John Pitchko Data Services Sas

re: Viruses

2002-07-18 Thread John
l get it at the same time causing many alarms to be sounded -- instead of just the one lonely voice in the wilderness? Just a thought... John-- Vice President / Chief Technical Officer Small Business Help Center, Inc. http://www.helpbizowners.com [EMAIL PROTECTED] -- To unsubscribe, e-ma

Re: Ternary Regex Evaluation

2002-07-12 Thread John Pitchko
Yes, we didn't even think about that until after someone else on this list mentioned it. We fixed it. John Pitchko Data Services Saskatchewan Government Insurance >>> "Shawn" <[EMAIL PROTECTED]> 07/12/02 04:07am >>> my $title; open (FH, HTML_HOME . $di

RE: Accessing Extra Information in die()

2002-07-11 Thread John Pitchko
I am, but I created my own custom Error subroutine/module to display information instead of just calling the die() function and displaying a bunch of crazy technical information to the user. As for $!, it only passes the type of error and not the file and line numbers. John Pitchko Data

Accessing Extra Information in die()

2002-07-11 Thread John Pitchko
, John Pitchko Data Services Saskatchewan Government Insurance

Re: Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
Yes that would work, but I was really curious as to why the ternary operation does not work. In fact, none of my other ternary operations seem to work. Is there something wrong with my syntax? Thanks, John Pitchko Data Services Saskatchewan Government Insurance >>> "Connie

Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
. $content or die "Cannot open file : $!"; while () { chomp; (m/(.*)<\/title>/i) ? $title = $1 : $title = $content; } print $title; Does anyone have any suggestions? TIA John Pitchko Data Services Saskatchewan Government Insurance

RE: too many headers from CGI script (max 200)

2002-07-04 Thread John Pitchko
Thanks, but I think I solved the problem. I was loading an array with all the contents of a particular directory and I don't think it liked having so many (for some strange reason). Either Perl or CGI.pm was unhappy with that. Anyways, thanks for the help. John Pitchko Data Ser

too many headers from CGI script (max 200)

2002-07-04 Thread John Pitchko
program /appl/webdocs/cgi-bin/template.cgi did not produce a valid header (too many headers from CGI script (max 200)) Any suggestions? John Pitchko Data Services Saskatchewan Government Insurance

Re: Fw: 2 Questions

2002-07-04 Thread John Brooking
i way, or a variety of other ways which you can read about in "perldoc CGI", which I encourage you to do. - John P.S. I'm about to unsubscribe to go on vacation. I will probably be back in a few weeks. = "Now it's over, I'm dead, and I haven't done anyth

Re: HTML contents into Perl CGI

2002-07-02 Thread John Brooking
into line breaks. (Probably appears identically in most browsers, but seems more "correct".) Also removes any doubt about \n handling, although it's possible that that doubt is justified only in my mind. Sorry about the word wraps, those were inserted by the Yahoo! email

Re: Perl CGI FORM statement

2002-07-02 Thread John Brooking
_condition ) { print " "; } # repeat for whatever your logic is print ''; print p( "Then use CGI some more, if you want..." ); Does that help? - John --- Maureen E Fischer <[EMAIL PROTECTED]> wrote: > Hello, > My question is about CGI's

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread John Brooking
d traits, properly applied. I apologize that my message was taken negatively. I meant it positively. I support the spirit of your effort. - John --- [EMAIL PROTECTED] wrote: > That actually has nothing to do with it. It has > everything to do with the strong desire to improve > circumsta

Re: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread John Brooking
After all, Hubris is one of St. Larry's Three Cardinal Virtues! So this seems to me to be a properly Perl-ish attitude. - John --- [EMAIL PROTECTED] wrote: > ... > minded here, I'm just the type of person who if I'm > not perfectly happy with the way something works >

RE: CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-27 Thread John Brooking
See?! Your version just expanded by 50% !! ;-) --- Scot Robnett <[EMAIL PROTECTED]> wrote: > Picky, picky. :) > You're right, my bad. > > use CGI; > my $q = new CGI; > my %params = $q->Vars; = "Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still alive, and the

Using CGI.pm [WAS Re: Displaying Problems]

2002-06-25 Thread John Brooking
I tend to always use CGI.pm to get the parameters, but I may or may not use it to output HTML. If it's simple HTML, I will, because it's easier and safer, but if it's complicated, like a lot of JavaScript in the header, or for most form input controls, I just use print statements, either normal on

Re: passing variables in POST

2002-06-25 Thread John Brooking
orce who is calling you. But I don't know that for sure. Ovid's point a few messages ago that you shouldn't trust anything outside your own box also seems relevant. Anyone with more security experience want to take a crack at this? (Where's that guy who flamed me last year when

Re: passing variables in POST

2002-06-25 Thread John Brooking
t won't work anymore anyway. (But then, why does it even matter if it's hidden or not?) So in the end, it's your decision. But it's important that you understand it all so that you can make an informed decision. By the way, I'm still not a security expert, so don

Re: My mind is numb!

2002-06-24 Thread John Brooking
ally understand them), not to mention very humorous in places. Of course, it helps that one of the authors is Larry Wall himself. I've also heard good things about _Learning Perl_ ("The Llama Book"), but have never read it myself. Also, the O'Reilly _Perl Pocket Reference_ is ab

Re: passing variables in POST

2002-06-24 Thread John Brooking
this, the referer can be spoofed too. So while you may be protecting yourself against the average user who doesn't who how anything works, knowledgeable hackers can easily get around it. Just FYI. - John --- Niko Gunadi <[EMAIL PROTECTED]> wrote: > Hii, > > I want to create a

RE: What editor for Perl do you recommend?

2002-06-24 Thread John Brooking
d unindent groups of lines. Granted, emacs and others can do the same things, so you see that you have a lot of choices. -John > >From: "Octavian Rasnita" <[EMAIL PROTECTED]> > >Subject: What editor for Perl do you recommend? > >Date: Mon, 24 Jun 2002 08:06:40

  1   2   3   >