http://www.perlmonks.org?node_id=649404


in reply to Re: syntax error near "){"
in thread syntax error near "){"

Thanks Errto. This is the first time I've tried to use a separate script instead of a subroutine to avoid duplication. I've followed both of those links and I'll probably give the Module option a go.
Cheers,
Phil