perl - Type of argument to keys on reference must be unblessed -


I am very new to Perl and I have been given the task of maintaining a webpage. I have found a bug that I do not want to fix

The Perl script stops at the following code

  my @ failedTests = (sort (keys ($ TestResultsData {$ CurrPlatform} {$ currDate} {failtests}))); While the (@failedTests) {...  

error message is:

  The type of argument for the key on the reference must be closed without a hareframe or a seraph < / Code> 

Can that line of code be rewritten so that it works?

$ TestResultsData {$ currPlatform} value {$ currDate} {failtests} There is a blessed Hashref: Key is appreciated by the coward, has refused to operate on Hashref, because it will break the illusion of encapsulation and overloading.

(Older versions of Perl will not accept Hashref in all - you must pass it to a proper hash.)

Attempt to use Hasharft manually in a hash Do:

  my @failedtests = sort keys% {$ TestResultsData {$ currPlatform} {$ CurrDate} {failtests}};  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -