Ok so- I have a .pl file that prints to cli:

print "wpeofkwpoef";

If I run the .pl directly, it prints just fine. ./damnit.pl

I have an ln -s link to it in /usr/local/bin/damn.

If I run it from cli there /usr/local/bin/damn, it runs (the code later on even changes files; it works), but it never prints.

This same code usta work in perl like 15 years ago lol.

important to note to test, I made .sh script that just does:

#!/bin/bash
echo 'wefwe';

And then did an ln -s to it and it prints the wefew. So .sh can do that from the link but perl demands it be done from the actual file not the link.

Ubuntu 18.04 $ perl -v This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 67 registered patches, see perl -V for more detail)

Thanks monks, sorry for the lack of < code> tags but the code is so minimal. m

In reply to printing to stdout from a soft ln -s doesn't show up by mrkrinkle

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.