RE: What could go wrong with closing an FH ?

2002-09-19 Thread rwarrenr
On the topic of FHs, I have a CGI script that opens a file handle and then in the HTML code I print out the results - open(FH, grep blahblah /usr/local/apache/log |); print html\n; etc.. while FH{ print $_ br; } etc.. print /html; Now my problem is how do I time out the grep command??

Re: Creating thumbnails (Newbie Question)...

2002-09-19 Thread fliptop
On Wed, 18 Sep 2002 at 20:28, Octavian Rasnita opined: OR:But is it a way, (maybe module?) that allow creating a thumbnail on the fly? OR: OR:For example: OR:I want to put more big images in a folder and if someone visits my page, OR:they will see a table with thumbnails created on the fly and

Re: sort

2002-09-19 Thread fliptop
On Wed, 18 Sep 2002 at 20:43, Daniel Hurtado Brenner opined: DHB:For example: DHB:If i have a flat data base myfile.txt with this info: DHB: DHB:1|name|address| DHB:2|name two|address two| DHB:3|name three|address three| DHB:4|name four|address four| DHB:. (etc, etc) DHB: DHB:If i execute:

Re: GPL - how does it work

2002-09-19 Thread fliptop
On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing a CGI application/script in Perl which I am going to sell AA:This application uses a few Perl modules (CGI.pm, Session.pm) which is AA:covered by the GPL. AA:How am I going to handle that, when I do not want to release my

Re: GPL - how does it work

2002-09-19 Thread Mat Harris
i believe perl itself is released under the GPL? and we have a firewall script that we compile to hide the source and then sell. we have never had any comeback from it. On Thu, Sep 19, 2002 at 07:23:46 -0400, fliptop wrote: On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing

Weekly list FAQ posting

2002-09-19 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email

Re: GPL - how does it work

2002-09-19 Thread zentara
On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing a CGI application/script in Perl which I am going to sell AA:This application uses a few Perl modules (CGI.pm, Session.pm) which is AA:covered by the GPL. AA:How am I going to handle that, when I do not want to release my

Net Daemon Next Result Issue

2002-09-19 Thread Darryl Schnell
I am working on a User Search Page that uses Net Daemon to connect to another system and gather username information. Everything appears to be working fine except the user search next results option (Code included below). Basically the program goes out connects to a daemon on another system to

Re: sort

2002-09-19 Thread William McKee
On 18 Sep 2002 at 20:43, Daniel Hurtado Brenner wrote: OK. BUT HOW I CAN DO FOR THIS RESULTS BE: 4|name four|address four| 3|name three|address three| 2|name two|address two| 1|name|address| To use Fliptop's suggestion, you'll probably need to read your file into an array before doing the

Parsing an HTML document

2002-09-19 Thread Octavian Rasnita
Hi all, I want to parse an HTML document to get out the simple text from it. I've tried with HTML::Parser, but with no success. The POD documentation is not very good and I haven't seen any assignment as $text = ... to see how to get the text. I have the text of an HTML file in a $content

Re: Parsing an HTML document

2002-09-19 Thread MMKHAJAH
I think this should work: $content =~ s/\[^\]+?\//g; - Original Message - From: Octavian Rasnita [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 12:12 PM Subject: Parsing an HTML document Hi all, I want to parse an HTML document to get out the simple text

How can I call a Perl function from HTML?

2002-09-19 Thread Mike Craig
Hi all, I have a perl function that I would like to call from inside a JavaScript function in a Web page. I want to pass it a string param and return an integer. The function is shown here is fabricated just to reduce the example to the bare minimum. #!/usr/bin/perl sub SomeFunction {

Re: How can I call a Perl function from HTML?

2002-09-19 Thread MMKHAJAH
I believe this should aid you a little: http://search.cpan.org/author/DROLSKY/HTML-Mason-1.13/lib/HTML/Mason.pm for putting Perl into HTML directly ( like PHP, ASP ) - Original Message - From: Mike Craig [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 10:04 PM

Re: Parsing an HTML document

2002-09-19 Thread WilliamGunther
In a message dated 9/19/2002 11:54:45 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: I want to parse an HTML document to get out the simple text from it. I've tried with HTML::Parser, but with no success. The POD documentation is not very good and I haven't seen any assignment as

Text output formating

2002-09-19 Thread Roberto Ruiz
Hi there, God bless you. Is there a function inside the CGI module or someplace else that takes care of formating text for output. Let's say we are reading a text field from a database that may have strange simbols and/or html tags that you do not want to be interpreted as html by the browser

Editing a file....

2002-09-19 Thread Greg Schiedler
I found this code snipit listed below that will edit a users file in place. It works great via the command line. I'm trying to pass the arguments to the script named edit.pl and it will not work if called via a system call ie: system (perl -pi -e

Re: Text output formating

2002-09-19 Thread William McKee
Roberto, I think you want the escapeHTML function from CGI. See the docs for details. William -- Lead Developer Knowmad Services Inc. || Internet Applications Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: