On Thursday, May 23, 2002, at 11:34 , HENRY,MARK (HP-Roseville,ex1) wrote: [..] > > If a scalar variable basically contains a hard reference to a thingy, then > aren't they one and the same for the most part?
we presume you have peeked at perldoc perlref cf also perldoc -f ref one way of doing this is to go over the section " Here are some examples: $scalarref = \$foo; $arrayref = \@ARGV; $hashref = \%ENV; $coderef = \&handler; $globref = \*foo; " the variables on the left are 'softish references' to other things, and are not 'scalar' in the sense of my $scalar_string_var = 'this sequence of words'; my $scalar_int_var = 3; my $scalar_float_var = 3.14156; since ref() will return what they 'refer to'. note that my $type = ref($scalarref); will return "SCALAR" to the variable $type. Whereas my $not_ref = ref($scalar_string_var); will set $not_ref to "blanco de blanco" - since that is not a reference but the thing in itself... what I think you are calling 'hard reference'(????). note also that the @ARGV is a 'hard reference' to an array of things - just as %ENV is a 'hard reference' to a hash... cf: http://www.wetware.com/drieux/pbl/perlTrick/WhatIsMeetsIsa.txt for a code fragment that may help you.... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]