Re: blessing a hash

2008-04-15 Thread Chas. Owens
On Apr 15, 2008, at 10:30, perl pra wrote: Hi Owen, yeah that true ,but theres little change in the way i build the hash,I build the hash from variables in the text file. snip package Load; use strict; use warnings; sub new { my $class=shift; my $file=shift; my %samp; open my $FH, '<'

Re: blessing a hash

2008-04-15 Thread perl pra
Hi Owen, yeah that true ,but theres little change in the way i build the hash,I build the hash from variables in the text file. The below are the datails: I have a following text file app.config - app_path=/home/ap/buuild host

Re: blessing a hash

2008-04-15 Thread Chas. Owens
On Tue, Apr 15, 2008 at 9:54 AM, perl pra <[EMAIL PROTECTED]> wrote: > Hi Gurus, > > How can I bless a hash. > > below is my code: > > package load; > > use strict; > use warnings; > > sub new { > > my $class=shift; > my %samp=('1' => "xxx", '2' =>

blessing a hash

2008-04-15 Thread perl pra
Hi Gurus, How can I bless a hash. below is my code: package load; use strict; use warnings; sub new { my $class=shift; my %samp=('1' => "xxx", '2' => ""); } sub print { here i need to print $samp{1}