in reply to commented out s/// prevents script running!

i think this is very much code, and i'm not attempting to run it, as i don't have the right modules, and as it isn't strict safe. isn't it possible to comment out the Pg and GD things and just leave the basics?
anyway, i commented out the Pg and GD use statements, and i'm getting 'Syntax ok' on perl 5.8.2 with Switch.pm 2.10, and
syntax error at skript.pl line 260, near "}continue" syntax error at skript.pl line 262, near "}"
with 5.8.0 and Switch.pm 2.09. so just try to upgrade Switch.pm, this should help.

Update:: using strict and warnings would of course be helpful, too, as always.