As a result i need a hash like thisConfiguration - DGCONF Protection Mode: MaxAvailability Databases: DB1 - Primary database DB2 - Physical standby database Properties: FastStartFailoverThreshold = '30' OperationTimeout = '30' FastStartFailoverLagLimit = '30' CommunicationTimeout = '180' ObserverReconnect = '0' FastStartFailoverAutoReinstate = 'TRUE' FastStartFailoverPmyShutdown = 'TRUE' BystandersFollowRoleChange = 'ALL' ObserverOverride = 'FALSE' ExternalDestination1 = '' ExternalDestination2 = '' PrimaryLostWriteAction = 'CONTINUE' Fast-Start Failover: DISABLED Configuration Status: SUCCESS
Please help!$VAR2 = { 'Configuration' => 'DGCONF', 'ProtectionMode' => 'MaxAvailability', 'Databases' => { 'DB1' => 'Primarydatabase', 'DB2' => 'Physicalstandbydatabase' }, 'Properties' => { 'ExternalDestination2' => '', 'FastStartFailoverThreshold' => '30', 'ObserverReconnect' => '0', 'ObserverOverride' => 'FALSE', 'OperationTimeout' => '30', 'PrimaryLostWriteAction' => 'CONTINUE', 'FastStartFailoverAutoReinstate' => 'TRUE', 'BystandersFollowRoleChange' => 'ALL', 'FastStartFailoverPmyShutdown' => 'TRUE', 'ExternalDestination1' => '', 'FastStartFailoverLagLimit' => '30', 'CommunicationTimeout' => '180' }, 'ConfigurationStatus' => 'SUCCESS' };
In reply to parse string into multidimensional hash by chickenman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |