Re: Debug and dereferrencing a hash

2002-06-23 Thread Paul Johnson
On Sat, Jun 22, 2002 at 11:42:40PM -0500, Shawn wrote: > >>> On Sat, 2002-06-22 at 13:53, Shawn wrote: > >> > >> my %hash = (user => 1,pass => 2,thing => 3,ptr => [qw(4 5)],); > >> > >> my $hash_ref = \%hash; > >> > >> print split(/ /,%$hash_ref ), "\n"; > >> print "Not Split: ", %$hash_ref, " :\

Re: Debug and dereferrencing a hash

2002-06-22 Thread John W. Krahn
Shawn wrote: > > From: "Marco Antonio Valenzuela Escárcega" <[EMAIL PROTECTED]> > > > > here's the problem: when you try to concatenate the hash to the string > > you are evaluating it in scalar context, and that's why it gives you the > > number of used buckets > > > > this should work: > > $sel

Re: Debug and dereferrencing a hash

2002-06-22 Thread Shawn
EMAIL PROTECTED]> Sent: Sunday, June 23, 2002 12:11 AM Subject: Re: Debug and dereferrencing a hash > On Sat, 2002-06-22 at 21:42, Shawn wrote: > > >>> On Sat, 2002-06-22 at 13:53, Shawn wrote: > > >>>> Is there a reason for this, and is there a way I can see what th

Re: Debug and dereferrencing a hash

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 21:42, Shawn wrote: > >>> On Sat, 2002-06-22 at 13:53, Shawn wrote: > Is there a reason for this, and is there a way I can see what the > actuall values are? The values are passed just fine to the sub routines, > I just want my debug log to show that values

Re: Debug and dereferrencing a hash

2002-06-22 Thread Shawn
>>> On Sat, 2002-06-22 at 13:53, Shawn wrote: Is there a reason for this, and is there a way I can see what the actuall values are? The values are passed just fine to the sub routines, I just want my debug log to show that values passed without having to set up a for loop (

Re: Debug and dereferrencing a hash

2002-06-22 Thread Paul Johnson
On Sat, Jun 22, 2002 at 04:42:42PM -0700, drieux wrote: > > On Saturday, June 22, 2002, at 03:09 , Marco Antonio Valenzuela Escárcega > wrote: > > >On Sat, 2002-06-22 at 13:53, Shawn wrote: > [..] > >>Is there a reason for this, and is there a way I can see what the > >>actuall values are? Th

Re: Debug and dereferrencing a hash

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 13:53, Shawn wrote: > Hello all, > I am working on a script that I have several debug statements that try to tell me >what is contained in a hash referrence. While I am tailing the log file, the hashes >derefference (%$hash_ref) to n/n (ei: 1/8) instead of the actual ref

Re: Debug and dereferrencing a hash

2002-06-22 Thread Marco Antonio Valenzuela Escárcega
On Sat, 2002-06-22 at 13:53, Shawn wrote: > Hello all, > I am working on a script that I have several debug statements that try to tell me >what is contained in a hash referrence. While I am tailing the log file, the hashes >derefference (%$hash_ref) to n/n (ei: 1/8) instead of the actual ref

Debug and dereferrencing a hash

2002-06-22 Thread Shawn
Hello all, I am working on a script that I have several debug statements that try to tell me what is contained in a hash referrence. While I am tailing the log file, the hashes derefference (%$hash_ref) to n/n (ei: 1/8) instead of the actual referrence (ie: user=>'1', pass=>'2'). The arrays