AW: perl

2009-03-17 Thread Thomas Bätzler
Sharan Basappa wrote: > 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. If you don

remove the last paragraph tag and its contents

2009-03-17 Thread ekbworldwide
I want to remove the last paragraph tag and its contents. >From this: _ It feels, at least to me, a bit more like You-Tube Do you use the aspects of it? Or do you just plainly use it as a way to keep posted on your RSS feeds? http://www.site.com/";>Buy a

Re: perl

2009-03-17 Thread Sharan Basappa
Some user interaction is expected, at least in terms of clicking to get additional details of a log point ... But yes, since more might be required later, I would probably go with (G)TK Regards On Tue, Mar 17, 2009 at 1:47 PM, Thomas Bätzler wrote: > Sharan Basappa wrote: >> Clearly I did not c

defined{ness}

2009-03-17 Thread Dermot
Hi All, I am unsure if the following statement is going to do what I want. I want to test if there is a value in $hash_ref{'someval'} NOT if the key is defined. I'd also like to avoid un-sightly "undefined value" errors. So which of the following is best: if (defined($hash_ref{'someval'}) {}

Re: defined{ness}

2009-03-17 Thread Jeff Pang
Dermot : Hi All, I am unsure if the following statement is going to do what I want. I want to test if there is a value in $hash_ref{'someval'} NOT if the key is defined. I'd also like to avoid un-sightly "undefined value" errors. So which of the following is best: if (defined($hash_ref{'some

Re: defined{ness}

2009-03-17 Thread Jay Savage
On Tue, Mar 17, 2009 at 8:16 AM, Dermot wrote: > Hi All, > > I am unsure if the following statement is going to do what I want. > > I want to test if there is a value in $hash_ref{'someval'} NOT if the > key is defined. I'd also like to avoid un-sightly "undefined value" > errors. Hi Dermot, It

Re: defined{ness}

2009-03-17 Thread Dermot
2009/3/17 Jay Savage : > On Tue, Mar 17, 2009 at 8:16 AM, Dermot wrote: >> Hi All, >> >> I am unsure if the following statement is going to do what I want. >> >> I want to test if there is a value in $hash_ref{'someval'} NOT if the >> key is defined. I'd also like to avoid un-sightly "undefined va

Re: Making Web Form Data Safe

2009-03-17 Thread Dermot
2009/3/16 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? > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- >

Re: remove the last paragraph tag and its contents

2009-03-17 Thread Brian J. Miller
ekbworldwide wrote: > I want to remove the last paragraph tag and its contents. > > From this: > _ > It feels, at least to me, a bit more like You-Tube Do > you > use the aspects of it? Or do you just plainly use it as a way to keep > posted on your RSS

Matching Over Multiple Lines

2009-03-17 Thread Jeff Westman
All, I know this has been asked many times, and I have read the documentation ("perldoc -q "matching over more than one line") and still can't make head or tails out of this. I have a problem where my pattern can be in one line, or span multiple lines. This is what I have so far (simplified):

Perl Script Pauses - Want it to Continue

2009-03-17 Thread socrtwo
I am using the executable cakecmd unzipper in a Perl script. Normally when cakcmd is executed outside of Perl and it's done it's work it pauses and one has to hit enter to return to the prompt. How can I program Perl so that it enters the carriage return for me? Printing a carriage return doesn't

Re: defined{ness}

2009-03-17 Thread Chas. Owens
On Tue, Mar 17, 2009 at 09:30, Dermot wrote: snip > if ($x{$x})  inspects the key's value, not simply the existence of a key? snip Yes, but beware of autovivification (i.e. the creating of keys by trying to look at their values). You are safe with this simple case, but when dealing with HoHs or

Re: Writing a column after column

2009-03-17 Thread Jim Gibson
On 3/16/09 Mon Mar 16, 2009 10:20 AM, "vd" scribbled: > 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 fil

Re: defined{ness}

2009-03-17 Thread Dermot
2009/3/17 Chas. Owens : > On Tue, Mar 17, 2009 at 09:30, Dermot wrote: > snip >> if ($x{$x})  inspects the key's value, not simply the existence of a key? > snip > > Yes, but beware of autovivification (i.e. the creating of keys by > trying to look at their values).  You are safe with this simple

Re: Matching Over Multiple Lines

2009-03-17 Thread Jim Gibson
On 3/17/09 Tue Mar 17, 2009 8:45 AM, "Jeff Westman" scribbled: > All, > > I know this has been asked many times, and I have read the documentation > ("perldoc -q "matching over more than one line") and still can't make head > or tails out of this. > > I have a problem where my pattern can be

Re: Perl Script Pauses - Want it to Continue

2009-03-17 Thread Chas. Owens
On Tue, Mar 17, 2009 at 11:23, socrtwo wrote: > I am using the executable cakecmd unzipper in a Perl script.  Normally > when cakcmd is executed outside of Perl and it's done it's work it > pauses and one has to hit enter to return to the prompt. > > How can I program Perl so that it enters the ca

Re: Matching Over Multiple Lines

2009-03-17 Thread Chas. Owens
On Tue, Mar 17, 2009 at 12:39, Jim Gibson wrote: snip > A file of length 10MB should be no problem for Perl. snip Perl doesn't start having problems with files until you start getting into areas that the OS has problems with those files. Your machine, however, may have problems if it does not ha

RE: Matching Over Multiple Lines

2009-03-17 Thread Bob McConnell
From: Chas. Owens > > Perl doesn't start having problems with files until you start getting > into areas that the OS has problems with those files. Your machine, > however, may have problems if it does not have enough memory. I > remember working on a production machine that only had eight megab

class DBI postgres date time format

2009-03-17 Thread ken uhl
How do I set up table class method to correctly format and write 'updated' column date and time stamp to postgres? I have table entry object that contains this - to inflate and deflate : I think I need to add "has_timestamp" . 22 __PACKAGE__->table('dhcpmac'); 23 __PACKAGE__-

Re: Matching Over Multiple Lines

2009-03-17 Thread Chas. Owens
On Tue, Mar 17, 2009 at 13:55, Bob McConnell wrote: > From: Chas. Owens >> >> Perl doesn't start having problems with files until you start getting >> into areas that the OS has problems with those files.  Your machine, >> however, may have problems if it does not have enough memory.  I >> remembe

Re: Matching Over Multiple Lines

2009-03-17 Thread John W. Krahn
Jeff Westman wrote: All, Hello, I know this has been asked many times, and I have read the documentation ("perldoc -q "matching over more than one line") and still can't make head or tails out of this. I have a problem where my pattern can be in one line, or span multiple lines. This is wha

Re: remove the last paragraph tag and its contents

2009-03-17 Thread Gunnar Hjalmarsson
Brian J. Miller wrote: ekbworldwide wrote: I want to remove the last paragraph tag and its contents. From this: _ It feels, at least to me, a bit more like You-Tube Do you use the aspects of it? Or do you just plainly use it as a way to keep posted on

Re: class DBI postgres date time format

2009-03-17 Thread Dermot
2009/3/17 ken uhl : > How do I set up table class method to correctly format and write 'updated' >  column  date and time stamp to postgres? > > I have table entry object that contains this - to inflate and deflate : > > I think I need to add  "has_timestamp" > . > >    22 __PACKAGE__->table('d