Re: CGI-HTML printing error

2004-12-17 Thread John W. Krahn
Anish Kumar K. wrote: Hi Hello, The following program has to print in the CGI...I use perl as well as HTML inside... When I complile this I get the error as "Can't find string terminator "ERROR_PRINT" anywhere before EOF" Please help me and also. if there is such combinations like perl CGI and HTML

Re: having problem finding the correct regexp using with split()

2004-12-17 Thread Randy W. Sims
[EMAIL PROTECTED] wrote: Hi all, again i am sending a message to this list hoping you bear with me and my novice question. In my script i would like to split a single scalar containing a random passage of text into a list, which holds the words of the text. What i found in the perl documentation is

Re: having problem finding the correct regexp using with split()

2004-12-17 Thread Jenda Krynicky
From: <[EMAIL PROTECTED]> > In my script i would like to split a single scalar containing a random > passage of text into a list, which holds the words of the text. > > For my case however i would like to have also linefeeds treated as > "words", because i want to preserve them (in order not to mi

having problem finding the correct regexp using with split()

2004-12-17 Thread tim23456
Hi all, again i am sending a message to this list hoping you bear with me and my novice question. In my script i would like to split a single scalar containing a random passage of text into a list, which holds the words of the text. What i found in the perl documentation is the following example

Re: combining getc() and unicode strings problem?

2004-12-17 Thread tim23456
Hello Jonathan, all, thank you for your kind response. [snip] > I never use getc... > > In C, where getc originates, the getc function returns a > char type. The C char type is almost always 8 bits long. > By definition it doesn't support unicode, so neither does > Perl. It would be nice if they

Re: Dynamic Splice

2004-12-17 Thread Jonathan Paton
> Is there a way to build splice portion: [9,10,11,15,25,28,31,32,34] > ... Yes, put those in an array. Like: my @array = (9,10,11,15,25,28,31,32,34); my $spliced = @[EMAIL PROTECTED]; Jonathan Paton -- #!perl $J=' 'x25 ;for (qq< 1+10 9+14 5-10 50-9 7+13 2-18 6+13 17+6 02+1 2-10 00+

Dynamic Splice

2004-12-17 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have the following line of code: $MyPrtLine = join( ",", (split (/ *\t */, $_))[9,10,11,15,25,28,31,32,34] ); Is there a way to build splice portion: [9,10,11,15,25,28,31,32,34] so I could place as a variable either like: $MyPrtLine = join( ",", (split (/ *\t

RE: Is there a time module to help with this...

2004-12-17 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > ... > So i'm hoping there is some sort of time module that will perform a > list of tasks at a timed interval. While one server may be timing > out, it's still making sure that the others are being checked within > the 5 minute time frame. > > If there is no module to he

RE: Is there a time module to help with this...

2004-12-17 Thread Dave Kettmann
Just a thought... Have you looked at Nagios? I'm pretty sure it is portable to most OS's. It sounds like a system monitor is your goal. I never really cared for reinventing the wheel. :-) Also, I'm pretty sure it is written in Perl, but I could be wrong. Is kinda goofy to configure, but it is ve

RE: Is there a time module to help with this...

2004-12-17 Thread Tim Johnson
Ah. I see. You should respond to the list though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 17, 2004 1:33 PM To: Tim Johnson Subject: RE: Is there a time module to help with this... HP-UX. But I would like to code it in such a manner s

RE: Is there a time module to help with this...

2004-12-17 Thread Tim Johnson
What OS are we talking about? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 17, 2004 12:42 PM To: [EMAIL PROTECTED] Subject: RE: Is there a time module to help with this... That's a good idea. However I want it to run constantly, like a se

RE: Is there a time module to help with this...

2004-12-17 Thread brian . barto
That's a good idea. However I want it to run constantly, like a service. So in some respects it would have to be a loop. Maybe embedded loops. I don't really know :) -Original Message- From: Andrew Gaffney [mailto:[EMAIL PROTECTED] Sent: Friday, December 17, 2004 3:29 PM To: [EMAIL PROTECT

Re: Is there a time module to help with this...

2004-12-17 Thread Scott Dial
I'm just a beginner in Perl, but I use cron and use Net::Ping for the hosts. I have something similar using perl's DBI to test oracle: ie, use DBI; $ENV{'ORACLE_SID'}="dummy"; $ENV{'ORACLE_HOME'}="/shared/oracle/product/root1"; yada use DBI; use Net::Ping; @hosts=('host1','host2','192.168.1.3'

Re: Is there a time module to help with this...

2004-12-17 Thread Andrew Gaffney
[EMAIL PROTECTED] wrote: Hi all. I would like to write a simple monitoring tool that basically performs an action on a list of servers (ping, port check, etc) at a specified time interval. So let's say I want to ping each server every 5 minutes. I don't want to code a loop where I ping all the serv

Is there a time module to help with this...

2004-12-17 Thread brian . barto
Hi all. I would like to write a simple monitoring tool that basically performs an action on a list of servers (ping, port check, etc) at a specified time interval. So let's say I want to ping each server every 5 minutes. I don't want to code a loop where I ping all the servers and then sleep for 5

RE: variable declaration, was RE: moving to the next line

2004-12-17 Thread Charles K. Clarkson
Chris Devers <[EMAIL PROTECTED]> wrote: : On Thu, 16 Dec 2004, Charles K. Clarkson wrote: : : : Don't declare all your variables at the beginning : : of the script. It works in other languages, but not : : in perl. Declare them as you go. : : Out of curiosity, why this rule? : : When taking

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Chris Devers
On Fri, 17 Dec 2004, Paul Johnson wrote: > On Fri, Dec 17, 2004 at 09:17:05AM -0500, Chris Devers wrote: > > > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > > > Don't declare all your variables at the beginning > > > of the script. It works in other languages, but not > > > in perl.

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Paul Johnson
Sorry, I sent the last reply before I had finished it. On Fri, Dec 17, 2004 at 09:17:05AM -0500, Chris Devers wrote: > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > Don't declare all your variables at the beginning > > of the script. It works in other languages, but not > > in perl.

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Lawrence Statton
> Out of curiosity, why this rule? > > When taking programming classes in college, it was drummed into us that > having a data dictionary at the top of a scope was a good habit, and > it's something that I've generally done with the Perl I've written. > > Several people on this list have disc

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Chris Devers
On Fri, 17 Dec 2004, Jonathan Paton wrote: > On Fri, 17 Dec 2004 09:17:05 -0500 (EST), Chris Devers wrote: > > And what programming language were you learning? C/C++, Java, Visual Basic, Cobol. > In some other languages, like C, C++ and Java you must specify the > exact type of each variable.

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Paul Johnson
On Fri, Dec 17, 2004 at 09:17:05AM -0500, Chris Devers wrote: > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > Don't declare all your variables at the beginning > > of the script. It works in other languages, but not > > in perl. Declare them as you go. I suppose that depends on your

Re: variable declaration, was RE: moving to the next line

2004-12-17 Thread Jonathan Paton
On Fri, 17 Dec 2004 09:17:05 -0500 (EST), Chris Devers <[EMAIL PROTECTED]> wrote: > On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > > > Don't declare all your variables at the beginning > > of the script. It works in other languages, but not > > in perl. Declare them as you go. > > Out of c

remote install of TSM backup client on a windows xp or 2000 machine

2004-12-17 Thread DBSMITH
All, I am wondering if there are any modules out there that invokes and completes remote installs of a backup application on Windows machines? I am familiar with rdist, but is this compatible with Windows. thanks, Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams

variable declaration, was RE: moving to the next line

2004-12-17 Thread Chris Devers
On Thu, 16 Dec 2004, Charles K. Clarkson wrote: > Don't declare all your variables at the beginning > of the script. It works in other languages, but not > in perl. Declare them as you go. Out of curiosity, why this rule? When taking programming classes in college, it was drummed into us th

RE: CGI-HTML printing error

2004-12-17 Thread Charles K. Clarkson
Anish Kumar K. wrote: : The following program has to print in the CGI...I use perl as : well as HTML inside... : : When I complile this I get the error as "Can't find string : terminator "ERROR_PRINT" anywhere before EOF" I believe ERROR_PRINT must be in the firs

CGI-HTML printing error

2004-12-17 Thread Anish Kumar K.
Hi The following program has to print in the CGI...I use perl as well as HTML inside... When I complile this I get the error as "Can't find string terminator "ERROR_PRINT" anywhere before EOF" Please help me and also. if there is such combinations like perl CGI and HTML which is the best ways.

Re: Using variables in REs

2004-12-17 Thread Ing. Branislav Gerzo
Michael Kraus [MK], on Friday, December 17, 2004 at 11:33 (+1100) has on mind: MK> How are they interpreted? (Would the "\" just escape the next character MK> appearing or would it be interpreted literally? I'm guessing the former, MK> as I'm pretty sure I can use "\d" to indicate a digit.) try

Re: return value for associate array

2004-12-17 Thread John W. Krahn
Khairul Azmi wrote: Hi, Hello, I am working on a function that would simple store value assignments statement into an array. The statement is stored in a text file. The contains of the file would be --- var word1 one,two,three var word2 four,five,six --- So I write a function that