Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for given-when bug #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

begriffs
Copy link

On perl v5.36 I ran into a bug that took me a while to track down. The given() construct erases its argument after mixing the if statements with the when() statements.

I don't expect you want to accept this pull request as-is (there's probably a more elegant way to do it), but I did want to send it to you in case you or other people got confused why list commands like subscribe foo fail.

@madroach
Copy link
Owner

I don't do much perl nowadays, but I remember back in my head that the given-when construct has some strange properties. So a rewrite using plain if-elsif would probably be the cleanest solution. I would be happy to merge a change eliminating the given-when statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants