On Tue, Feb 14, 2017 at 8:14 AM, Dippery, Kyle <kyle.dipp...@uky.edu> wrote:
> In my own custom lifecycle, I have one hyphenated status ("in-use").  I don't 
> remember why (perhaps this is the reason), but I have it in quotation marks 
> as a key in our transitions array:
>
>  transitions => {
>            ...
>            "in-use"  => [qw(allocated recycled stolen lost deleted surplussed 
> destroyed-for-parts scattered-across-the-desert)],
>             }
>
> Your hyphenated ones aren't quoted in your array.  Perhaps that's the 
> sticking point?  Perl might be trying to do math with the "-" before 
> assigning to it.

Guaranteed. You need to quote hash keys that contain hyphens.

-m

Reply via email to