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


in reply to Re: No, it is not
in thread Is this code correct

Then no, it's not correct.

The brackets don't match.

Try putting use diagnostics; at the start of your script, if you're having trouble understanding Perl's error messages. This will make the error messages more 'explainy'.