Hi
I'm running activeperl version 5.14.2 on windows 7 64bit.
I'm getting the below errors while running the script:
C:\Downloads\F5>css2f5-tmsh.pl css2.txt
Global symbol "$exceptions_file" requires explicit package name at C:\Downloads\
F5\css2f5-tmsh.pl line 76.
Global symbol "$exceptions_file" requires explicit package name at C:\Downloads\
F5\css2f5-tmsh.pl line 78.
Global symbol "$exceptions_file" requires explicit package name at C:\Downloads\
F5\css2f5-tmsh.pl line 80.
Global symbol "@pool_list" requires explicit package name at C:\Downloads\F5\css
2f5-tmsh.pl line 81.
Global symbol "@virt_list" requires explicit package name at C:\Downloads\F5\css
2f5-tmsh.pl line 82.
Global symbol "@unique_VIP_list" requires explicit package name at C:\Downloads\
F5\css2f5-tmsh.pl line 83.
Global symbol "@pools" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 84.
Global symbol "@virtuals" requires explicit package name at C:\Downloads\F5\css2
f5-tmsh.pl line 85.
Global symbol "@servers" requires explicit package name at C:\Downloads\F5\css2f
5-tmsh.pl line 86.
Global symbol "$policy_count" requires explicit package name at C:\Downloads\F5\
css2f5-tmsh.pl line 87.
Global symbol "$virt_count" requires explicit package name at C:\Downloads\F5\cs
s2f5-tmsh.pl line 88.
Global symbol "$pool_count" requires explicit package name at C:\Downloads\F5\cs
s2f5-tmsh.pl line 89.
Global symbol "$policy_count" requires explicit package name at C:\Downloads\F5\
css2f5-tmsh.pl line 90.
Global symbol "@ssl_servers" requires explicit package name at C:\Downloads\F5\c
ss2f5-tmsh.pl line 91.
Global symbol "$one" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 98.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 98.
Global symbol "$three" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 98.
Global symbol "$four" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 98.
Global symbol "$five" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 98.
Global symbol "$six" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 98.
Global symbol "$seven" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 98.
Global symbol "$eight" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 98.
Global symbol "$nine" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 98.
Global symbol "$ten" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 98.
Global symbol "$one" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 100.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 103.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 103.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 104.
Global symbol "%users" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 106.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 106.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 106.
Global symbol "%vlans" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 110.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 110.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 110.
Global symbol "$i" requires explicit package name at C:\Downloads\F5\css2f5-tmsh
.pl line 111.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 117.
Global symbol "%selfip" requires explicit package name at C:\Downloads\F5\css2f5
-tmsh.pl line 118.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 118.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 118.
Global symbol "$i" requires explicit package name at C:\Downloads\F5\css2f5-tmsh
.pl line 120.
Global symbol "$i" requires explicit package name at C:\Downloads\F5\css2f5-tmsh
.pl line 121.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 126.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 127.
Global symbol "$four" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 127.
Global symbol "%routes" requires explicit package name at C:\Downloads\F5\css2f5
-tmsh.pl line 128.
Global symbol "$three" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 128.
Global symbol "$four" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 128.
Global symbol "$three" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 128.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 128.
Global symbol "$three" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 128.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 128.
Global symbol "$five" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 128.
Global symbol "$two" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 130.
Global symbol "$three" requires explicit package name at C:\Downloads\F5\css2f5-
tmsh.pl line 130.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 131.
Global symbol "$five" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 131.
Global symbol "%routes" requires explicit package name at C:\Downloads\F5\css2f5
-tmsh.pl line 132.
Global symbol "$four" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 132.
Global symbol "$five" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 132.
Global symbol "$four" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 132.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 132.
Global symbol "$four" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 132.
Global symbol "$mask" requires explicit package name at C:\Downloads\F5\css2f5-t
msh.pl line 132.
Global symbol "$six" requires explicit package name at C:\Downloads\F5\css2f5-tm
sh.pl line 132.
syntax error at C:\Downloads\F5\css2f5-tmsh.pl line 137, near "when "interface""
C:\Downloads\F5\css2f5-tmsh.pl has too many errors.
I edit the script with the below changes in order to overcome the "swich" errors:
I comment the line "use Switch 'Perl6';" and added the line "use 5.14.2;" instead.
I added the "(" for all the when line like - when ("255.255.255.0") { return "24"}
Will you be able to help with the script?