GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  Perl
Go To First  |  Previous Question  |  Next Question 
 Perl  |  Question 56 of 61    Print  
How to find type of variable?
How to find out whether reference is pointing to a scalar, array or hash?


  
Total Answers and Comments: 3 Last Update: September 19, 2009     Asked by: prabhasgupte 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: vinod_rapolu
 
Hi

There is "ref" function is there. This function will let you know what type of reference it is.

Above answer was rated as good by the following members:
lbsign
February 14, 2008 21:51:02   #1  
vinod_rapolu Member Since: February 2008   Contribution: 4    

RE: How to find type of variable?
Hi

There is "ref" function is there. This function will let you know what type of reference it is.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 02, 2008 07:51:49   #2  
wow_suraj Member Since: May 2008   Contribution: 22    

RE: How to find type of variable?
With 'ref' keyword we can find the data type of the variable.
 
Is this answer useful? Yes | No
September 19, 2009 05:28:54   #3  
santhosh_89 Member Since: November 2008   Contribution: 1    

RE: How to find type of variable?
You can use ref function.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape