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

Perl 5.21.1 compat #46

Merged
merged 3 commits into from
Jun 25, 2014
Merged

Perl 5.21.1 compat #46

merged 3 commits into from
Jun 25, 2014

Conversation

tsibley
Copy link
Collaborator

@tsibley tsibley commented Jun 25, 2014

Fixes compilation errors and silences deprecation warnings introduced in Perl 5.21.1.

A small bug-fix is also included in related code.

Using a hash as a reference was deprecated before Perl 5.8 and is a
compilation error starting in 5.21.1.  This caused most of the test
suite to fail under 5.21.1.
…alue

This removes the variable's value for any existing references to it
outside the symbol table.  The symbol table is only used for new
compilations (i.e. string eval during runtime).

Note that ->clear_vars() appears unused in the core of recs, though it
may be used by outside callers.
This deprecation warning was added in a 5.17 development release, but
removed before 5.18 due to unforeseen syntax issues when the regex
delimiters were curly braces (m{...}).  Perl 5.21.1 re-introduces this
deprecation warning now that the syntax issues are resolved.  Presumably
the deprecation warning will remain for the next stable release, 5.22,
this time.

Escaping the braces should cause no problems on earlier perls.
@tsibley
Copy link
Collaborator Author

tsibley commented Jun 25, 2014

I should note that all tests pass for me under 5.21.1 and 5.18.2 with these changes.

benbernard added a commit that referenced this pull request Jun 25, 2014
@benbernard benbernard merged commit 73ac4ce into master Jun 25, 2014
@tsibley tsibley deleted the tsibley/perl-5.21-compat branch October 16, 2014 16:53
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.

None yet

2 participants