Red Hat Bugzilla – Bug 429491
use option "-m[M]-module" when module is not specified, error message should be outputted in phase 'option analysis'
Last modified: 2010-01-12 04:03:30 EST
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):
Steps to Reproduce:
# perl -m- -e 'print 123'
# perl -m-'' -e 'print 123'
error message is outputted in phase 'compilation':
syntax error at -e line 0, near "no ;"
Execution of -e aborted due to compilation errors.
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.
Created attachment 292312 [details]
the patch to correct this problem
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
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.