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

Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

925


What does undef function in perl?

998


what is Perl one liner?

945


What are the advantages of c over Perl?

986


What is a perl references?

966


You want to add two arrays together. How would you do that?

930


What is the purpose of goto expr statement?

955


Write an example explaining the use of symbol tables.

999


Perl regular expressions are greedy" what does this mean?

963


Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?

1036


Can you add two arrays together?

984


What is the use of "stderr()"?

1065


Explain the difference between die and exit in perl?

923


How to read a file into a hash array?

1091


You want to read command-line arguements with perl. How would you do that?

950