I think you'll need to post your code, if that's possible. Otherwise, there are so many reasons it could be failing. Is it small enough of a program that you can post it here? If not, can you trim it down in size to the point that you can?
In the absence of seeing what you've written, there are a few things which come to mind:
- Are you running out of processes somehow? Check with ps
- Is the system command failing at some point? Check by printing out the exit value from the system call; it's saved to the special variable $?. In fact, if you haven't done so already, try reading about the system function with: perldoc -i system.
- Are you able to "run the string outside of the perl script" even after it has started failing from within Perl?
But these are just thoughts ... I think once you post an actual example of the code, and especially if it's something that can be duplicated by one of the others here, you'll likely be pleased with how quickly we can help you detect the problem.
@ARGV=split//,"/:L";
map{print substr crypt($_,ord pop),2,3}qw"PerlyouC READPIPE provides"
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.