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

What are the various advantages and disadvantages of perl?

841


Write a cgi program to show the header part?

910


What does next statement do in perl?

928


Differences between die and exit.

944


Explain grooving and shortening of arrays and splicing of arrays?

842


How to close a directory in perl?

870


How does polymorphism work in perl?

860


Explain perl. What are the advantages of programming in perl?

967


How to check the status of airplane mode (enable/disable) in perl for Android mobile?

3032


“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?

955


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

976


How to convert strings into an array in perl?

898


What package you use to create a windows services?

830


Explain 'grep' function.

923


What is the use of –w?

869