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


in reply to Syntax Error in lvalue.pm?

perl -c -e "test Class::Accessor::Lvalue"

This will test if your program will compile. It will not include Class::Accessor::Lvalue in your code snippet. To test that you should try

perl -MClass::Accessor::Lvalue -e 1

If there's no error then everything is OK.

Not sure how this makes any sense at all, I downloaded the lvalue module straight from the CPAN website (I had to manually install).

Why did you do manual install? There might be your problem.
You should use cpan client to do the whole process for you. I recommend App::cpanminus. System default CPAN is also OK, but it's slightly slower. Also, if this doesn't work for you, try your system-specific package installer.