perl - Put an array into a hash of hashes, transforming it into a Hash itself -


  मेरे% hash = @array;   

एक सरणी को हैश में रूपांतरित करता है, लेकिन $ हैश {कुछ} के साथ ऐसा कैसे कर सकता है?

< Div class = "post-text" itemprop = "text">

  $ हैश {कुछ} = {@array};   

{} इसके आस-पास एक हैश्रेफ बनाता है।

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -