Re: Unix passwd rules

2001-11-19 Thread Elaine -HFB- Ashton
Daniel Falkenberg [[EMAIL PROTECTED]] quoth: *> *>I understand this is a little off topic, but it essetially this question *>has alot to do with Perl. My question is what are the curent rules for a *>Unix passwd? i.e How many characters? Also has any one had anything to *>do with the module Unix:

Daemons

2001-11-19 Thread Daniel Falkenberg
Hey all, I am working with daemons at the moment. What I want to know is... 1 - Is it possbile for my script to report a message everytime my program dies. My program currently runs as a daemon. Sometimes I get up in the morning and the program (Perl deamon) isn't running any more. Thx, Dan

Unix passwd rules

2001-11-19 Thread Daniel Falkenberg
Hi all, I understand this is a little off topic, but it essetially this question has alot to do with Perl. My question is what are the curent rules for a Unix passwd? i.e How many characters? Also has any one had anything to do with the module Unix::PasswdFile. I have the following code that in

Re: how can i set up a simple portal?

2001-11-19 Thread Curtis Poe
--- Kevin Meltzer <[EMAIL PROTECTED]> wrote: > I also think cnn.com ha(s|d) a 'backdoor' with simple text for headlines. I don't > recall the URL, maybe someone else has it. It may be gone. This *used* to be that backdoor: http://www8.cnn.com/HLN/virtual/swf.headline.txt Cheers, Curtis "Ovid"

Re: how can i set up a simple portal?

2001-11-19 Thread Kevin Meltzer
Hi Noah, Why not use RSS? My book has a chapter on using it, or to save money you can look at that chapter online: http://perlcgi-book.com/sample/chapter16.pdf A good past article from perl.com: http://www.perl.com/pub/a/2000/01/rss.html Also, the current article on perl.com: http://www.perl.co

RE: NT - piping input to my perl script

2001-11-19 Thread murphy, daniel (BMC Eng)
I thought I had been abandoned, but Andrea pulled thru for me. Thanks. What hurts is that I had a similar problem about a month ago, and solved it this way. The mind is the second thing to go Dan Murphy [EMAIL PROTECTED] EMC Corp.508

how can i set up a simple portal?

2001-11-19 Thread Noah
I want to make a CGI that grabs the top few headlines from major (or not) news sites such as the new york times and cnn, and places them as hyperlinks on my web page. I know there is a lot of stuff out there to do this, but I'm doing this as a learning excercise, so I'd like to know if anyone has

CGI.pm problems continued

2001-11-19 Thread birgit kellner
I have tried the following code to read a query-string from a CGI request into a hash, taking into account (a) multiple select fields without knowing the field name, (b) getting rid of names without values, and thereby, hopefully, (c) allowing for user input alternately through a text field or

Re: capture strings with two non-identical capital letters in a row

2001-11-19 Thread birgit kellner
--On Sonntag, 18. November 2001 17:31 -0900 Michael Fowler <[EMAIL PROTECTED]> wrote: > On Fri, Nov 16, 2001 at 10:39:57PM +0100, birgit kellner wrote: >> How can I filter out strings which contain two (or three) non-identical >> capital letters in a row? >> >> my $string1 = "ABCD"; >> my $stri

RE: pattern matching

2001-11-19 Thread Prasanthi Tenneti
Hi, Iam unable to debug this code. pls help me. here is the code : open(FILE,"build.txt") ||die "cannot open \n"; print "select which build you want to enter\n"; $build=; while() { if(/$build/) { print "you selected $build\n"; #here it shou

Re: recommended perl training in UK?

2001-11-19 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > > "Chris" == Chris Ball <[EMAIL PROTECTED]> writes: > Chris> [1]: http://www.stonehenge.com/ being the most obvious example. > Both Tom Phoenix and I have been to London. I'd be very happy to go > back, and ma

Re: recommended perl training in UK?

2001-11-19 Thread Randal L. Schwartz
> "Chris" == Chris Ball <[EMAIL PROTECTED]> writes: Chris> [1]: http://www.stonehenge.com/ being the most obvious example. Both Tom Phoenix and I have been to London. I'd be very happy to go back, and maybe even work with you a bit to compensate for the increased travel costs. -- Randal L

Re: Off-Topic (200%) - Where are you from?

2001-11-19 Thread Randal L. Schwartz
> "Royce" == Royce Wells <[EMAIL PROTECTED]> writes: Royce> memphis tn Royce> Royce> The information transmitted is intended only for the person or entity to Royce> which it is addressed and may contain confidential and

Re: New Coder

2001-11-19 Thread Morbus Iff
>>Ever read Code Complete by Steve McConnell? >>I'd place that first on your reading list. > >I'm still excited that the OP said he came from a school whose title >implies that they taught the kinds of things that CC covers... I would like >to know whether this was the case. I'd be interest

Re: New Coder

2001-11-19 Thread Etienne Marcotte
>From amazon: Collectible - Items 1 to 1 of 1 $45.00 Seller: arwen2001 Rating: Ships from: CA, United States Comments: Like New - Brandnew, excellent condition, and signed by both Randal Schwartz & Tom Phoenix hehehe, you can get a signed version too!!! Etienne Peter Scott wrote: > > A

Re: New Coder

2001-11-19 Thread Peter Scott
At 01:48 PM 11/19/01 -0500, Morbus Iff wrote: > >I am a new programmer fresh out of logic and program development school. > >Ever read Code Complete by Steve McConnell? >I'd place that first on your reading list. I'm still excited that the OP said he came from a school whose title implies that t

Re: New Coder

2001-11-19 Thread Peter Scott
At 12:32 PM 11/19/01 -0600, [EMAIL PROTECTED] wrote: >Hey Calvary; Oblique reference to salvation? :-) >I am a new programmer fresh out of logic and program development school. Wow, this is relatively rare in my experience... that people are being trained in logic and program development, I me

Re: New Coder

2001-11-19 Thread Christopher Solomon
On Mon, 19 Nov 2001, Etienne Marcotte wrote: > I'll be the first to answer before 10 give you the same answer: Books > > www.oreilly.com -> Learning Perl, Programming Perl, Perl Cookbook. > On the net, there are many tutorials also, try google search "perl > tutorial" > Oreilly books are very

Re: New Coder

2001-11-19 Thread Morbus Iff
>I am a new programmer fresh out of logic and program development school. Ever read Code Complete by Steve McConnell? I'd place that first on your reading list. >Immediately I have been thrown into an environment where I have to learn 6 >new computer languages...one of which is PERL. Where do

Re: New Coder

2001-11-19 Thread Etienne Marcotte
I'll be the first to answer before 10 give you the same answer: Books www.oreilly.com -> Learning Perl, Programming Perl, Perl Cookbook. On the net, there are many tutorials also, try google search "perl tutorial" But for me a book works better, Etienne [EMAIL PROTECTED] wrote: > > Hey Calvar

New Coder

2001-11-19 Thread bwhite
Hey Calvary; I am a new programmer fresh out of logic and program development school. Immediately I have been thrown into an environment where I have to learn 6 new computer languages...one of which is PERL. Where do I start? Thanks. Neo-Genus Multimedia Studios Boyd White Database Engineer [EMA

Re: -onChange

2001-11-19 Thread Jeff 'japhy' Pinyan
On Nov 19, Jerry Preston said: >Trying to learn how to "-onChange", where can I find some good doc and >examples? You're barking up the wrong tree. onChange is a javascript event. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://

Re: File::Find

2001-11-19 Thread Peter Scott
At 06:05 AM 11/19/01 -0800, Jean-Paul MiƩville wrote: >I don't understand the difference between these two functions: find and >finddepth in module File::Find. I don't understand the explanation in >perldoc. My experience shows that finddepth is about 50% faster than find. >Why ? A depth-first se

Re: Install DBD with CPAN

2001-11-19 Thread Michael D. Risser
On Saturday 17 November 2001 05:31 am, Rietsch Thierry rambled: --SNIP-- > Failed to determine directory of mysql.h. Use > > perl Makefile.PL --cflags=-I > > to set this directory. For details see the INSTALL.html file, > section "C Compiler flags" or type > > perl Makefile.PL --help > Running

Re: stupid question

2001-11-19 Thread Michael D. Risser
On Saturday 17 November 2001 05:56 am, John W. Krahn rambled: > Chris And Madonna Stalnaker wrote: > > I have to start somewhere, > > When you read from STDIN on a terminal or console the line ends with a > newline (\n) so you have to remove it. Actually you don't HAVE to remove it, the vast majo

RE: using perl-command line not working

2001-11-19 Thread Wagner-David
From msdos prompt, I get the same error. I tried: perl -e "print @INC" and it worked. On ksh shell under w2k, your oneliner worked as it should. One of the Perl Guru's can give us the whys', but this is a work around. Wags ;) -Original Message- From: Moulas, Lionel [m

RE: using perl-command line not working

2001-11-19 Thread Bob Showalter
> -Original Message- > From: Moulas, Lionel [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 19, 2001 12:15 PM > To: '[EMAIL PROTECTED]' > Subject: using perl-command line not working > > > Hi. > First post here, simple question. > > Trying, under the msdos command line (WinNT, "cmd"

using perl-command line not working

2001-11-19 Thread Moulas, Lionel
Hi. First post here, simple question. Trying, under the msdos command line (WinNT, "cmd"), perl -e ' print "@INC"' I get the message Can't find string terminator "'" anywhere before EOF at -e line 1. I`m using Win NT, ActivePerl 5.6.1.629. I haven`t used Perl for months, I feel I have a lot t

ODBC or ADO or NO WAY

2001-11-19 Thread patrick
hey there ! after that first round of insight i'm back for more ! this time, i don't know what module to use, to access a microsoft access database preferably with recordset capabilities intact ? ^_^ i can do it ! thank you very very very much ! -- p a t r i c k d u n i g a ng r a p h

sysread with binary data

2001-11-19 Thread Jason Ostrom
This should be a really simple problem that I am trying to tackle, but I can't get around it right now. I need help being able to read binary data from a network socket, like a byte at a time. Do you know how to do this? I want to read the byte with sysread, and then copy it a byte at a time in

-onChange

2001-11-19 Thread Jerry Preston
Hi! Trying to learn how to "-onChange", where can I find some good doc and examples? Thanks, Jerry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Use of packages

2001-11-19 Thread Bob Showalter
> -Original Message- > From: Bruce Ferrell [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 19, 2001 11:41 AM > To: [EMAIL PROTECTED] > Subject: Use of packages > > > I came up with this question while I was reading Paul Dubois > book MySQL > and PERL for the Web. I'm not sure I'm

Re: Use of packages

2001-11-19 Thread Daniel Gardner
Monday, November 19, 2001, 4:41:21 PM, Bruce Ferrell wrote: BF> #begin example 2 BF> use packagename(); BF> sub1(); BF> sub2(); BF> #end example 2 BF> No can someone explain to me what, if anything is incorrect about the BF> second example? What I'm looking for is how sub-routines are used from

Use of packages

2001-11-19 Thread Bruce Ferrell
I came up with this question while I was reading Paul Dubois book MySQL and PERL for the Web. I'm not sure I'm clear on a concept, so I'm posting it here in pseudo perl hope of getting some clarity. A package (module?) is created thusly: #begin perl package package packagename; sub sub1 {

Re: [OT] Who's online, which is the best method?

2001-11-19 Thread Etienne Marcotte
Thanks a lot, this is a pretty good way, My site gets about 800-1000 unique users a day, but those unique users are almost always the same coming back the next day. So maybe a cron job once per week would be fine, well I'll monitor and reduce time if the select becomes long. Thanks again Etienn

Re: [OT] Who's online, which is the best method?

2001-11-19 Thread Daniel Gardner
EM> What is the best method for a Who's online type of thing? EM> Users can either log in or be automatically logged in with a cookie on EM> the site. EM> How can I "see" when the user is "there" or "gone" EM> Am I better of reading a text file or a database table? EM> With a cron to update eve

Re: include a file

2001-11-19 Thread Daniel Gardner
sre> sorry for this question, but i'm not a perl programmer. =\ sre> is there any similar function to php's "include()"? sre> i want to include an html file into the output the user will get when sre> opening the .pl you could use a function something like: sub echo_file { my ($filename) =

Re: Help with global match and replace

2001-11-19 Thread David Wall
[Fixed Jeopardy quoting] [EMAIL PROTECTED] (Martin Pfeffer) wrote on 19 Nov 2001: > FLAHERTY, JIM-CONT wrote: > >> My script dumps file name into a mysql DB on redhat 7.1 linux . The >> problem I have is sometime windows files has a single quote ( ' ) >> in the name. I want to replace it wit

[OT] Who's online, which is the best method?

2001-11-19 Thread Etienne Marcotte
What is the best method for a Who's online type of thing? Users can either log in or be automatically logged in with a cookie on the site. How can I "see" when the user is "there" or "gone" Am I better of reading a text file or a database table? With a cron to update every x minutes the number/

RE: witing to %ENV permanently

2001-11-19 Thread Bob Showalter
Environments belong to *processes*, and each process has a separate set of environent variables. A change to %ENV changes the environment for that process. A copy of that (changed) environment is inherited by any child processes created after that point, but a process *cannot* directly modify the

RE: stupid question

2001-11-19 Thread Bob Showalter
> -Original Message- > From: Chris and Madonna Stalnaker [mailto:[EMAIL PROTECTED]] > Sent: Saturday, November 17, 2001 1:55 AM > To: [EMAIL PROTECTED] > Subject: stupid question > > > I have to start somewhere, > > This works: > > print "Enter your name: "; > $text = ; >

sysread with binary data

2001-11-19 Thread Jason Ostrom
This should be a really simple problem that I am trying to tackle, but I can't get around it right now. I need help being able to read binary data from a network socket, like a byte at a time. Do you know how to do this? I want to read the byte with sysread, and then copy it into an data struct

RE: witing to %ENV permanently

2001-11-19 Thread Jonathan E. Paton
Hi, Setting the enviroment variable is dependant on the shell in use (sh/ksh/bash/csh etc). I would hack it like (not truely knowing sh syntax): #!/bin/sh set DVM = `./extract_line $1` This is a simple wrapper, and may/may not work depending on how lucky you are... I've definately not tested i

Re: Help with global match and replace

2001-11-19 Thread Martin Pfeffer
$thestring =~ s/'/ /g; martin FLAHERTY, JIM-CONT wrote: > My script dumps file name into a mysql DB on redhat 7.1 linux . The problem > I have is sometime windows files has a single quote ( ' ) in the name. I > want to replace it with a space . I not strong on pattern matching in perl > yet >

Help with global match and replace

2001-11-19 Thread FLAHERTY, JIM-CONT
My script dumps file name into a mysql DB on redhat 7.1 linux . The problem I have is sometime windows files has a single quote ( ' ) in the name. I want to replace it with a space . I not strong on pattern matching in perl yet $thestring = "this isn't a good file name"; Help , thanks in

include a file

2001-11-19 Thread stefan r. ernst
hey there, sorry for this question, but i'm not a perl programmer. =\ is there any similar function to php's "include()"? i want to include an html file into the output the user will get when opening the .pl thanks in advance, stefan. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

File::Find

2001-11-19 Thread Jean-Paul MiƩville
I don't understand the difference between these two functions: find and finddepth in module File::Find. I don't understand the explanation in perldoc. My experience shows that finddepth is about 50% faster than find. Why ? Thanks in advance, Jean-Paul _

Re: Access the same hash in the parent and child process

2001-11-19 Thread Jenda Krynicky
From: Garry Williams <[EMAIL PROTECTED]> > On Sat, Nov 10, 2001 at 03:58:04PM -0800, Marcia Magna wrote: > > > I have a program that needs to fork. The child process creates > > values in a hash that must be seen by the parent process. > > > > Is there anyway to do that ? > >

RE: witing to %ENV permanently

2001-11-19 Thread Crowder, Rod
The environment var you set is only available to the perl program and any child processes it produces. Try calling the Tecplot macros from within your perl program using system() or the backtick method. HTH Rod C -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: problem in the #/usr/local/bin line

2001-11-19 Thread N_Dinesh
Hi, Check MS documentation, on how to configure ".pl" cgi scripts in PWS. That is all you require to do, if you want to run perl cgi scripts. You dont require to mention #!/usr/bin/perl line in perl cgi scripts in windows, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Win 98 SE; Apache; Perl; MySQL

2001-11-19 Thread Rob Benjamin
I'm trying to set up my Win98 SE system with Apache & Perl (already loaded) and later MySQL to run as development/test before uploading to my ISP. Is there a quick checklist to use to get Perl scripts to run under Apache this way? Bob Benjamin [EMAIL PROTECTED] So. Pasadena, CA -- To unsubsc

Re: pattern matching

2001-11-19 Thread David K. Wall
[EMAIL PROTECTED] (Andrea Holstein) wrote: > Prasanthi Tenneti wrote: >> >> Iam a beginner in perl.I have one question, Iam trying to write one >> prog,in which i have to search for one word in a file, If I found that >> word,print next 4 lines. PLs help me,how to write code. > > open FILE, "

Re: witing to %ENV permanently

2001-11-19 Thread maarten hilgenga
hi, someone here works with Tecplot macros and needed something to return line x of a file. So I made a script that accepts x and prints the line on . Problem is that with these Tecplot macros we can run the script, but we can't get the return value of the script. We found a way to read en

Re: witing to %ENV permanently

2001-11-19 Thread nafiseh saberi
hi. what is your purpose about DNM ?? ___ Nafiseh Saberi .Iran. - Original Message - From: "maarten hilgenga" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 12:10 PM Subject: witing to

witing to %ENV permanently

2001-11-19 Thread maarten hilgenga
Hi all, When I try to change the value of the environmental variable DNM on a linux machine, DNM only changes when the script is running. Can anyone tell me how to change its value permanently? Thanx Maarten Hilgenga -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e