Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joining 2 Hash Arrays

Status
Not open for further replies.

not4google

Programmer
Nov 6, 2006
15
0
0
GB
Hi could someone tell me if its possible to join 2 hash arrays together in Perl?

Thanks,
 
Assuming your two hashes don't have any keys in common, you can simply do this:
Code:
my %combined = ( %first, %second );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top