Re: perl-cgi

2004-10-23 Thread mk76
It was a problem with the ScriptAlias directive in the httpd.conf file. Thanks for your help Quoting Gunnar Hjalmarsson <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > I am writing a perl cgi script. > > Are you? I was almost sure that you had just copied some code from a > > very old docu

RE: uninstall perlmodule

2004-10-23 Thread adisegna
http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/faq/ActivePerl-faq2.html#uninstall -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Sat 10/23/2004 8:44 PM To: Adam Saeed; [EMAIL PROTECTED] Cc: Subject: Re: unin

Re: uninstall perlmodule

2004-10-23 Thread Bob Showalter
Bob Showalter wrote: Adam Saeed wrote: > plz tell me how to uninstall a perl module... "make uninstall" sadly doesn't work. There's a program to do it in the documentation for ExtUtils::Packlist. I've never used it, but it looks good... http://www.perlpod.com/5.8.4/lib/ExtUtils/Packlist.html I forg

Re: uninstall perlmodule

2004-10-23 Thread Bob Showalter
Adam Saeed wrote: plz tell me how to uninstall a perl module... "make uninstall" sadly doesn't work. There's a program to do it in the documentation for ExtUtils::Packlist. I've never used it, but it looks good... http://www.perlpod.com/5.8.4/lib/ExtUtils/Packlist.html -- To unsubscribe, e-mail

unsubcribe

2004-10-23 Thread Rizwan A.S
unsubcribe ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: uninstall perlmodule

2004-10-23 Thread Chris Devers
On Sat, 23 Oct 2004, Adam Saeed wrote: > please tell me how to uninstall a perl module... Delete the files that comprise it. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl-cgi

2004-10-23 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: #! /usr/bin/perl That line is almost okay. It's ususally written without the space, though (I don't know if that makes a difference.) #! /usr/bin/perl Obviously I meant: #!/usr/bin/perl -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscrib

Re: perl-cgi

2004-10-23 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I am writing a perl cgi script. Are you? I was almost sure that you had just copied some code from a very old document on the web. all I get is the script itself in the browser. That problem has nothing to do with the script in itself, but it is a web server issue. In t

Re: What search string do I use on google or perldoc so that I know how to display a specified range of lines from a file (like sed -n 24, 48p filename)?

2004-10-23 Thread Bob Showalter
Ken Wolcott wrote: A fishing pole question rather than a fish question :-) What search string do I use on google or perldoc so that I know how to display a specified range of lines from a file (like sed -n 24, 48p filename)? Zeus gave you the solution, but the background is explained in perldoc pe

Re: perl-cgi

2004-10-23 Thread Chris Devers
THis is more a matter for the beginners-cgi list, but oh well. On Sat, 23 Oct 2004 [EMAIL PROTECTED] wrote: > In the options for the directory on my server I have included ExecCGI > and also the script has read/execute access for anybody Let's keeep this very simple for now. Try something like

RE: How to store the out put in StringBuffer

2004-10-23 Thread Zeus Odin
The following should do what you want. @print is an array of array references. You have to read the documentation, learn what it is, and how to use it. Now would be a good time to learn the Perl debugger so you can step through my code. Your assignment is to print @print in your DoChat() routine. (

perl-cgi

2004-10-23 Thread mk76
Hi all ! I am writing a perl cgi script. I have the form also to submit the data to the script. Whenever I call the script from the form instead of the result of the script all I get is the script itself in the browser. It is really a very basic structure which i have. In the options for the direct

Video::Capture::V4l problems

2004-10-23 Thread Christopher Stanton
I am trying to write a basic frame grabber but am having problems with Video::Capture::V4l. My camera is attached and loaded: /var/log/messages --- Oct 23 10:07:00 lsn kernel: drivers/usb/media/ov511.c: Sensor is an OV7610 Oct 23 10:07:01 lsn kernel: drivers/usb/media/ov51

RE: date stamps, was Re: beginners@perl.org

2004-10-23 Thread Chris Devers
On Sat, 23 Oct 2004, Maxipoint Rep Office wrote: > <>>> > Please use a useful subject line. > > RE: sorry my error.. No big deal, just try to be mindful about it :-) > > On Sat, 23 Oct 2004, Maxipoint Rep Office wrote: > > > > > how create 'date stamp' on much simpler way.. > > > > Simple

RE: date stamps, was Re: beginners@perl.org

2004-10-23 Thread Maxipoint Rep Office
<>>> Please use a useful subject line. RE: sorry my error.. On Sat, 23 Oct 2004, Maxipoint Rep Office wrote: > how create 'date stamp' on much simpler way.. Simpler than what? $ perl -le '$now = localtime; print $now' Sat Oct 23 15:14:42 2004 $ What would be simpler than that?

date stamps, was Re: beginners@perl.org

2004-10-23 Thread Chris Devers
Please use a useful subject line. On Sat, 23 Oct 2004, Maxipoint Rep Office wrote: > how create 'date stamp' on much simpler way.. Simpler than what? $ perl -le '$now = localtime; print $now' Sat Oct 23 15:14:42 2004 $ What would be simpler than that? > I need 'date stamp' readed

beginners@perl.org

2004-10-23 Thread Maxipoint Rep Office
how create 'date stamp' on much simpler way.. I need 'date stamp' readed and I'll after that with html::temp print out on the html.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

foreach..

2004-10-23 Thread Maxipoint Rep Office
this is actual part of my code.. all work but it seems that something is wrong in foreach part.. in reality script calculate $dodatne_opcije only! $vrsta_paketa is not added in calculation.. my $vrsta_paketa = { '20MB' => 205, '50MB' => 270, '100MB' => 350, '200MB'

Video::Capture::V4l problems

2004-10-23 Thread Christopher Stanton
I am trying to write a basic frame grabber but am having problems with Video::Capture::V4l. My camera is attached and loaded: /var/log/messages --- Oct 23 10:07:00 lsn kernel: drivers/usb/media/ov511.c: Sensor is an OV7610 Oct 23 10:07:01 lsn kernel: drivers/usb/media/ov51

RE: how the print the first 7 letter of file name

2004-10-23 Thread Chris Devers
Please, again, *all* responses to the list, *not* directly to me. On Sat, 23 Oct 2004 [EMAIL PROTECTED] wrote: > Hi chris > > Thanks for response. Can you look into my new problem > > "How to store the output in StringBuffer" > > I have variable 1,2,3,4,5, > > It is printing also. I want to

Re: Limits on globbing?

2004-10-23 Thread Chris Devers
On Fri, 22 Oct 2004, Bryan Harris wrote: > Please forgive me! No sweat :-) > I had assumed that "revision 5.0 version 4" meant perl 5.0, not perl > 5.4. No, Perl versioning was weird for a while there. Perl 5.004x was the notation for what later got shortened to just 5.4.x. But even Perl 5

RE: how the print the first 7 letter of file name

2004-10-23 Thread Chris Devers
On Sat, 23 Oct 2004 [EMAIL PROTECTED] wrote: > I found the logic > > use File::Basename; > $FILENAME="/Developer/view_local/local_nt/FDAFDSAFDSASDFA/ASDFDAFSASDF/NewProcess_date_22-oct-2004.log"; > my $name = basename($FILENAME,'.log'); > print substr($name, 0, 7); FINALLY you have some code! :-)

RE: How to store the out put in StringBuffer

2004-10-23 Thread Zeus Odin
In my prior emails, I have been mentioning @tail. @tail is an array and can contain a list of values. An array is the one variable that can do what you require. Please view the documentation and understand arrays and lists. A hash will work also but I believe you want an array. perldoc perlintro p

RE: How to store the out put in StringBuffer

2004-10-23 Thread Zeus Odin
If you want to print to a handle, you must print CHAT "text"; If all of your text is in @tail, you can print CHAT join '', @tail; If you still want to print $var for some reason my $var = join '', @tail; print CHAT $var; Does that make sense? Please read: perldoc -f join Perldoc -f prin

RE: How to store the out put in StringBuffer

2004-10-23 Thread Sreedhar . Kalkunte-Venkatachala
Hi By doing like that system will create one connection every time. So it will be slow. So, I was thinking we can store all the information on shot easy to print regards Sreedhar -Original Message- From: Zeus Odin [mailto:[EMAIL PROTECTED] Sent: 23 October 2004 13:58 To: Kalkunte-Venka

Re: How to store the out put in StringBuffer

2004-10-23 Thread Zeus Odin
What I think you are saying is that you are searching a log file for an error. If you find an error, you want to print out the last 10 lines (that would be the error line and The previous 9 lines) and the next 10 lines (total of 20 lines). Is this correct? You have to state the entire problem more

RE: How to store the out put in StringBuffer

2004-10-23 Thread Zeus Odin
Instead of doing print "text in chat" Do print CHAT "text in chat" Where CHAT is a file handle to your chat line. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, October 23, 2004 8:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: How t

RE: How to store the out put in StringBuffer

2004-10-23 Thread Sreedhar . Kalkunte-Venkatachala
Hi thank you very much for the mail. but just tme how store print $_ foreach @tail; this in a variable. So when I do DoChat($variable). it will print the complete information in one shot. Regards Sreedhar -Original Message- From: Zeus Odin [mailto:[EMAIL PROTECTED] Sent: 23 October 20

RE: How to store the out put in StringBuffer

2004-10-23 Thread Sreedhar . Kalkunte-Venkatachala
hi This program will be keep running in background like tail -f . that moment y find error it will capture and last 10 lines and next 10 lines and prints into the chat board. so while printing I want it as single variable. so, it will fast(one connection) regards Sreedhar -Original Messag

RE: How to store the out put in StringBuffer

2004-10-23 Thread Zeus Odin
This is a *quick* emulation of tail. Emphasis on quick as in quickly done. If you want to return only lines that match a regular expression, add the line: next unless /$regexp/; Immediately after while (<>) { It seems like you have DoChat() under control. Good luck, ZO --

Re: How to store the out put in StringBuffer

2004-10-23 Thread Bee
Simplified your code, that is : print foreach @buffer; my $i; while() { $i++; last if ($i > 10); print; } I can't see anything make sense to make the thing @buffer be in pair with . The first loop and the second don't related to each other at all... What do you expect ? Could you show s

RE: How to store the out put in StringBuffer

2004-10-23 Thread Sreedhar . Kalkunte-Venkatachala
Hi basic my query is how to print all the output in $msg variable it should print values of $previousLine, $var as buffered variable Regards Sreedhar -Original Message- From: Kalkunte-Venkatachala, Sreedhar Sent: 23 October 2004 12:32 To: 'Zeus Odin' Subject: RE: How to store the ou

RE: how the print the first 7 letter of file name

2004-10-23 Thread Sreedhar . Kalkunte-Venkatachala
Hi Thanks for the solution. Problem resolved. regards Sreedhar -Original Message- From: Zeus Odin [mailto:[EMAIL PROTECTED] Sent: 23 October 2004 13:20 To: Kalkunte-Venkatachala, Sreedhar; [EMAIL PROTECTED] Subject: RE: how the print the first 7 letter of file name Please reply to the

RE: how the print the first 7 letter of file name

2004-10-23 Thread Zeus Odin
Please reply to the group so that others may answer also. :-) Your solution will return only the first 7 characters of the filename. My solution solution returns all characters after the last slash (first you used \ now you are using /) and before the first _ (underscore). Just keep this in mind.

Re: File::Finder syntax

2004-10-23 Thread Randal L. Schwartz
> "Jason" == Jason Wozniak <[EMAIL PROTECTED]> writes: Jason> I can't seem to limit the search to a specified directory or Jason> directories with the maxdepth parameter. Assuming it has that Jason> parameter, as I don't see it in the documentation. Oddly enough, I had to look, and no, there

Re: how the print the first 7 letter of file name

2004-10-23 Thread Zeus Odin
I'm assuming you want the word after the last \ but before the first _. Right? If so: #!/usr/bin/perl use warnings; use strict; my $FILENAME='C:\Developer\view_local\local_nt\FDAFDSAFDSASDFA\ASDFDAFSASDF\New Process_date_22-oct-2004.log'; my $file = (split /_/, (split /\\/, $FILENAME)[-1])[0]; pr

Re: How to store the out put in StringBuffer

2004-10-23 Thread Zeus Odin
First, always use warnings; use strict; at the top of each program you write. Second, what are you trying to do exactly? Third, some observations: 1) You use $j and $pos exactly one time. Why are they present? 2) You seem to be looping to 10 using $i. Why not instead use for my $i(1 .. 10) {

Re: Parsing multiline data

2004-10-23 Thread Zeus Odin
Make sure each section is separated by a new line, including the last section. If there is no new line at the end of the file, the last record will be omitted. The following puts each field in %data with the field name being the key and the field value as the key's value, and it splits each line o

How to store the out put in StringBuffer

2004-10-23 Thread Sreedhar . Kalkunte-Venkatachala
Hi Say I have program like this If I Say print It prints each line. How to store the both output in one string buffer ($previousLine and $var) For example I have written this program foreach $previousLine (@buffer) {

Re: What search string do I use on google or perldoc so that I know how to display a specified range of lines from a file (like sed -n 24, 48p filename)?

2004-10-23 Thread Zeus Odin
The following prints lines 24-48 of filename: prompt> perl -ne "print if 24..48" filename "Ken Wolcott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > A fishing pole question rather than a fish question :-) > > What search string do I use on google or perldoc so that I know how to

RE: how the print the first 7 letter of file name

2004-10-23 Thread Sreedhar . Kalkunte-Venkatachala
Hi I found the logic use File::Basename; $FILENAME="/Developer/view_local/local_nt/FDAFDSAFDSASDFA/ASDFDAFSASDF/NewProcess_date_22-oct-2004.log"; my $name = basename($FILENAME,'.log'); print substr($name, 0, 7); Thanks to Bob. Regards Sreedhar -Original Message- From: Bob Showalter [mai

Re: Limits on globbing?

2004-10-23 Thread Bryan Harris
> If you have a question and get no response, PLEASE wait more than 90 > minutes before sending your question in again. Give it at least a day, > if not a couple of days. We're all volunteers here and expectations of > immediate responses are not reasonable. Please forgive me! I've gotten more