I am trying to execute the below mentioned code and observed the error
Can't use string ("RCSoWLAN;ePDG-2;Qguest;ASUS_ATT_"...) as an ARRAY ref while "strict refs" in use.
Perl code
#!/perl64/bin/perl
use strict;
use warnings;
my $result_string = 'RCSoWLAN;ePDG-2;Qguest;ASUS_ATT_VOWIFI;RCS_IWLAN;Qguest;Pandora;Hydra;ASUS_ATT_VOWIFI_5G;Linksys_Performance_2.4G;RCS_NAT;ePDG7;Qguest;Pandora;Hydra;ipv6testap;Linksys_Performance_5G;ASUS_stress_5G;Hydra';
my $index = 1;
foreach ( @{ $result_string } ) {
print "SSID[$index]: $_->{$index}->{ssid}\n";
$index++;
}