GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

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: 2 Last Update: May 02, 2008     Asked by: prabhasgupte 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
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 | No
May 02, 2008 07:51:49   #2  
wow_suraj Member Since: May 2008   Contribution: 15    

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

 Related Questions

Both of them are used to declare local variables.The variables declared with "my" can live only within the block it was defined and cannot get its visibility inherited functions called within 
Latest Answer : Perl supports three scoping declarations that enable to create private variables (using my) , selectively global variable (using our) and temporary copies of selected global variables (using local) ... my declares a variable to be scoped within the current ...
Read Answers (2) | Asked by : Murali Krishnan

I have a variable named $objref which is defined in main package. I want to make it as a Object of Class XYZ. How could I do it?
Read Answers (2) | Asked by : Zubind

How to find out whether reference is pointing to a scalar, array or hash? 
Latest Answer : With 'ref' keyword we can find the data type of the variable. ...


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Working with XML in Perl

Working with XML in Perl Extensive Markup language or the XML is a sort of data storage; it is very structured and mapped out There are two most important aspects of XML that has to be covered one is writing in XML and reading it out in XML Parsers have already been created in XML and knowing how t
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

SQL Perl/PL Overview

Procedural languages provide the fundamental method for programming within an SQL database. In other articles in this series, we have covered the SQL-based procedural languages, but those are generally not the only procedural languages found in an SQL database. Procedural extensions for Perl and Jav
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape