Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 429491

Summary: use option "-m[M]-module" when module is not specified, error message should be outputted in phase 'option analysis'
Product: Red Hat Enterprise Linux 5 Reporter: Yu Zhiguo <yuzg>
Component: perlAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED ERRATA QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.1CC: cward, psplicha, yuzg
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 493355 554645 (view as bug list) Environment:
Last Closed: 2009-01-20 21:11:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the patch to correct this problem none

Description Yu Zhiguo 2008-01-21 04:13:10 UTC
Description of problem:
  Use command perl with option "-m-module" or "-M-module" when module is not 
specified or specified '', error message should be outputted in phase 'option 
analysis' rather than 'compilation'.
(like using these option without a dash("-"))

Version-Release number of selected component (if applicable):
  perl-5.8.8-10

How reproducible:
  100%

Steps to Reproduce:
  # perl -m- -e 'print 123'
  or
  # perl -m-'' -e 'print 123'
  
Actual results:
  error message is outputted in phase 'compilation':

  syntax error at -e line 0, near "no ;"
  Execution of -e aborted due to compilation errors.

Expected results:
  error message should be outputted in phase 'option analysis' like using 
option -m[M] without a dash ("-"):

  # perl -m -e 'print 123'
  error message is:
  Missing argument to -m.

Additional info:

Comment 1 Yu Zhiguo 2008-01-21 04:13:10 UTC
Created attachment 292312 [details]
the patch to correct this problem

Comment 2 RHEL Program Management 2008-06-02 20:23:45 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 8 errata-xmlrpc 2009-01-20 21:11:16 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0117.html