--- drieux <[EMAIL PROTECTED]> wrote: > > On Tuesday, May 21, 2002, at 12:23 , Ovid wrote: > > > Use the 'ref' function for this: > > > > perldoc -f ref > > my complements. > > why can I never remember that one.... > once again thanks... I have updated > > http://www.wetware.com/drieux/pbl/perlTrick/WhatIsMeetsIsa.txt > > and I think I have a possible solution for the 'limitiations' > of ref($ref) - which does not always return "SCALAR" if you > are passing it the actual 'variable' and not a reference to it.
Ah, but that's the point of ref. If you have a reference, it returns the type of reference. If you have a simple scalar, there is no reference, thus it returns a false value. Cheers, Curtis "Ovid" Poe ===== "Ovid" on http://www.perlmonks.org/ Someone asked me how to count to 10 in Perl: push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]