How to add an element at the end of the array?

It’s as follows :

 


@coins = ("Quarter","Dime","Nickel");
push(@coins, "Penny");

O/p

@coins = Quarter Dime Nickel Penny

Leave a Reply