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
What are the advantages of c over Perl?
you are required to replace a char in a string and store the number of replacements. How would you do that?
Mention the difference between die and exit in Perl?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
What are the arguments and what do they mean in perl programming?
Why is it hard to call this function: sub y { "because" } ?
What is the difference between die and exit in perl?
What is eval function in perl?
List all the features of perl programming?
What syntax is used for grep() function?
When would `local $_' in a function ruin your day?
What is qq (double q)operator in perl?
What is the difference between use and require in perl?
List the prefix dereferencer in Perl.
Explain which feature of PERL provides code reusability?