Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Joining 2 arrays into hashes
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Anno Siegel, post: 4763669"] If you're happy with a package variable you *can* declare it in one statement: @{ \ our %hash}{ @array1} = @array2; Formally this also works with a lexical: @{ \ my %hash}{ @array1} = @array2; ....but it's completely useless because the lexical can't leave the tiny block it is declared in. Anno [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Joining 2 arrays into hashes
Top