Skip to content

localise $_#5

Open
kiwiroy wants to merge 1 commit intobioperl:masterfrom
kiwiroy:patch-1
Open

localise $_#5
kiwiroy wants to merge 1 commit intobioperl:masterfrom
kiwiroy:patch-1

Conversation

@kiwiroy
Copy link

@kiwiroy kiwiroy commented Jun 17, 2019

Implementing multiple filters as below results in a fatal error.

# Can't locate object method "type" via package "NNNNNN" ...
@enzymes = grep { $_->cutter == 6 && $_->type eq 'II' } $collection->enzymes;

This PR localises $_ so it no longer gets overridden.

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.

1 participant