CGI Question

2003-11-07 Thread Jack
Hi, I'm hoping someone can help me with a CGI problem I've been having: I have two frames on my site. The left frame contains a CGI script (and it's initially called with NO parameters) and the right frame contains an HTML file. There is a button on the right frame that triggers a javascript f

Re: Range of dates help needed

2003-11-07 Thread John W. Krahn
Kevin Old wrote: > > Hello everyone, Hello, > I have a subroutine below that uses Date::Manip to build a hash with > keys of the previous Wednesday to the next Tuesday range from the > beginning of the year until today. For instance: > > %pairs = ( > #didn't want to list the whole year, but yo

Re: Why is parsing your own form data a bad idea?

2003-11-07 Thread drieux
On Friday, Nov 7, 2003, at 11:42 US/Pacific, R. Joseph Newton wrote: [..] Perl has many APIs, for many purposes. I personally don't like using CGI.pm for generating Web conent. This I do by hand, checking the generated html source and its rendered appearance throughout the process, because I thi

Re: Why is parsing your own form data a bad idea?

2003-11-07 Thread Paul Johnson
On Thu, Nov 06, 2003 at 06:46:18PM -0800, R. Joseph Newton wrote: > Excellent idea. It's really the core of OOPs power. How is CGI for > subclassing? Take a look at CGI::Pretty for an example. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Why is parsing your own form data a bad idea?

2003-11-07 Thread R. Joseph Newton
drieux wrote: > On Friday, Nov 7, 2003, at 10:11 US/Pacific, Wiggins d Anconia wrote: > [..] > > Thank you for putting this so eloquently, to back it up with the most > > simple example of all though remember images, that a majority of > > web > > sites use these days, are distributed over tha

Re: Why is parsing your own form data a bad idea?

2003-11-07 Thread R. Joseph Newton
Wiggins d Anconia wrote: > > > > On Thursday, Nov 6, 2003, at 18:55 US/Pacific, R. Joseph Newton wrote: > > > "NYIMI Jose (BMB)" wrote: > > > > > >> One reason to not use CGI.pm: > > >> > > >> An important concern today in the integration architecture > > >> is to provide a means to support differ

Re: Why is parsing your own form data a bad idea?

2003-11-07 Thread drieux
On Friday, Nov 7, 2003, at 10:11 US/Pacific, Wiggins d Anconia wrote: [..] Thank you for putting this so eloquently, to back it up with the most simple example of all though remember images, that a majority of web sites use these days, are distributed over that very protocol right under our no

Re: Why is parsing your own form data a bad idea?

2003-11-07 Thread Wiggins d Anconia
> > On Thursday, Nov 6, 2003, at 18:55 US/Pacific, R. Joseph Newton wrote: > > "NYIMI Jose (BMB)" wrote: > > > >> One reason to not use CGI.pm: > >> > >> An important concern today in the integration architecture > >> is to provide a means to support different type of clients. > >> Unfortunately

Re: fork() and Jabber connection handles

2003-11-07 Thread drieux
On Thursday, Nov 6, 2003, at 23:06 US/Pacific, Ramprasad A Padmanabhan wrote: [..] Now If my script uses fork() , I want to ensure that the parent process will continue to receive all updates from the jabber server and not the child process. If I disconnect in the child process will the Jabber se

Re: Why is parsing your own form data a bad idea?

2003-11-07 Thread drieux
On Thursday, Nov 6, 2003, at 18:55 US/Pacific, R. Joseph Newton wrote: "NYIMI Jose (BMB)" wrote: One reason to not use CGI.pm: An important concern today in the integration architecture is to provide a means to support different type of clients. Unfortunately CGI.pm will not fulfill the increasin

Re: Using Perl with PC Anywhere?

2003-11-07 Thread drieux
On Thursday, Nov 6, 2003, at 17:57 US/Pacific, Trent Rigsbee wrote: Hi! Newbie question here but is it possible to use PC Anywhere with Perl? If so, how? What kinds of things can you do? This question came up in a conversation with some friends and so I thought I'd ask the group. I'm sure I'm a t

Re: Why can't I create a binary file ?

2003-11-07 Thread Rob Dixon
Bee wrote: > > open FH, ">1.txt"; > binmode FH; > binmode STDOUT; > print FH "123m,zxnc,mzxnc,mzncm,zxc"; > close FH; > > Why the output still a text file ? Other posters are right. What is your test, that you find your output to be a text file? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTE

Re: RFC on first perl script

2003-11-07 Thread drowl
> <[EMAIL PROTECTED]> wrote: >> >> well im trying at lerning this perl stuff.. reading from the >> "learning >> perl" oreilly book and a few other places, >> but also using perl a long time before i should ie making the below >> script, so that i dont get in to any very bad habbits at such an ear

Re: RFC on first perl script

2003-11-07 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > well im trying at lerning this perl stuff.. reading from the "learning > perl" oreilly book and a few other places, > but also using perl a long time before i should ie making the below script, > so that i dont get in to any very bad habbits at such an early stage. >

Re: RFC on first perl script

2003-11-07 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > well im trying at lerning this perl stuff.. reading from the "learning > perl" oreilly book and a few other places, > but also using perl a long time before i should ie making the below script, > so that i dont get in to any very bad habbits at such an early stage. >

Re: Surpressing concatenation with null warnings

2003-11-07 Thread Rob Dixon
R. Joseph Newton wrote: > > Richard Heintze wrote: > > > > I think what you want is this: > > > > > > no warnings qw(uninitialized); > > > > > > > Would I put this immediately after "use warnings;"? > > I would recommend against it, unless you are intending to > keep all your programs very small.

Re: Splitting OR Regex

2003-11-07 Thread Rob Dixon
R. Joseph Newton wrote: > > Rob Dixon wrote: > > > my @fields = $string =~ m/\w+=(?:"[^"]+"|\S+)/g; > > Nice!! Thanks! Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Simple CGI question

2003-11-07 Thread R. Joseph Newton
Eric Walker wrote: > Newbie here but hope this helps. > > You have a page linked to the frame on the left right? All you need to > do is have your CGI script write the new page. You use the info from > the frame on the right and pass the values to your cgi script. Then let > your CGI script writ

fork() and Jabber connection handles

2003-11-07 Thread Ramprasad A Padmanabhan
My project uses perl to talk with a jabber server. I am sorry to post a question which seems too particular to jabber and not generic perl. I am using Net::Jabber module to log on to a jabber server in a perl script. So I get a jabber connection handle which I call $jabber Now If my script us