: : < DO STUFF>
Comments in perl begin with #, not < Perl probably thinks you're referring to a file handle in angle brackets.
Sorry, this is me using my own shorthand, everything is correctly #'d in the code.
I knew it was something obvious, == and not =.: sub error { : : <Print top half of a HTML page> : : if ($_[0]=1) {
'=' is an assignment operator. You're testing if $_[0] can be set equal to 1. Guess what? It can! It will always be true.
if ( $_[0] == 1 ) {
Thanks for that.
I think the sub error { syntax error must have been my machine having a bad hair day. Ran the syntax check again today without the error being flagged. No changes made to the code before hand.
Dave
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]