in reply to splice and indexes

turn on warnings and use Data::Dumper instead of print