Re: Help with Cookies

2003-02-08 Thread CraigD
This is how I did it. if ( @loginfo = CGI::cookie('mspplog') ) { $user_name = $loginfo[0]; $password = $loginfo[1]; $checkPassword = 'true'; } On Friday 07 February 2003 08:07 am, Kipp, James wrote: All am I am trying to do now is have a user enter his/her name in a

daemons ???

2003-02-08 Thread km
hi all, how to write daemons in perl ? does it have such a support ? if so which module should i use? kindly enlighten me -- thanks in advance -- KM -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: daemons ???

2003-02-08 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: hi all, how to write daemons in perl ? does it have such a support ? if so which module should i use? kindly enlighten me -- thanks in advance -- First question, do you want a daemon as in a process that is started, then exec's a new process without a controlling

Re: daemons ???

2003-02-08 Thread km
Hi, well to make it clear -- i need to make a server -- a constantly running process -- suppose if i want to get a daily report of the frequency of all the users logging in and out on the system from the daemon written in perl -- how do i do that ? thanks, KM

Re: daemons ???

2003-02-08 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hi, well to make it clear -- i need to make a server -- a constantly running process -- suppose if i want to get a daily report of the frequency of all the users logging in and out on the system from the daemon written in perl -- how do i do that ? thanks, KM You

Re: daemons ???

2003-02-08 Thread km
Hi all, well i really need a server :-) thanks, KM On Sat, 8 Feb 2003, Wiggins d'Anconia wrote: [EMAIL PROTECTED] wrote: Hi, well to make it clear -- i need to make a server -- a constantly running process -- suppose

Pipe Help

2003-02-08 Thread anthony
Hi, what i'm creating is just an EXTREMELY script that sends an array to another script via PIPE. This is what i have: #! /usr/bin/perl @file = qw (tony boby zombie anthony martine eric charlie); open(SORT, | perl sorted.pl); while(@file){ chomp $_; print SORT $_\n; } print

Re: daemons ???

2003-02-08 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hi all, well i really need a server :-) thanks, KM Still confused as to why, but ok... How will your clients be connecting to the server? I would suggest having a look at: perldoc -f fork perldoc -f

Re: Pipe Help

2003-02-08 Thread Wiggins d'Anconia
anthony wrote: Hi, what i'm creating is just an EXTREMELY script that sends an array to another script via PIPE. This is what i have: #! /usr/bin/perl @file = qw (tony boby zombie anthony martine eric charlie); open(SORT, | perl sorted.pl); while(@file){ chomp $_; print SORT

Re: Pipe Help

2003-02-08 Thread anthony
Hi, i'm trying to learn pipe, so i need start somewhere i could of just say sort @file print @file and that is it but like i said i want to learn the mechanism of pipe Anthony Anthony [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, what i'm creating is

Re: Pipe Help

2003-02-08 Thread Rob Dixon
Anthony wrote: Hi, what i'm creating is just an EXTREMELY script that sends an array to another script via PIPE. Never coded in EXTREMELY before, but I'll have a go ;-) This is what i have: #! /usr/bin/perl ALWAYS: use strict; use warnings; @file = qw (tony

Re: daemons ???

2003-02-08 Thread Rob Dixon
[EMAIL PROTECTED] wrote: Hi all, well i really need a server :-) thanks, KM Hi K. I really think you ought to come clean on what you're actually trying to do to give Wiggins (and the rest of us) a sporting chance of helping you :) The bottom line is that you can write a daemon in any

Re: Pipe Help

2003-02-08 Thread John W. Krahn
Anthony wrote: Hi, Hello, what i'm creating is just an EXTREMELY script that sends an array to another script via PIPE. This is what i have: #! /usr/bin/perl use warnings; use strict; @file = qw (tony boby zombie anthony martine eric charlie); It seems like you

Re: Pipe Help

2003-02-08 Thread John W. Krahn
John W. Krahn wrote: Anthony wrote: @file = qw (tony boby zombie anthony martine eric charlie); It seems like you need newlines at the end of each element. my @file = FILE; tony boby zombie anthony martine eric charlie FILE Sorry, that's not going to work. :-) my @file =

Perl script

2003-02-08 Thread dakenah johnson
Hi all, I am a novice to perl. I find Perl very interesting and I am studying how to write and compile perl scripts without syntax and compilation errors. I need heads up on how. thanks, DJ _ MSN 8 helps eliminate e-mail viruses.

Re: Pipe Help

2003-02-08 Thread Rob Dixon
John W. Krahn wrote: my @file = DATA; Then at the end of the program: __DATA__ tony boby zombie anthony martine eric charlie I forgot you could do that! Thanks John. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl script

2003-02-08 Thread Wiggins d'Anconia
dakenah johnson wrote: Hi all, I am a novice to perl. I find Perl very interesting and I am studying how to write and compile perl scripts without syntax and compilation errors. I need heads up on how. This is a very vague question...but here are some pointers: always do: use strict; use

Re: Perl script

2003-02-08 Thread Rob Dixon
Dakenah Johnson wrote: Hi all, I am a novice to perl. I find Perl very interesting and I am studying how to write and compile perl scripts without syntax and compilation errors. I need heads up on how. Erm. That's a bit of a broad brief isn't it? I think I have to throw it back to you and

Re: Perl script

2003-02-08 Thread R. Joseph Newton
dakenah johnson wrote: Hi all, I am a novice to perl. I find Perl very interesting and I am studying how to write and compile perl scripts without syntax and compilation errors. I need heads up on how. thanks, DJ Hi DJ, You might want to re-think your emphasis here. Of ocurse, you need

html continuation between functions

2003-02-08 Thread Ebaad Ahmed
Hi, I want to rewrite this script in pure cgi, I really need help at this point. I want to write a form but half of it is in one function and the other half is in the other, and I cant continue the flow of the html from one function to the next. The excerpt is as follows. sub

confused with File::Glob

2003-02-08 Thread Harry Putnam
Apparently I'm not getting what it is that File::Glob is supposed to do: ls tmp/file_[0-9]*|wc -l 99 All 99 look like tmp/file_NUM with incrementing number. Why doesn't this code unwind the list of files? when this command is given: ./testglob.pl 'tmp/file_[0-9]*' cat ./testglob.pl

Re: confused with File::Glob

2003-02-08 Thread Jeff 'japhy' Pinyan
On Feb 8, Harry Putnam said: @files = bsd_glob($glob_pattern,GLOB_ERR)|| die Yikes: $!; This line screws you up. Change the || to 'or'. @files = bsd_glob(...) or die Yikes: $!; The reason being: || binds very tightly, and 'or' binds less tightly. With ||, your code is like @files =

Re: confused with File::Glob

2003-02-08 Thread Harry Putnam
Jeff 'japhy' Pinyan [EMAIL PROTECTED] writes: And || enforces scalar context, so func() won't (can't) return a list, in your case. Thanks, I'd have been a very long time figuring that out... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

unloading zip files with perl install script

2003-02-08 Thread Patricia Hinman
Does anyone know how to use a zip utility in an installation script. I would like to create an installation script for a program I've written. My only hurdle is learning how to unpack the zip file. I've heard of gunzip, can I use that with perl?

Re: confused with File::Glob

2003-02-08 Thread John W. Krahn
Harry Putnam wrote: Jeff 'japhy' Pinyan [EMAIL PROTECTED] writes: And || enforces scalar context, so func() won't (can't) return a list, in your case. Thanks, I'd have been a very long time figuring that out... Another point. cat ./testglob.pl #!/usr/local/bin/perl -w use

Re: unloading zip files with perl install script

2003-02-08 Thread ktb
On Sat, Feb 08, 2003 at 09:37:40PM -0800, Patricia Hinman wrote: Does anyone know how to use a zip utility in an installation script. I would like to create an installation script for a program I've written. My only hurdle is learning how to unpack the zip file. I've heard of gunzip, can

Re: unloading zip files with perl install script

2003-02-08 Thread ktb
On Sat, Feb 08, 2003 at 09:37:40PM -0800, Patricia Hinman wrote: Does anyone know how to use a zip utility in an installation script. I would like to create an installation script for a program I've written. My only hurdle is learning how to unpack the zip file. I've heard of gunzip, can