Re: Strange regular expression

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 01:39, boll b...@sonic.net wrote: I'm trying to use the random_image.pl program from the nms-cgi project on sourceforge.net. This line has me baffled:        if ( $baseurl !~ m%/$% ) I don't understand the function of the percent symbols. I hope someone can explain

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 chas.ow...@gmail.com wrote: From: Chas. Owens chas.ow...@gmail.com Subject: Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box. To: geeksatla...@yahoo.com Cc: Perl beginners@perl.org Date: Sunday, March 15, 2009, 5:46 AM On Sun, Mar 15, 2009 at

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 geeksatla...@yahoo.com 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

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 jwkr...@shaw.ca 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 *, **,

Re: I am considering changing my footnote style.

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 10:16, Bob goolsby bob.gool...@gmail.com 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

perl what

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

Re: use constant

2009-03-16 Thread Suzanne Aardema
- Original Message - From: Paul Johnson p...@pjcj.net To: Stanisław T. Findeisen sf181...@students.mimuw.edu.pl 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.

Re: perl what

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 10:31, Sharan Basappa sharan.basa...@gmail.com 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

Re: use constant

2009-03-16 Thread Chas. Owens
On Mon, Mar 16, 2009 at 11:16, Suzanne Aardema suzan...@athabascau.ca 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

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 coiff...@gmx.at 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 ENT line 1 What I want to do is create a HashMap where the keys are

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 jimsgib...@gmail.com wrote: snip Can't call method x without a package or object reference at test.pl line 12 ENT 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

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

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

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: Slice?

2009-03-16 Thread Jim Gibson
On 3/16/09 Mon Mar 16, 2009 3:05 PM, R. Hicks sigz...@gmail.com 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

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

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;

[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: [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?

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 close

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

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

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 chas.ow...@gmail.com wrote: From: Chas. Owens chas.ow...@gmail.com Subject: Re: I'm trying to install 'Net::SSH::Perl' on a Windows Box. To: geeksatla...@yahoo.com Cc: Perl beginners@perl.org Date: Monday, March 16, 2009, 6:51 AM On Mon, Mar 16, 2009 at

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 stick

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: perl what

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