Fork ??

2001-11-30 Thread Randy5235
Pretty new to Perl still so forgive me a bit please. I have searched the web (google is my friend) and searched the groups and found multiple things concerning fork. here is the problem I can't find a page that has the basic syntax for using it. I am writing a small bbs system. I need to be able t

Re: Using CGI locally

2001-11-30 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Clive Lansink) wrote: > I know that when I call up a local HTML file from within Internet Explorer it > works and renders the HTML correctly. Now is there a way to directly call > Perl from within IE to create active HTML which is then render

Re: Using CGI locally

2001-11-30 Thread Mark Murphy
Check out MicroWeb. http://www.indigostar.com/ If you are only using this for personal use you can play with it. It's actually pretty cool to put on a CD. but then you have to pay for it. Clive Lansink wrote: > > I know that when I call up a local HTML file from within Internet Explorer it work

Re: open FILE, "+ (was :

2001-11-30 Thread Scott R. Godin
In article <002201c1796e$55b9fbe0$5947a9cb@nothing>, [EMAIL PROTECTED] (Leon) wrote: > - Original Message - > From: "Johnson, Shaunn" <[EMAIL PROTECTED]> > > open (FILE, "+ > I was just wondering, what is that + sign for. perldoc -f open third paragraph. print pack "H*", "4a75737420

Hash Comparision...

2001-11-30 Thread Durga_Prasad
Placed At : BOM Durga Prasad@SATYAM 11/30/2001 05:01 PM Hi all, Iam trying to compare two hash of arrays. The idea is to compare the values and subtract. I am trying to use the following pseudocode. Is this approach correct? #Pseudocode $datai

a beginners challenge

2001-11-30 Thread Zysman, Roiy
> Hi All, > Why not make a little challenge .. > Lets see who can write the most lean ,mean , elegant , powerful, poetic > (but most important) _Shortest_, script that cleans from a directory > files that are at least 3 days old. > Good luck all, > You're welcome to pick who you think is the wi

CPAN usage

2001-11-30 Thread Martin Pfeffer
hi to all I has 2 questions 1. I has no internet connection at home and so i want to make a local copy of cpan Modules on my Fileserver. Where or why can i download this? 2. The downloaded mirror should be used with the cpan module where must i define the path to local mirror or how can i work

Re: Using CGI locally

2001-11-30 Thread Martin Pfeffer
but you can local install a webserver on localhost and do this On Thu, 29 Nov 2001 22:00:48 -0500 (EST), you wrote: >On Fri, 30 Nov 2001, Clive Lansink wrote: > >> I know that when I call up a local HTML file from within Internet >> Explorer it works and renders the HTML correctly. Now is there

Re: CPAN usage

2001-11-30 Thread Maxim Berlin
Hello Martin, Friday, November 30, 2001, Martin Pfeffer <[EMAIL PROTECTED]> wrote: MP> 1. I has no internet connection at home and so i want to make a local MP> copy of cpan Modules on my Fileserver. Where or why can i download MP> this? take a look at http://www.cpan.org/misc/cpan-faq.html#How

Reading files into arrays

2001-11-30 Thread Sandhya Sankaran
I have just started programming in Perl and i need a solution to the following problem : I have a file like this : >gi|56746574| fjhgfjhgfhgghdgfdhjsfghdfjdksjdijkjdskjdkjkjlopodlskdldkksjdkjf fjhgfjhgfhgghdgfdhjsfghdfjdksjdijkjdskjdkjkjlopodlskdldkksjdkjffjhgfjhgfhggh dgfdhjsfghdfjdksjdijkjdskj

Re: Fork ??

2001-11-30 Thread Maxim Berlin
Hello Randy5235, Friday, November 30, 2001, Randy5235 <[EMAIL PROTECTED]> wrote: R> Pretty new to Perl still so forgive me a bit please. I have searched the web R> (google is my friend) and searched the groups and found multiple things R> concerning fork. here is the problem I can't find a page

perl and html tables?

2001-11-30 Thread Craig Sharp
I need to create a script that will use DBI to retreive information from Informix and then present the information in a table in html. The DBI part I have with no problem. I need to use perl to create a table in html that will expand or reduce as needed depending on how many rows are retreiv

Re: a beginners challenge

2001-11-30 Thread Maxim Berlin
Hello Roiy, Friday, November 30, 2001, Zysman, Roiy <[EMAIL PROTECTED]> wrote: >> Hi All, >> Why not make a little challenge .. >> Lets see who can write the most lean ,mean , elegant , powerful, poetic >> (but most important) _Shortest_, script that cleans from a directory >> files that are at

Re: perl and html tables?

2001-11-30 Thread Etienne Marcotte
# connect to DB, get $dbh # create table header print< Column1 name Column2 name END # then you fetch each row my $sth = prepare("select column1, column2 from table where condition = ?"); $sth->execute($condition); while my @row = ($sth->fetchrow_array) { print< $row[0] $row[1] END } #then p

RE: I thought I knew....

2001-11-30 Thread Bob Showalter
> -Original Message- > From: A. Rivera [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 6:20 PM > To: [EMAIL PROTECTED] > Subject: I thought I knew > > > OK, I have this.. > > $longdate="Fri November 29, 2001"; > And I want just the November 29, 2001 part. > > I tried

RE: Using CGI locally

2001-11-30 Thread Bob Showalter
> -Original Message- > From: Clive Lansink [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 7:39 PM > To: [EMAIL PROTECTED] > Subject: Using CGI locally > > > I know that when I call up a local HTML file from within > Internet Explorer it works and renders the HTML correct

Re: perl and html tables?

2001-11-30 Thread Maxim Berlin
Hello Craig, Friday, November 30, 2001, Craig Sharp <[EMAIL PROTECTED]> wrote: CS> I need to create a script that will use DBI to retreive CS> information from Informix and then present the information in a CS> table in html. CS> The DBI part I have with no problem. CS> I need

Re: perl and html tables?

2001-11-30 Thread Hasanuddin Tamir
On Fri, 30 Nov 2001, Craig Sharp <[EMAIL PROTECTED]> wrote, > I need to create a script that will use DBI to retreive information from Informix >and then present the information in a table in html. > > The DBI part I have with no problem. > > I need to use perl to create a table in html that

Re: Using CGI locally

2001-11-30 Thread Etienne Marcotte
I think the easyest is Apache server and perl. Since you are using IE I bet you'r ein windows. www.activestate.com for Perl www.apache.org for apache (there is a windows version) Then you run http://localhost/cgi-bin/script.pl and voilĂ . That how I do all my scripts on my laptop (no internet c

Re: Reading files into arrays

2001-11-30 Thread N_Dinesh
Hi, Try out this code, #!/usr/bin/perl @lines; $array_counter=0; open(fd, "file.txt"); $line=; while($line) { if($line =~ /\>gi\|[\d+]/) { $line=; @lines[$array_counter++]=$line; } $line=; } print @lines; close(fd); Assume file.txt is the file out here. And @lines wil

Re: a beginners challenge

2001-11-30 Thread Shawn
> @result= `find . -newerct \'3 days ago\' -maxdepth 1 -exec rm \{\} \\;`; I guess I have to ask, what is this command? -newerct? I get the following when running this line: find: -newerct: unknown option Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re[2]: a beginners challenge

2001-11-30 Thread Maxim Berlin
Hello Shawn, Friday, November 30, 2001, Shawn <[EMAIL PROTECTED]> wrote: >> @result= `find . -newerct \'3 days ago\' -maxdepth 1 -exec rm \{\} \\;`; S> I guess I have to ask, what is this command? -newerct? I get the following S> when running this line: S> find: -newerct: unknown option

Re: Reading files into arrays

2001-11-30 Thread Shawn
> I have just started programming in Perl and i need a solution to the > following problem : > > I have a file like this : > >gi|56746574| > fjhgfjhgfhgghdgfdhjsfghdfjdksjdijkjdskjdkjkjlopodlskdldkksjdkjf > fjhgfjhgfhgghdgfdhjsfghdfjdksjdijkjdskjdkjkjlopodlskdldkksjdkjffjhgfjhgfhggh > dgfdhjsfghdf

Re: Fork ??

2001-11-30 Thread Brett W. McCoy
On Fri, 30 Nov 2001, Randy5235 wrote: > Pretty new to Perl still so forgive me a bit please. I have searched the web > (google is my friend) and searched the groups and found multiple things > concerning fork. here is the problem I can't find a page that has the basic > syntax for using it. I am

Re: CPAN usage

2001-11-30 Thread Elaine -HFB- Ashton
Maxim Berlin [[EMAIL PROTECTED]] quoth: *> *>MP> 2. The downloaded mirror should be used with the cpan module where *>MP> must i define the path to local mirror or how can i work with cpan and *>MP> local mirror *> *>for cpan module, you can define custom site(s), like *> 'urllist' => [q[ftp://yo

Mail::Mailer Bcc problem

2001-11-30 Thread Kanchana Weerasinghe
I have a problem using Mail::Mailer with a Bcc in the headerthe recipient (To) can see the Bcc field in the email header. Here's my code: $headers{'To'} = $To; $headers{'Bcc'} = $Bcc; $headers{'From'} = $email_from; $headers{'Subject'} = $email_subject; $mailer = new Mail::Mailer 'smtp', Se

Mail::Mailer Bcc problem

2001-11-30 Thread Kanchana Weerasinghe
I have a problem using Mail::Mailer with a Bcc in the headerthe recipient (To) can see the Bcc field in the email header. Here's my code: $headers{'To'} = $To; $headers{'Bcc'} = $Bcc; $headers{'From'} = $email_from; $headers{'Subject'} = $email_subject; $mailer = new Mail::Mailer 'smtp', Se

Re: Using CGI locally

2001-11-30 Thread Clive Lansink
Thank you to all of you who responded to my query. You all said that CGI scripts can only be hooked into a web server. So I've gone ahead and downloaded and installed Apache and I'm well on the way now with my CGI scripts. Cheers. CJL -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Problems with DBD::mysql

2001-11-30 Thread joni
Hello, I hope someone can give me a hand with this... I'm trying to use DBI to connect to our mysql database, but according to the error messages DBI module wasn't installed. So I used CPAN to install it and ended up recompiling perl etc. To cut long story short, even after installing DBI i

Re: file test

2001-11-30 Thread Luke Bakken
Actually `dir /B` won't produce anything since dir isn't a real coomand - it's a shell builtin. This may help: c:\>perl -e"for (<*>) { print $_, qq(\n) if(! -x $_ && -B $_ ) }" Luke On Thu, 29 Nov 2001, Carl Rogers wrote: > At 08:09 PM 11/29/2001 +, [EMAIL PROTECTED] wrote: > >How can I d

Re: Timimg Out A loop

2001-11-30 Thread Ken Hammer
Karthik, Thank you for the response. Could you please clarify a few things for me? Here is your response to my initial post: our flag; sub alarm_handler { set flag; } set alarm to expire after 10 secs; Loop indefinitely { exit if ($flag); my $response = $ua->reque

RE: Problems with DBD::mysql

2001-11-30 Thread Matthew Walkup
Just a suggestion, I ran into similar problems but I dont remember if they are the same. Be sure to have the library/dev /include files installed and specify the diretory they are in in the MakeFile.pl or whatever it uses. You may have to install manually after getting the package from CPAN. Hop

Re: Newbie: Move to next entry

2001-11-30 Thread Marc-André Landry
> I have delimited the fields in the logfile by ","..and delimited the > last field for each entry with a "*". > > How do I get it to move to the next entry after the *, and print that to > screen? > > open(READFILE, $log_file) || > > print "The log file could not be opened",$BR; > > while() > > {

RE: Problems with DBD::mysql

2001-11-30 Thread Matthew Walkup
hrm, sorry I meant to say the library/dev/include files for MySQL itself (the Server/Client). -Matt -Original Message- From: Matthew Walkup [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:32 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Problems with DBD::my

.txt to .rtf

2001-11-30 Thread Patrick.Griffin
Hey: I am trying to convert a txt file to rtf. Anyone know of a good site/resource with some guidelines as to formatting? Thanks. - Pat -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Fork ??

2001-11-30 Thread Randy5235
"Brett W. McCoy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Fri, 30 Nov 2001, Randy5235 wrote: > > > Pretty new to Perl still so forgive me a bit please. I have searched the web > > (google is my friend) and searched the groups and found multiple things

parsing exact date/line on a certain file.

2001-11-30 Thread louie miranda
Hi, im really clueless.. #!/usr/bin/perl $logfile = '/etc/services'; $date = 'date'; open(INFO, $logfile); @lines = ; close(INFO); print @lines; All i have is this line of code.. what i want to make is, ex: the perl script will parse a file and match the cur date. how can i do that? any h

Re: parsing exact date/line on a certain file.

2001-11-30 Thread Curtis Poe
--- louie miranda <[EMAIL PROTECTED]> wrote: > Hi, im really clueless.. > > #!/usr/bin/perl > > $logfile = '/etc/services'; > $date = 'date'; > > open(INFO, $logfile); > @lines = ; > close(INFO); > print @lines; > > All i have is this line of code.. > what i want to make is, > > ex: > the per

Any takers,...

2001-11-30 Thread AMORE,JUAN (HP-Roseville,ex1)
Hello Prel Gurus, I've learned more as time go's on, especially with all your HELP:) My last attempt has been somewhat difficult. Can anyone advise regarding CGI perl scripts. I need to inject a if elsif else statement in the below code so that if any one of my HTML form fields is empty for it to

Looking for a straightforward Perl GUI for Windows

2001-11-30 Thread Clive Lansink
Hi. I guess the subject here says it all. I would like to find a simple but effective GUI for a Perl application for Windows 98 and 2000. I've written numerous command line Perl scripts but this is my first attempt at a Perl application with a GUI. I've started looking at TK. My first qu

Re: Reading files into arrays

2001-11-30 Thread Leon
- Original Message - From: "Sandhya Sankaran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 8:35 PM Subject: Reading files into arrays > I have just started programming in Perl and i need a solution to the > following problem : > > I have a file like this :

Re: Any takers,...

2001-11-30 Thread Curtis Poe
--- "AMORE,JUAN (HP-Roseville,ex1)" <[EMAIL PROTECTED]> wrote: > > Hello Prel Gurus, > I've learned more as time go's on, especially with all your HELP:) > My last attempt has been somewhat difficult. > Can anyone advise regarding CGI perl scripts. > I need to inject a if elsif else statement in

Re: Any takers,...

2001-11-30 Thread Leon
- Original Message - From: "AMORE,JUAN (HP-Roseville,ex1)" <[EMAIL PROTECTED]> To: "Beginners@Perl. Org (E-mail)" <[EMAIL PROTECTED]> Cc: "John Amore (E-mail)" <[EMAIL PROTECTED]>; "AMORE,JUAN (HP-Roseville,ex1)" <[EMAIL PROTECTED]> Sent: Saturday, December 01, 2001 9:33 AM Subject: Any ta

Re: How to know a file is being processed?

2001-11-30 Thread Randal L. Schwartz
> "Ahmed" == Ahmed Moustafa <[EMAIL PROTECTED]> writes: Ahmed> If I try to lock a file while it is still being transferred, would Ahmed> that cause an error? No, unless the program writing the file has also locked the file, which is usually unlikely. -- Randal L. Schwartz - Stonehenge Cons

perl and html table? Working now!

2001-11-30 Thread Craig Sharp
Thanks to all. All ideas are great and I was able to make the tables work as I need. Craig -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]