perl-ism leaked into bash script