Skip Menu |

This queue is for tickets about the Config-General CPAN distribution.

Report information
The Basics
Id: 69056
Status: resolved
Priority: 0/
Queue: Config-General

People
Owner: tlinden [...] cpan.org
Requestors: fbicknel [...] nc.rr.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.50
Fixed in: (no value)



Subject: Can't parse some entries
An entry like this: CRON = */2 * * * * or even this: CRON = "*/2 * * * *" Causes this: invalid syntax: found end of C-comment without previous start! at /usr/local/tools/backup/perlmods/lib/Config/General.pm line 580 Config::General::_read('Config::General::Interpolated=HASH(0x8f04354)', 'IO::File=GLOB(0x8f2d6a8)') called at /usr/local/tools/backup/perlmods/lib/Config/General.pm line 524 Config::General::_open('Config::General::Interpolated=HASH(0x8f04354)', 'File::Temp=GLOB(0x8f043d8)') called at /usr/local/tools/backup/perlmods/lib/Config/General.pm line 178 Config::General::_process('Config::General::Interpolated=HASH(0x8f04354)') called at /usr/local/tools/backup/perlmods/lib/Config/General.pm line 122 One can work around it with this sort of nonsense: CRON = *\/2 * * * * or even: CRON = *foo/2 * * * * so long as one removes the workaround ('\' or 'foo', respectively) before using the item. Not sure what to suggest here, as */ is clearly a c-style comment end with no beginning. But if quoted, I suspect it should make it all better.
Hm, that's indeed a bad thing. I'll see what I can do about it...
From: fbicknel [...] nc.rr.com
And just yesterday I ran into something quite similar: FOOPASSWORD = Pass#ord Can't even get around this one by putting quotes around it. :) FOOPASSWORD = Pass\#word seems the only workaround. In this case, the \ is absorbed, however. Maybe this is expected behavior, but thought I'd point it out.
resolved in 2.51. see -NoEscape parameter.