Can't use perl -w when require'ing sys/

Bug #1045250 reported by Krzysztof Leszczyński on 2012-09-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
perl (Ubuntu)

Bug Description

perl -e 'require q{sys/}'
compiles correctly
perl -w -e 'require q{sys/}'
Operator or semicolon missing before &__inline at (eval 113) line 1.
Ambiguous use of & resolved as operator & at (eval 113) line 1.

perl -w -e '{local $^W=0; require q{sys/}}'
compiles correctly.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: perl 5.14.2-6ubuntu2.1 [modified: usr/bin/perldoc]
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Uname: Linux 3.2.0-29-generic x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Mon Sep 3 12:43:52 2012
 PATH=(custom, user)
SourcePackage: perl
UpgradeStatus: No upgrade log present (probably fresh install)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers