insightout object field hash

2009-05-26 Thread org chen
Hi Guys, I am learning the object::insideout model now and can't find mush materials on website. Do anyone know how to declare a hash data as attribute in object field and how to use it. I have example show below, but it seems not work properly. why the "first_para" didn't show it's def

RE: strange string match -- thanks

2009-02-15 Thread org chen
Dear Chas, Thanks so much, The problem fixed now. It has annoyed me for two days. Cheers Org > Date: Sun, 15 Feb 2009 20:56:51 -0500> Subject: Re: strange string match> > From: chas.ow...@gmail.com> To: org.c...@live.com.au> CC: beginners@perl.org> > > On Sun,

strange string match

2009-02-15 Thread org chen
Hi, I am coding a script to read a pure txt fiel and show it. I can't understand why any lines in the file match the word of "[DIED]". Thanks Org the txt file is like this: Fri Feb 13 14:31:26 2009[PROCESS]: Welcome to our system![ERROR]: Please

RE: how to release memory from a hash table or array

2008-12-09 Thread org chen
is much efficient, such as sorting. It is nice there is a place we can discuss these issus. Org. > Date: Wed, 10 Dec 2008 02:59:47 +> From: [EMAIL PROTECTED]> To: > beginners@perl.org> CC: [EMAIL PROTECTED]> Subject: Re: how to release memory > from a hash table

how to release memory from a hash table or array

2008-12-09 Thread org chen
Dear perl users, I read a large file into a hash table. This hash table is used only once in the subroutine. I am very concern the memory usage, So I plan to realse the memory after used the hash table. The way I used is: my %hash = (); #read the large file into the hash table ... #relea

RE: Tie::FILE vs open

2008-09-28 Thread org chen
rom: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Subject: Re: Tie::FILE vs open> CC: beginners@perl.org> > On Mon, Sep 29, 2008 at 12:34 PM, org chen <[EMAIL PROTECTED]> wrote:> >> > I have a huge file, there are 47,286,116 lines. I am search a line and repalce this li

Tie::FILE vs open

2008-09-28 Thread org chen
I have a huge file, there are 47,286,116 lines. I am search a line and repalce this line with another string. I know this line is between 20,000,000th to 30,000,000th lines. Which way is more fast and safe: method 1: use Tie::FILE; tie my @array, 'Tie""File', "aa.txt", memory =>100_000_000 or

deal with string

2008-09-25 Thread org chen
Hi, There is an string, if each letter in the string is not belong to [a-z][A-Z][0-9], I want to change it to "+". eg. my $str = "3ijZ()a";if($str !~ /[a-z][A-Z][0-9]/){add code here}print $str; #output will be: 3ijZ++a please help me complete this code. Thanks org _

deal with string

2008-09-25 Thread org chen
Hi, There is an string, if each letter in the string is not belong to [a-z][A-Z][0-9], I want to change it to "+". eg. my $str = "3ijZ()a";if($str !~ /[a-z][A-Z][0-9]/){add code here}print $str; #output will be: 3ijZ++a please help me complete this code. Thanksorg