Re: perl

2009-03-16 Thread Chas. Owens
On Tue, Mar 17, 2009 at 01:58, Sharan Basappa wrote: > Hi Chas, > > Clearly I did not communicate properly. So what I am looking is for > some support to do some > GUI stuff. The idea is take information from text and show it in the > form a waveform. This > will help a lot since it is rather diff

Re: perl

2009-03-16 Thread Sharan Basappa
Hi Chas, Clearly I did not communicate properly. So what I am looking is for some support to do some GUI stuff. The idea is take information from text and show it in the form a waveform. This will help a lot since it is rather difficult to go through the text file. Regards, Sharan On Mon, Mar 16

RE: Writing a column after column

2009-03-16 Thread David Christensen
vijay wrote: > I need to consolidate columns of data available across different > directories into a single excel csv file. Usually we write to a file > row after row but for the current task I have, it would be convenient > to write the file column after column. Is there a file writing mode > for

RE: I'm sure this is a common question, but I can't find the solution.

2009-03-16 Thread David Christensen
Chas. Owens wrote: > If you are stuck using Windows I would suggest looking into > PowerShell > ... > http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx Interesting. I don't have the time for coding that I used to, and I've found that it's easier if I stic

Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box.

2009-03-16 Thread Ron Smith
--- On Mon, 3/16/09, Chas. Owens wrote: > From: Chas. Owens > Subject: Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box. > To: geeksatla...@yahoo.com > Cc: "Perl" > Date: Monday, March 16, 2009, 6:51 AM > On Mon, Mar 16, 2009 at 03:51, Ron Smith > wrote: > snip > > Then when I try

Writing a column after column

2009-03-16 Thread vd
Hi all, I need to consolidate columns of data available across different directories into a single excel csv file. Usually we write to a file row after row but for the current task I have, it would be convenient to write the file column after column. Is there a file writing mode for this? If not,

Re: [Fwd: Re: Making Web Form Data Safe]

2009-03-16 Thread Gunnar Hjalmarsson
Nigel Peck wrote: I do some basic email validation: / ^ [...@]+ \@ (?: [^.]+ \. )+ [a-zA-Z]{2,3} $ /x What about someb...@mail.example.com or someb...@example.info? Maybe you ought to use a module for that. The only header I use user submitted data for is the reply-to header (so I can hit

Re: [Fwd: Re: Making Web Form Data Safe]

2009-03-16 Thread Nigel Peck
Gunnar Hjalmarsson wrote: >> For the body of the message, one thing that occurs to me is \n.\n as >> that would end the message? But presumably nothing else could be entered >> after that as sendmail would close? > > True. But that's not exactly a security issue, right? No, not as long as it does

Re: [Fwd: Re: Making Web Form Data Safe]

2009-03-16 Thread Gunnar Hjalmarsson
Nigel Peck wrote: Gunnar Hjalmarsson wrote: Nigel Peck wrote: I'd appreciate hearing (reading!) people's thoughts on making web form data safe for using to compose an email via sendmail. Basically, see comments in pseudo-code below, what should I be doing to the data to make it safe? -=-=-

[Fwd: Re: Making Web Form Data Safe]

2009-03-16 Thread Nigel Peck
Gunnar Hjalmarsson wrote: Nigel Peck wrote: I'd appreciate hearing (reading!) people's thoughts on making web form data safe for using to compose an email via sendmail. Basically, see comments in pseudo-code below, what should I be doing to the data to make it safe? -=-=-=-=-=-=-=-=-=-=-=-=

Re: Making Web Form Data Safe

2009-03-16 Thread Gunnar Hjalmarsson
Nigel Peck wrote: I'd appreciate hearing (reading!) people's thoughts on making web form data safe for using to compose an email via sendmail. Basically, see comments in pseudo-code below, what should I be doing to the data to make it safe? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- use strict; us

Making Web Form Data Safe

2009-03-16 Thread Nigel Peck
I'd appreciate hearing (reading!) people's thoughts on making web form data safe for using to compose an email via sendmail. Basically, see comments in pseudo-code below, what should I be doing to the data to make it safe? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- use strict; use CGI; my $query

Re: Slice?

2009-03-16 Thread Jim Gibson
On 3/16/09 Mon Mar 16, 2009 3:05 PM, "R. Hicks" scribbled: > $template->param( >RESULTS => $self->dbh->selectall_arrayref(' > SELECT age, day FROM table WHERE id = ?', > { Slice => {} }, > $self->session->param('cell')->{'sid'} ) > ); > > > I saw that code and while I do da

Slice?

2009-03-16 Thread R. Hicks
$template->param( RESULTS => $self->dbh->selectall_arrayref(' SELECT age, day FROM table WHERE id = ?', { Slice => {} }, $self->session->param('cell')->{'sid'} ) ); I saw that code and while I do database stuff I was wondering what that "Slice => {}" does? Thanks, Robert -- To

Re: how variables definition works?

2009-03-16 Thread John W. Krahn
josanabr wrote: Hi, Hello, I having problems with a perl module implemented in Sun Grid Engine. This perl module (script) continuously watches the state of jobs submitted to my cluster. Every job can reach some of these states: r - run t - transfer q - queued s - suspended w - waiting In ord

how variables definition works?

2009-03-16 Thread josanabr
Hi, I having problems with a perl module implemented in Sun Grid Engine. This perl module (script) continuously watches the state of jobs submitted to my cluster. Every job can reach some of these states: r - run t - transfer q - queued s - suspended w - waiting In order to identify the current s

Re: Error: Can't call method "x" without a package or object reference...

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 12:23, Jim Gibson wrote: snip >> Can't call method "x" without a package or object reference at test.pl line >> 12 >> line 1 snip >> $ent{$1} = \x{$2}; snip > Without seeing all of your data, it is impossible to tell what actually went > wrong. Possibly the next line afte

Re: Error: Can't call method "x" without a package or object reference...

2009-03-16 Thread Jim Gibson
On 3/14/09 Sat Mar 14, 2009 5:28 AM, "M. Coiffure" scribbled: > Hi all > > I'm getting this error on the following (test) script: > > Can't call method "x" without a package or object reference at test.pl line 12 > line 1 > > What I want to do is create a HashMap where the keys are names of

Re: use constant

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 11:16, Suzanne Aardema wrote: snip > I do this regularly redefine constants in my programs. I'm not sure if it's > good practice but I do it. > > What I do is define a constant in most subroutines. The constant is called, > strange enough, PROC_NM. I felt that because thi

Re: perl

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 10:31, Sharan Basappa wrote: > Hi, > > We have quite a bit of log information generated during our work. The > thought I have is to create a tool that actually > takes all the info in the log and then displays in a visual manner. I > have fair amount of experience in Perl b

Re: use constant

2009-03-16 Thread Suzanne Aardema
- Original Message - From: "Paul Johnson" To: "Stanisław T. Findeisen" Cc: beginners@perl.org Sent: Thursday, 12 March, 2009 19:27:02 GMT -07:00 US/Canada Mountain Subject: Re: use constant On Thu, Mar 12, 2009 at 11:50:46PM +0100, "Stanisław T. Findeisen" wrote: > Is there any way to c

perl

2009-03-16 Thread Sharan Basappa
Hi, We have quite a bit of log information generated during our work. The thought I have is to create a tool that actually takes all the info in the log and then displays in a visual manner. I have fair amount of experience in Perl but for an application of this kind, I am wondering what I need to

Re: I am considering changing my footnote style.

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 10:16, Bob goolsby wrote: > But only if you number them on octal. snip Hmm, I don't normally have more than seven footnotes, so I don't think it will be noticeable whether I a using octal, decimal, or hexadecimal. -- Chas. Owens wonkden.net The most important skill a

Re: I am considering changing my footnote style.

2009-03-16 Thread Bob goolsby
But only if you number them on octal. OGB On Sun, Mar 15, 2009 at 9:46 PM, John W. Krahn wrote: > Chas. Owens wrote: >> >> As many of you have probably noticed, I am addicted* to footnotes in >> my answers.  I am considering changing their format to [1], [2], [3] >> instead of *, **, ***.  I

Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box.

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 03:51, Ron Smith wrote: snip > Then when I try installing 'Math::GMP' I get: snip > WARNING! No GMP libraries were detected! snip > Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL] >  TURNSTEP/Math-GMP-2.05.tar.gz snip The Net::SSH::Perl library

Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box.

2009-03-16 Thread Ron Smith
--- On Sun, 3/15/09, Chas. Owens wrote: > From: Chas. Owens > Subject: Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box. > To: geeksatla...@yahoo.com > Cc: "Perl" > Date: Sunday, March 15, 2009, 5:46 AM > On Sun, Mar 15, 2009 at 04:56, Ron Smith > wrote: > snip > > Can't locate obj