acadey has asked for the wisdom of the Perl Monks concerning the following question:
I just want to check if this is a viable way to clear or initialize a set of hashes: (it seems to work fine, but if it is bad practice I would like to know!)
%_ = () for my(%hash1,%hash2,%hash3);Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Clear / Initialize multiple hashes
by BrowserUk (Patriarch) on Sep 19, 2013 at 18:05 UTC | |
|
Re: Clear / Initialize multiple hashes
by choroba (Cardinal) on Sep 19, 2013 at 18:09 UTC | |
by acadey (Initiate) on Sep 19, 2013 at 18:19 UTC | |
by BrowserUk (Patriarch) on Sep 19, 2013 at 18:45 UTC | |
by choroba (Cardinal) on Sep 19, 2013 at 18:23 UTC | |
|
Re: Clear / Initialize multiple hashes
by AnomalousMonk (Archbishop) on Sep 20, 2013 at 13:25 UTC | |
|
Re: Clear / Initialize multiple hashes
by hdb (Monsignor) on Sep 20, 2013 at 06:25 UTC |