in reply to executing perl command from a perl file

See qx, exec doesn't return.
- Ron
  • Comment on Re: executing perl command from a perl file

Replies are listed 'Best First'.
Re^2: executing perl command from a perl file
by haukex (Archbishop) on May 24, 2021 at 17:59 UTC
    See qx, exec doesn't return.

    Sorry, but I don't think this is good advice. Even if it were necessary to run an external perl, which it practically never is except maybe in a test suite, qx has quite a few caveats.

      True, but I doubt the OP will read a longer answer. ;)
      - Ron
      PS: but thanks for the interesting link :)
        The answers are here to stay. Anyone else can google a similar question and find your answer valuable. You're never answering just the OP.

        With that in mind, many long winded threads wouldn't have been started.

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
        True, but I doubt the OP will read a longer answer.

        If that's the case, I'd still prefer that what gets cargo-culted at least contains some best practices ;-P