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


in reply to Re: Bad name after xxxx'
in thread Bad name after xxxx'

The code I posted in response to fullermd has a sample of the code that comes up with the error.

To restate my problem, the code compiles and runs on the system I am testing it on, but in the eclipse EPIC environment it marks the specific line with a bad name error. I just thought to test the script from the command line and it works fine with no error calls.

I would like to know or be given direction as to why this is occuring to learn more about the proper way to code with perl.

Replies are listed 'Best First'.
Re^3: Bad name after xxxx'
by fullermd (Priest) on Jan 26, 2011 at 02:21 UTC

    Well, it looks like perl to me any all the perl's on my system, and it sounds like it's working fine for you with perl. So I'd say you're coding perl properly.

    So it sounds like you really have an EPIC problem; maybe it has a bug in its parsing somehow. 's beyond me; I've never used anything Eclipse-ish. I don't know what support channels exist there, but you could see if someone there knows what's up.

    You could also try fiddling the code around a bit and see if you can find something that's making it's confused. Perhaps it doesn't like the commas at beginning of line? Try changing something like

    print $htmlPage->a( { -href => CONSTANT2 , -target => '_self' }, 'こちら' + );

    to

    print $htmlPage->a( { -href => CONSTANT2, -target => '_self' }, 'こちら' ) +;

    instead (comma moved to the end of the first line rather than start of the second). Or put it all together on one line. Eliminate the -href, and try with just the -target, and vice versa.