perlprimer crashes on start: Can't use 'defined(@array)'

Bug #1575074 reported by hschaefer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
perlprimer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Using (k)ubuntu 16.04 x64. Perlprimer won't start. on the console it gives the following error:

$ perlprimer
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/perlprimer line 5229.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in perlprimer (Ubuntu):
status: New → Confirmed
Revision history for this message
A. Martos (al3xarm) wrote :

Same on Ubuntu Gnome 16.04 x64

Revision history for this message
hschaefer (schaefer-heinrich) wrote :

The fix is easy, though. As suggested in the error message, edit /usr/bin/perlprimer and change line #5229 to:

'''
 unless (@$slist && defined($hlist_sel)) {
'''

Revision history for this message
A. Martos (al3xarm) wrote :

Fix work fine, thanks.

Revision history for this message
Charles Plessy (plessy) wrote :

Fixed in version 1.1.21-3

Changed in perlprimer (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.