shuchi
02-05-03, 05:04
| time for another doubt! i was going thru someones perl code and needed to know what the following statements could be doing. thnx to anyone who could help.. 1. my $variable=shift; # why assign "shift" to a variable? 2. $array[@array]=somevalue #what does this do and hos does this work? 3. $/="\f"; # this is some sort of "formfeed" matching- what is formfeed and whats cud be the purpose of doing ths? 4. can we use a variable without declaring it in perl if we dont use strict or warnings? 5. my $portfolio=$1 # is the variable = 1 or "$1" hmmm these are the main doubts coz of which i cant really get the hang of the code...if neone can help please reply asap..aslo if u need any other info abt the code to help me pleez ask fr it.. thnxx in advance once again -shuchi |