in reply to Format Syntax error on "."

I quoted the entire line 51 and the problem went away. Just so that's clear, checking syntax of:

... format STDOUT_TOP = @<<<<<<<<<<<<<<< @|||||||||| @||||| @||||| q{User Command CPU% Mem%} . $^ = 'STDOUT_TOP'; ...

gives

$ perl -c pm_format_syntax.pl pm_format_syntax.pl syntax OK

I haven't used format in almost 15 years, so I can't give a definitive reason as to why this fixed the problem. My rationale for trying the quoting was the presence of the % characters in the line immediately prior to the line which generated the error. Other monks may provide a more detailed explanation.

-- Ken

Replies are listed 'Best First'.
Re^2: Format Syntax error on "."
by jcain (Initiate) on Feb 21, 2012 at 04:39 UTC
    Excellent. I was staring it this for 2 moments too long. It was in fact the %.