GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  Perl
Go To First  |  Previous Question  |  Next Question 
 Perl  |  Question 52 of 61    Print  
What is -> Symbol in perl

  
Total Answers and Comments: 4 Last Update: July 17, 2009     Asked by: Rajivcitcse2000 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 16, 2007 07:48:04   #1  
maverickvistak Member Since: December 2007   Contribution: 2    

RE: What is -> Symbol in perl
This is called symbolik link.

ex: ROSE-> FLOWER.

That is wen we want to read ROSE file in Hard disk it will direct it to FLOWER file.

Though we thought of reading ROSE file...We will be ending up reading the content of Flower file.

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
July 14, 2008 03:45:49   #2  
nitashaa Member Since: July 2008   Contribution: 9    

RE: What is -> Symbol in perl
Arrow operator -> is used for deferencing references to array or hash.

$arr ['1' '2' '3' '4'];

To retrive the value of first element :
$val $arr->[1];
Now variable $var will contain '2'.

 
Is this answer useful? Yes | No
June 17, 2009 06:03:58   #3  
wow_suraj Member Since: May 2008   Contribution: 22    

RE: What is -> Symbol in perl
'->' symbol is used to refer hash values.
 
Is this answer useful? Yes | No
July 15, 2009 13:05:53   #4  
ajit_saley Member Since: February 2009   Contribution: 5    

RE: What is -> Symbol in perl
$arr [1 2 2+1 3+1];
print "n arr[1] |".$arr->[1]."|".$$arr[1]."|";

 
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