I am running solaris 8 and perl 5.005_02.
Running a simple example as root is successful:
root# perl -e 'print"Hello World\n";' Hello World root#
But running the same example from another user fails:
cnow> perl -e 'print "hello world\n";' Can't open perl script "-e": Permission denied cnow>
I have verified that my cnow user has execute permission for perl:
ls -al /usr/local/bin/perl -r-xr-xr-x 1 root other 818096 Jan 24 2002 /usr/local/bin/pe +rl*
And that both root and cnow users are running the same perl executable.
I have also verified that I can run perl as the cnow user with a simple script:
cnow> cat testPerl.pl #!/usr/local/bin/perl -w print "This is a test\n"; cnow> ./testPerl.pl This is a test cnow>
I am at a loss as to why I am getting the permission denied error.
Please help, it is sucking the life out of me!!!

In reply to perl -e problem by dantheman1210

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.