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

How does a “grep” function perform?

1014


There are some duplicate entries in an array and you want to remove them. How would you do that?

900


Explain chomp, chop, cpan, tk.

924


When do you use perl programming?

985


What is posix in perl?

926


Explain grooving and shortening of arrays?

1081


How will you declare a variable in perl?

958


What is the syntax used in Perl grep function?

1022


What is qq (double q)operator in perl?

1005


How to turn on Perl warnings? Why is that important?

1053


Explain lists ?

917


Does Perl have objects? If yes, then does it force you to use objects? If no, then why?

942


List all the features of perl programming?

887


How to read a single line from a file in perl?

955


Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.

880