Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

my @array=('data1','data2');
my @array1=('data1','data2');
my ($i,$k);

$i=7;
$k=7;

while($i){
$array [++$#array] = 'ree';
$i--;
print "@array";
}

while($k){
push(@array1,'ree');
$k--;
print "@array1";
}


Are these two while loop are doing the same functionality ?
What may be the difference?

Answer Posted / neo

Both are same

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give an example of using the -n and -p option.

999


How to replace perl array elements?

950


Perl regular expressions are greedy" what does this mean?

922


What is an interpolation in perl?

995


How do you you check the return code of a command in perl?

982


What are the advantages of programming in perl?

1040


Show the use of sockets for the server and client side of a conversation?

891


what is the function that is used to identify how many characters are there in a string?

964


What does the qq{ } operator do?

948


What is 'commit' command in perl?

1087


What are the various file operations in perl. Explain with example.

947


what are the strategies followed for multiple form interaction in cgi programs?

948


Write a cgi program to show the header part?

975


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

1005


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

1024