1.

How to merge two different arrays in Perl?

Answer»

The MERGED array function in Perl helps in merging two ARRAYS into a single array. It eliminates all the commas residing in between them. 

@arrayOne = ("GAURAV", "Karlos", "Ray", "is", "here");    @arrayTwo = ("He", "wrote", "this");    # merge operation performed on both the above given arrays  @merged = (@arrayOne, @arrayTwo);    PRINT "@merged \N";


Discussion

No Comment Found