Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

It seems that the perl interpreter cannot be found in the locations bash looks for it. You will need to check where perl is and then adjust your Perl scripts and possibly your bash environment to also look for it there.

This shell command tries to run perl in /usr/bin/perl. If /usr/bin/perl does not exist anymore, your system is likely severely broken.

/usr/bin/perl -wle 'print "Still here"'

If that outputs an error and you are on a Unix system, consult with somebody local to you on how to restore your machine to working order. That person should also give you either an introduction to Unix or revoke your rights to make changes to /usr.

If /usr/bin/perl exists and is runnable as is (see above), then it is likely that you just messed up your bash profile, by either setting up an alias for perl to point to something other than /usr/bin/perl. You can find that by typing:


This will list all the aliases defined for your shell session. If you find that you defined an alias for Perl, change that alias, or even better, remove it.

If /usr/bin/perl exists but is a symbolic link to /gsc/bin/perl, you will need to check that /gsc/bin/perl exists and is runnable (see above).

As a general practice, I would adjust the $PATH variable to include another directory instead of copying my scripts into a directory that is already in $PATH.

In reply to Re: broke my perl? :( by Corion
in thread broke my perl? :( by megnetz

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (5)
    As of 2020-12-04 13:19 GMT
    Find Nodes?
      Voting Booth?
      How often do you use taint mode?

      Results (58 votes). Check out past polls.